:root {
  --paper: #f3f0e8;
  --white: #fffdf8;
  --ink: #212722;
  --forest: #202a24;
  --wine: #712a31;
  --lime: #e7e7a0;
  --muted: #545b53;
  --line: #c8cbc0;
  --display: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
h1,h2,h3,p,figure,blockquote { margin: 0; }
h1,h2,h3 { font-family: var(--display); font-weight: 400; line-height: .98; letter-spacing: -.025em; }
h1 { font-size: clamp(3.6rem, 8vw, 7.25rem); }
h2 { font-size: clamp(2.6rem, 5.3vw, 5rem); }
p { overflow-wrap: break-word; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .23em; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #95612c; outline-offset: 4px; }
.wrap { width: min(1380px, 100% - clamp(36px, 9vw, 130px)); margin-inline: auto; }
.section { padding-block: clamp(43px, 7vw, 93px); }
.skip { position: absolute; left: -200vw; }
.skip:focus { position: fixed; left: 12px; top: 12px; padding: 12px; background: white; z-index: 10; }
header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.logo img { width: 146px; height: auto; }
nav, .header-actions, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px clamp(12px, 2vw, 27px); }
nav a, .header-actions a, .actions a { font-weight: 700; }
nav a { text-decoration: none; }
nav a:hover, [aria-current="page"] { text-decoration: underline; }
.button { border: 1px solid var(--wine); background: var(--wine); color: white; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 9px 17px; text-decoration: none; font-weight: 700; text-align: center; }
.button:hover { filter: brightness(1.12); }
.button.light { background: var(--lime); border-color: var(--lime); color: var(--forest); }
.button.outline { background: transparent; border-color: #778373; color: var(--ink); }
.overline { color: var(--wine); font-size: .78rem; letter-spacing: .1em; font-weight: 700; margin-bottom: 10px; }
.hero { background: var(--forest); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.14fr); gap: clamp(22px, 5vw, 82px); align-items: center; padding-block: clamp(20px, 4svh, 50px); }
.hero h1 { font-size: clamp(3.6rem, min(7.2vw, 13svh), 7.35rem); }
.hero h1 em { color: var(--lime); }
.hero .overline { color: #e4e5a8; }
.hero-copy > p:not(.overline) { font-size: clamp(1.05rem, 1.65vw, 1.26rem); max-width: 34ch; color: #e7ebe1; margin-top: 18px; }
.hero .actions { margin-top: 22px; }
.hero-photo { border: 1px solid #627064; padding: 7px; justify-self: end; width: min(100%, max(280px,calc((100svh - 205px) * 1.28))); }
.hero-photo img { width: 100%; max-height: min(62svh, 560px); object-fit: contain; background: #272f27; }
.hero-photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 9px 4px 3px; gap: 2px 12px; color: #e2e5da; font-size: .85rem; }
.hero :focus-visible { outline-color: var(--lime); }
.actions { margin-top: 22px; }
.portal-band { background: #e9ebd5; border-bottom: 1px solid var(--line); }
.portal-inner,.heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 27px; padding-block: 19px; }
.portal-inner h2 { font-size: clamp(2rem,3vw,3rem); }
.portal-inner p { margin-top: 5px; }
.heading { align-items: end; padding: 0; margin-bottom: 22px; }
.text-link { color: var(--wine); font-weight: 700; }
.project-grid, .catalog { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 24px; }
.project, .tile { display: block; width: 100%; text-align: left; color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 0; }
.project img,.tile img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; background: #e5e4db; }
.project span { display: block; padding: 13px 15px; font-weight: 700; }
.project:hover span, .tile:hover h2 { color: var(--wine); text-decoration: underline; }
.tile { text-decoration: none; }
.tile div { padding: 15px; }
.tile h2 { font-size: clamp(1.9rem, 3vw, 3.05rem); }
.tile p { margin-top: 7px; }
.selected .project-grid { grid-template-columns: minmax(0, 1.24fr) repeat(2,minmax(0,1fr)); align-items: end; }
.service-overview { background: #ede4d4; border-block: 1px solid var(--line); }
.two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: clamp(24px, 7vw, 105px); }
.top-align { align-items: start; }
.service-copy p,.intro { font-size: clamp(1.05rem,1.7vw,1.3rem); max-width: 44ch; }
.intro { color: var(--muted); margin-top: 15px; }
.simple-photo img { width: 100%; height: auto; }
.simple-photo figcaption, .note { color: var(--muted); margin-top: 12px; }
.review blockquote { padding-left: 25px; border-left: 3px solid var(--wine); }
.review blockquote p { font: italic clamp(2rem, 4.3vw, 4.25rem)/1 var(--display); }
.review blockquote footer { margin-top: 12px; }
.service-list { list-style: none; padding: 0; }
.service-list li,.faqs details { border-top: 1px solid var(--line); padding-block: 12px; }
.service-list a,.faqs summary { font-weight: 700; }
.service-list p,.faqs p { color: var(--muted); margin-top: 4px; max-width: 55ch; }
.faqs { max-width: 760px; margin-top: 29px; }
.faqs summary { min-height: 35px; cursor: pointer; }
.panel { background: var(--white); border: 1px solid var(--line); padding: clamp(18px, 4vw, 43px); }
.panel > * + * { margin-top: 10px; }
form label,form input,form select,form textarea { display: block; width: 100%; }
form label { font-weight: 700; }
form input,form select,form textarea { color: var(--ink); border: 1px solid #747c72; background: white; padding: 8px; min-height: 45px; }
form textarea { resize: vertical; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
#result { border-top: 1px solid var(--line); padding-top: 16px; }
.footer { background: var(--forest); color: var(--white); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px; padding-block: 27px; font-size: .9rem; }
.foot small { color: #d8dfd3; }
dialog { border: 0; padding: 0; width: min(93vw,960px); max-height: 90vh; background: var(--white); }
dialog img { width: 100%; height: auto; max-height: 73vh; object-fit: contain; background: var(--forest); }
dialog h2 { padding: 12px 20px; font-size: 2.3rem; }
dialog::backdrop { background: #17201aeb; }
dialog .close { position: absolute; right: 8px; top: 8px; }
@media(max-width: 920px) {
  .header-row { gap: 10px; }
  .header-actions { gap: 10px; }
  .project-grid,.catalog { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 700px) {
  .header-row { flex-wrap: wrap; gap: 0 10px; padding-top: 6px; }
  .logo img { width: 105px; }
  .header-actions { font-size: .8rem; gap: 5px 9px; }
  .header-actions .button { min-height: 40px; padding-inline: 8px; }
  nav { order: 3; width: 100%; font-size: .88rem; padding-block: 8px; }
  .hero-grid,.two { grid-template-columns: 1fr; gap: 16px; }
  .hero h1 { font-size: clamp(3.3rem, 12vw, 5rem); }
  .hero-grid { padding-block: 16px 19px; }
  .hero-photo { width: 100%; }
  .hero-copy > p:not(.overline) { margin-top: 10px; font-size: .97rem; }
  .hero .actions { margin-top: 12px; font-size: .9rem; }
  .selected .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .selected .project:first-child { grid-column: 1 / -1; }
}
@media(max-width: 360px) {
  .header-actions > a:first-child { font-size: .75rem; }
  .header-actions { column-gap: 6px; }
  .logo img { width: 86px; }
  .hero .button { padding-inline: 10px; }
  .hero .actions { column-gap: 9px; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.search { display: grid; gap: 5px; max-width: 465px; margin-top: 26px; }
.search label { font-weight: 700; }
.search input { background: var(--white); color: var(--ink); border: 1px solid #747c72; min-height: 46px; padding: 8px 12px; }
.search p { color: var(--muted); font-size: .9rem; }

.hero-photo img { height: auto; }
@media(max-width: 700px) {
  .hero-photo img { max-height: 36svh; }
  .hero h1 { font-size: clamp(3.1rem, 12vw, 5rem); }
}
@media(max-width: 360px) {
  .header-actions .button { padding-inline: 6px; }
  .hero .actions { font-size: .83rem; }
  .hero-grid { gap: 13px; }
}

@media(max-width: 360px) {
  .hero-photo img { max-height: 29svh; }
  .hero h1 { font-size: 2.9rem; }
}
