:root {
  color-scheme: dark;
  --green: #101e19;
  --blue: #101b2a;
  --black: #080c0e;
  --white: #f5f7f5;
  --muted: #c3cfce;
  --line: #d2e2dd38;
  --gutter: clamp(1.25rem, 6vw, 8rem);
  --header: 5rem;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--black);
  color: var(--white);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
a, button, input, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .3em; }
button, input, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #c7eee2; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: 550; line-height: .97; letter-spacing: -.075em; }
h1 { font-size: clamp(3.5rem, 8.2vw, 9rem); }
h2 { font-size: clamp(3rem, 7vw, 7.6rem); }
h3 { font-size: clamp(1.35rem, 2.25vw, 2.25rem); font-weight: 550; letter-spacing: -.04em; }
p { line-height: 1.65; }
img { display: block; width: 100%; height: auto; }
.skip { position: fixed; top: -6rem; left: 1rem; z-index: 5; background: var(--black); padding: .75rem; }
.skip:focus { top: .75rem; }

.masthead {
  position: fixed; z-index: 3; inset: 0 0 auto;
  min-height: var(--header); padding: .75rem var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  background: #080f15de; border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: opacity .32s ease, transform .32s ease;
}
.masthead.is-hidden:not(:focus-within) { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.wordmark { font-size: clamp(.875rem, 1.5vw, 1.15rem); font-weight: 650; line-height: 1.15; text-decoration: none; }
.wordmark span { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem clamp(.6rem, 2.5vw, 2.25rem); }
nav a { font-size: .875rem; text-decoration: none; padding: .55rem 0; }
nav a:hover { text-decoration: underline; }
.nav-contact { border: 1px solid var(--line); padding-inline: .7rem; }

.panel {
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center; scroll-margin-top: 0;
}
.panel::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, #edf5ef0b 0 1px, transparent 1px 7px);
  mask-image: linear-gradient(120deg, #000, transparent 85%);
}
.section-inner { width: 100%; padding: calc(var(--header) + 1rem) var(--gutter) 4rem; }
.hero { background: var(--black); }
.hero-image { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.hero-image img { height: 100%; object-fit: cover; object-position: 59% center; animation: settle 1.8s cubic-bezier(.2,.65,.25,1) both; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #080e13 0%, #0a151be8 28%, #10221e5c 70%, #080c0e26), linear-gradient(0deg, #080c0ebf, transparent 24%); }
.hero-content { padding: calc(var(--header) + 2.25rem) var(--gutter) 5rem; animation: enter .85s ease-out both; }
.eyebrow { color: #d6e9e2; font-size: .875rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; margin-bottom: clamp(.8rem, 2vw, 1.5rem); }
.lede { max-width: 31rem; margin-top: 1.35rem; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.3rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.5rem; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: .75rem 1.25rem; border: 1px solid transparent; background: var(--white); color: #0a1817; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .22s, transform .22s; }
.button:hover { background: #cce3d9; transform: translateY(-2px); }
.button:disabled { opacity: .65; cursor: wait; }
.text-link { padding-block: .6rem; }
.image-credit { position: absolute; right: var(--gutter); bottom: 1.6rem; font-size: .875rem; }

.work { background: radial-gradient(ellipse at 85% 15%, #264036, var(--green) 62%, #091310); }
.work-layout, .services-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); align-items: center; gap: clamp(1.3rem, 5vw, 6rem); }
.project-preview { margin-top: clamp(1.2rem, 4vw, 3rem); }
.project-preview h3 { font-size: 1rem; margin-bottom: .65rem; }
.project-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 8rem)); gap: .55rem; }
.project-photos a { overflow: hidden; border: 1px solid var(--line); }
.project-photos img { aspect-ratio: 3 / 2; object-fit: cover; transition: transform .45s ease; }
.project-photos a:hover img { transform: scale(1.08); }
.film { min-width: 0; }
.film-frame { padding: clamp(.4rem, 1vw, .85rem); background: linear-gradient(145deg, #abc3bb55, #0c1618 38%, #809b8c55); border: 1px solid var(--line); box-shadow: 0 1.6rem 4rem #03090b70; }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--black); }
.film figcaption { margin-top: .85rem; color: var(--muted); font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; }
.services { background: radial-gradient(ellipse at 8% 85%, #263a4b, var(--blue) 70%, #0c1520); }
.service-list { border-top: 1px solid var(--line); }
.service-list article { padding: clamp(1rem, 3vw, 2rem) 0; border-bottom: 1px solid var(--line); }
.service-list p { max-width: 34rem; color: var(--muted); margin-top: .55rem; }
.guide { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: clamp(1rem, 3vw, 2rem); }
.guide h3 { font-size: clamp(1.1rem, 1.7vw, 1.45rem); }
.guide p { margin-top: .25rem; font-size: .875rem; }
.guide-download { background: transparent; color: var(--white); border-color: var(--line); }
.guide-download:hover { color: var(--black); }
.contact { background: radial-gradient(ellipse at 75% 25%, #264238, transparent 58%), linear-gradient(145deg, #101f19, #09131e 82%); }
.contact-layout { padding-bottom: 7rem; }
.site-footer { position: absolute; inset: auto var(--gutter) 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.3rem; padding: 1.2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

dialog { width: min(35rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 1px solid var(--line); color: var(--white); background: radial-gradient(ellipse at top right, #253c39, #101b2a 72%); box-shadow: 0 2rem 7rem #0009; }
dialog[open] { animation: enter .28s ease-out both; }
dialog::backdrop { background: #04090bd6; backdrop-filter: blur(7px); }
.dialog-inner { position: relative; padding: clamp(1.2rem, 4vw, 2.75rem); }
.dialog-inner h2 { font-size: clamp(2.7rem, 7vw, 4.4rem); margin-bottom: 1.35rem; }
.dialog-close { position: absolute; top: .75rem; right: .75rem; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); background: transparent; color: var(--white); font-size: 1.55rem; cursor: pointer; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.fields label { display: grid; gap: .35rem; font-size: .9rem; min-width: 0; }
.wide { grid-column: 1 / -1; }
input, textarea { width: 100%; min-height: 2.65rem; padding: .55rem .7rem; border: 1px solid var(--line); background: #080e15ad; color: var(--white); font-size: 1rem; border-radius: 0; }
textarea { resize: vertical; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.privacy, .form-status { font-size: .875rem; color: var(--muted); margin: .75rem 0; }
.form-status:empty { display: none; }

@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes enter { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }
.motion .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .65s ease, transform .65s ease; }
.motion .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 52rem) {
  .work-layout, .services-layout { grid-template-columns: 1fr; }
  .work-layout { row-gap: 1.4rem; }
  .work-layout .section-copy { display: contents; }
  .work-layout .eyebrow { margin-bottom: -.75rem; }
  .work-layout .film { grid-row: 3; }
  .work-layout .project-preview { margin-top: 0; }
}
@media (max-width: 36rem) {
  :root { --header: 4.3rem; }
  h1 { font-size: clamp(2.65rem, 12vw, 4.5rem); }
  .desktop-break { display: none; }
  .hero-image img { object-position: 63% center; }
  .hero-image::after { background: linear-gradient(90deg, #080f15e8, #0b171b60), linear-gradient(0deg, #090e13, transparent 52%); }
  .section-inner { padding-top: calc(var(--header) + .75rem); }
  .contact-layout { padding-bottom: 8rem; }
  .guide-download { width: 100%; }
  .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .motion .reveal { opacity: 1; transform: none; }
}

.work-layout .section-copy { display: block; }
.work-layout h2 { font-size: clamp(2.9rem, 6vw, 6.6rem); }
.work-layout h2 span { color: #a4d7c6; }
.newsletter-form { margin-top: 1.35rem; }
.newsletter-form .fields { margin-bottom: .9rem; }
.agreement { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; line-height: 1.5; margin: .6rem 0; color: var(--muted); }
.agreement input, .mode-picker input { accent-color: #b0dfce; width: 1.1rem; min-height: auto; height: 1.1rem; flex: none; margin: .1rem 0 0; }
.newsletter-form .button { margin-top: .65rem; }
.film video { object-fit: contain; }
.reading { max-width: 70rem; margin: auto; padding: clamp(1.2rem, 6vw, 5rem); }
.reading h1 { font-size: clamp(2.4rem, 7vw, 5.6rem); margin: 2rem 0 1.5rem; overflow-wrap: anywhere; }
.reading h2 { font-size: clamp(1.75rem, 4vw, 3rem); margin: 1rem 0; }
.reading p { max-width: 44rem; margin: .8rem 0; }
.reading form { display: grid; gap: .85rem; }
.reading form label:not(.mode-picker label) { display: grid; gap: .3rem; }
.reading form .button { justify-self: start; }
.reading section { margin-top: 2rem; border-top: 1px solid var(--line); }
.article-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin fieldset { border: 1px solid var(--line); padding: .7rem 1rem; margin: 0; }
.mode-picker, .admin-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.mode-picker label { display: inline-flex; gap: .4rem; border: 1px solid var(--line); padding: .65rem .8rem; cursor: pointer; }
.mode-picker label:has(:checked) { border-color: #b0dfce; background: #254139; }
.mode-picker label:has(:disabled) { opacity: .5; cursor: default; }
.secondary { background: transparent; color: var(--white); border-color: var(--line); }
.secondary:hover { color: var(--black); }
.table-scroll { overflow: auto; }
.admin table { width: 100%; border-collapse: collapse; text-align: left; }
.admin th, .admin td { border-bottom: 1px solid var(--line); padding: .65rem; }
.admin-pagination { margin-top: 1rem; }
.admin li { margin-bottom: .55rem; }
@media (max-width: 52rem) {
  .work-layout .film { grid-row: auto; }
  .work-layout .eyebrow { margin-bottom: .8rem; }
}
@media (max-width: 36rem) {
  nav { column-gap: .45rem; }
  nav a { font-size: .8rem; }
  .nav-contact { padding-inline: .35rem; }
}

.field-help { color: var(--muted); font-size: .875rem; }
.banner-preview { width: min(100%, 40rem); }
.banner-preview img, .article-banner { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; border: 1px solid var(--line); }
#image-descriptions { display: grid; gap: .65rem; }
#image-descriptions:empty { display: none; }
.row-actions { white-space: nowrap; }
.compact { min-height: 2.3rem; padding: .35rem .65rem; margin: .15rem; font-size: .875rem; }
.office-form { display: grid; gap: .8rem; }
.office-form label { display: grid; gap: .35rem; }
#moderation-list article, #comment-list article { border-top: 1px solid var(--line); padding: .9rem 0; overflow-wrap: anywhere; }
#moderation-list p, #comment-list p { white-space: pre-wrap; }
.article { max-width: 75rem; }
.article h1 { font-size: clamp(2.5rem, 7vw, 5.75rem); margin-bottom: .75rem; }
.article .article-subheading { font-size: clamp(1.25rem, 2.7vw, 2rem); line-height: 1.4; color: var(--muted); max-width: 34ch; }
.article-banner { margin-top: 1.6rem; }
.article-body { margin-top: clamp(1.5rem, 4vw, 3rem); }
.article-body .article-copy { max-width: 66ch; font-size: clamp(1rem, 1.45vw, 1.18rem); line-height: 1.75; margin: 1rem 0; }
.article-gallery { display: grid; gap: clamp(.55rem, 1.5vw, 1.2rem); margin: 2rem 0; }
.article-gallery.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-gallery.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.article-gallery.columns-1 img { aspect-ratio: auto; max-height: 42rem; object-fit: contain; }
.article-video { width: 100%; aspect-ratio: 16 / 9; display: block; background: var(--black); margin: 2rem 0; }
.article-discussion { padding-top: 1.5rem; }
.article-discussion [aria-pressed="true"] { border-color: #b0dfce; background: #254139; color: var(--white); }
#comment-form { max-width: 42rem; margin-top: 1.3rem; }
.terms { max-width: 64rem; }
.terms li { max-width: 44rem; line-height: 1.65; margin-block: .75rem; }
.terms a { overflow-wrap: anywhere; }
@media (max-width: 36rem) {
  .article-gallery { gap: .35rem; }
  .article-gallery img { aspect-ratio: 1; }
}
