:root {
  color-scheme: light dark;
  --bg: #f2f1eb;
  --bg-soft: #e8ece5;
  --surface: #ecebe4;
  --text: #17201b;
  --muted: #5a635d;
  --line: #c8ccc4;
  --accent: #244936;
  --accent-hover: #173b29;
  --accent-text: #f4f4ee;
  --gold: #9f8955;
  --header-bg: rgba(242, 241, 235, 0.88);
  --radius: 2px;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-media: clamp(0.875rem, 1.8vw, 1.5rem);
  --shadow: 0 24px 80px rgba(42, 51, 45, 0.12);
  --page-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-space: clamp(5.5rem, 11vw, 10rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111814;
    --bg-soft: #18231d;
    --surface: #161f1a;
    --text: #e7e9e1;
    --muted: #abb3ac;
    --line: #36433a;
    --accent: #c0a96c;
    --accent-hover: #d0bb82;
    --accent-text: #111814;
    --gold: #b9a064;
    --header-bg: rgba(17, 24, 20, 0.9);
    --shadow: 0 24px 80px rgba(2, 6, 4, 0.3);
  }
}

* {
  box-sizing: border-box;
}

/* An author `display` rule beats the browser default for [hidden], so enforce it. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

p,
h1,
h2,
h3,
blockquote,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 5vw, 5rem);
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.45rem, 5vw, 5rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 40px color-mix(in srgb, var(--text) 7%, transparent);
}

.header-inner {
  display: flex;
  width: min(100%, 1440px);
  height: 4.5rem;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  width: 9.5rem;
  align-items: center;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.5rem);
}

.main-navigation a {
  position: relative;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 560;
  text-decoration: none;
  transition: color 180ms ease;
}

.main-navigation a:not(.nav-call)::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  content: "";
  transition: transform 260ms var(--ease);
}

.main-navigation a:hover {
  color: var(--text);
}

.main-navigation a:not(.nav-call):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-navigation .nav-call {
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.main-navigation .nav-call:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.5rem;
  height: 1px;
  margin: 0.35rem auto;
  background: currentColor;
  transition: transform 260ms var(--ease);
}

.hero {
  display: grid;
  width: min(100%, 1440px);
  min-height: 100dvh;
  margin-inline: auto;
  padding: clamp(7rem, 11vw, 9rem) var(--page-gutter) clamp(3.5rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy .eyebrow {
  margin-bottom: 1.4rem;
}

.hero-intro {
  max-width: 30rem;
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  margin-top: 2.2rem;
  align-items: center;
  gap: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  padding: 0.9rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 220ms var(--ease),
    background 220ms ease;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.button-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 620;
  text-decoration: none;
}

.text-link span {
  transition: transform 220ms var(--ease);
}

.text-link:hover span {
  transform: translateX(4px);
}

.hero-media {
  position: relative;
  height: min(70dvh, 47rem);
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-media);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(12, 23, 16, 0.16));
  content: "";
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center 44%;
  transition: transform 1.2s var(--ease);
}

.hero-media:hover img {
  transform: scale(1.018);
}

.statement {
  display: grid;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
}

.statement-lead {
  max-width: 19ch;
  font-size: clamp(2.3rem, 4.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.statement-body {
  padding-top: 0.6rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
}

.statement-body p + p {
  margin-top: 1.5rem;
}

.expertise {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  background: var(--bg-soft);
  box-shadow: 50vw 0 var(--bg-soft), -50vw 0 var(--bg-soft);
}

.section-heading p {
  max-width: 38rem;
  margin-top: 1.45rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.expertise-grid {
  display: grid;
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.expertise-item {
  display: flex;
  min-height: 19rem;
  padding: clamp(2rem, 4vw, 3.75rem);
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  transition: background 400ms ease;
}

.expertise-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.expertise-item:not(.expertise-featured):hover {
  background: color-mix(in srgb, var(--text) 4%, transparent);
}

.item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.item-icon {
  display: inline-flex;
  color: var(--accent);
  transition:
    transform 500ms var(--ease),
    color 300ms ease;
}

.item-icon svg {
  width: 2.125rem;
  height: 2.125rem;
}

.expertise-item:hover .item-icon {
  transform: translateY(-3px);
}

.item-number {
  color: var(--gold);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

/* Title and copy sit at the bottom, so the icon anchors the top of each tile. */
.item-body {
  margin-top: auto;
  padding-top: 3.5rem;
}

.expertise-item p {
  max-width: 27rem;
  margin-top: 1rem;
  color: var(--muted);
}

/* Photo-backed tile with a fixed dark scrim, so it reads the same in both colour schemes. */
.expertise-featured {
  position: relative;
  background: url("assets/instagram-kastenwand.jpg") center / cover;
  isolation: isolate;
}

.expertise-featured::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(155deg, rgba(16, 34, 25, 0.94), rgba(9, 19, 14, 0.86));
  content: "";
}

.expertise-featured h3 {
  color: #f4f4ee;
}

.expertise-featured p {
  color: rgba(244, 244, 238, 0.74);
}

.expertise-featured .item-icon,
.expertise-featured .item-number {
  color: var(--gold);
}

.work {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.work-heading .eyebrow {
  margin-bottom: 1.3rem;
}

.work-heading h2 {
  max-width: 15ch;
}

.work-grid {
  display: grid;
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 4rem);
  align-items: end;
}

.project-image {
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--surface);
  isolation: isolate;
}

.project-tall {
  margin-bottom: clamp(3rem, 8vw, 8rem);
}

/* Natural aspect ratio: the whole piece stays visible, nothing is cropped. */
.project img {
  width: 100%;
  height: auto;
  transition: transform 800ms var(--ease);
}

.project:hover img {
  transform: scale(1.025);
}

.project figcaption {
  position: relative;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

/* Gold hairline that sweeps across the caption rule on hover. */
.project figcaption::after {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  content: "";
  transition: transform 700ms var(--ease);
}

.project:hover figcaption::after {
  transform: scaleX(1);
}

.project-meta {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-meta span {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.project-note {
  max-width: 31rem;
  margin-top: 0.75rem;
  color: var(--muted);
}

.project h3 {
  margin-top: 0.85rem;
}

.project-tags {
  display: flex;
  margin: 1.25rem 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.project-tags li {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1;
}

.gallery {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  background: var(--bg-soft);
  box-shadow: 50vw 0 var(--bg-soft), -50vw 0 var(--bg-soft);
}

.gallery-grid {
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
  columns: 3;
  column-gap: clamp(0.65rem, 1.2vw, 1.25rem);
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(0.65rem, 1.2vw, 1.25rem);
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: var(--radius-media);
  background: var(--surface);
  color: inherit;
  cursor: zoom-in;
  isolation: isolate;
}

/* Natural aspect ratio: the whole piece stays visible, nothing is cropped. */
.gallery-item img {
  width: 100%;
  height: auto;
  transition:
    transform 700ms var(--ease),
    filter 300ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
  filter: saturate(1.04);
}

.gallery-item:active img {
  transform: scale(1.01);
}

.lightbox {
  width: min(94vw, 78rem);
  max-width: none;
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(6, 10, 8, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-inner {
  position: relative;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.lightbox img {
  width: 100%;
  height: min(72dvh, 50rem);
  border-radius: calc(var(--radius-md) - 0.25rem);
  background: var(--surface);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 1;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(244, 244, 238, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(17, 24, 20, 0.82);
  color: #f4f4ee;
  cursor: pointer;
}

.lightbox-footer {
  display: flex;
  padding-top: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.lightbox-footer p {
  color: var(--muted);
}

.lightbox-controls {
  display: flex;
  gap: 0.5rem;
}

.lightbox-controls button {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.lightbox-controls button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.craft {
  display: grid;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
  background: var(--bg-soft);
  box-shadow: 50vw 0 var(--bg-soft), -50vw 0 var(--bg-soft);
}

.craft-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-media);
  isolation: isolate;
}

.craft-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.craft-copy {
  padding-right: clamp(0rem, 6vw, 5rem);
}

.craft-copy p {
  max-width: 39rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.17rem);
}

.craft-copy blockquote {
  max-width: 28rem;
  margin-top: clamp(3.5rem, 6vw, 6rem);
  color: var(--accent);
  font-size: clamp(1.55rem, 2.8vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.process {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.process-list {
  position: relative;
  display: grid;
  margin: clamp(3.5rem, 7vw, 6.5rem) 0 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

/* Static hairline track plus a gold line that draws across it on scroll. */
.process-list::before,
.process-list::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
}

.process-list::before {
  background: var(--line);
}

.process-list::after {
  transform-origin: left;
  background: linear-gradient(
    90deg,
    var(--gold),
    color-mix(in srgb, var(--gold) 20%, transparent)
  );
  transition: transform 1700ms var(--ease) 120ms;
}

/* Hidden starting states are JS-gated, so the section stays readable without JS. */
.js .process-list::after {
  transform: scaleX(0);
}

.js .process.is-animated .process-list::after {
  transform: scaleX(1);
}

.process-list li {
  --step: 0ms;

  position: relative;
  min-height: 20rem;
  padding: 1.5rem clamp(1rem, 2.25vw, 2.25rem) 2rem;
  border-right: 1px solid var(--line);
}

/* Marker that pops onto the timeline as its step activates. */
.process-list li::before {
  position: absolute;
  top: -0.1875rem;
  left: -0.1875rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--gold);
  content: "";
  transition: transform 520ms var(--ease) calc(var(--step) + 260ms);
}

.js .process-list li::before {
  transform: scale(0);
}

.js .process.is-animated .process-list li::before {
  transform: scale(1);
}

.process-list li:last-child {
  border-right: 0;
}

.js .process-list li > span,
.js .process-list li > div {
  transform: translateY(18px);
  opacity: 0;
  transition:
    transform 900ms var(--ease),
    opacity 700ms ease;
}

.js .process.is-animated .process-list li > span,
.js .process.is-animated .process-list li > div {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger every step along the timeline. */
.process-list li:nth-child(1) {
  --step: 0ms;
}

.process-list li:nth-child(2) {
  --step: 220ms;
}

.process-list li:nth-child(3) {
  --step: 440ms;
}

.process-list li:nth-child(4) {
  --step: 660ms;
}

.process-list li::before {
  transition-delay: calc(var(--step) + 260ms);
}

.process-list li > span {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  transition-delay: calc(var(--step) + 320ms);
}

.process-list li > div {
  margin-top: 7rem;
  transition-delay: calc(var(--step) + 420ms);
}

.process-list p {
  margin-top: 1rem;
  color: var(--muted);
}

.contact {
  display: grid;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: clamp(3rem, 9vw, 9rem);
  background: var(--bg-soft);
  box-shadow: 50vw 0 var(--bg-soft), -50vw 0 var(--bg-soft);
}

.contact-copy > p {
  max-width: 35rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.contact-details {
  display: grid;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-content: start;
  gap: 2.2rem;
  font-style: normal;
}

.contact-details div {
  display: grid;
  padding-bottom: 1.3rem;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.contact-details span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.contact-details a {
  width: fit-content;
  text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent);
  text-underline-offset: 0.25rem;
}

.contact-details p,
.contact-details a {
  line-height: 1.55;
}

.contact-action {
  align-self: start;
}

.form-toggle {
  gap: 0.75rem;
}

.form-toggle-icon {
  position: relative;
  width: 0.7rem;
  height: 0.7rem;
}

.form-toggle-icon::before,
.form-toggle-icon::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  content: "";
  transition: transform 300ms var(--ease);
}

/* Vertical bar collapses into the horizontal one, turning the plus into a minus. */
.form-toggle-icon::after {
  transform: rotate(90deg);
}

.form-toggle[aria-expanded="true"] .form-toggle-icon::after {
  transform: rotate(0deg);
}

.quick-contact {
  display: flex;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  font-size: 0.92rem;
}

.quick-contact span {
  color: var(--muted);
}

.quick-contact a {
  font-weight: 620;
  text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent);
  text-underline-offset: 0.25rem;
  transition: color 180ms ease;
}

.quick-contact a:hover {
  color: var(--accent);
}

.form-panel {
  margin-top: 1.75rem;
}

.js .form-panel.is-open {
  animation: form-unfold 520ms var(--ease);
}

@keyframes form-unfold {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.contact-form {
  display: grid;
  align-content: start;
  gap: 1.15rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.form-title {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.field label span {
  font-weight: 500;
  opacity: 0.7;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition:
    border-color 200ms ease,
    background 200ms ease;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 2px;
  border-color: var(--accent);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b4553f;
}

.contact-form .button {
  width: fit-content;
  margin-top: 0.35rem;
}

/* Anti-spam honeypot: off-screen rather than display:none, which more bots skip. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="error"] {
  color: #b4553f;
}

.form-status[data-state="success"] {
  color: var(--accent);
}

.site-footer {
  display: grid;
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: 2.5rem;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.footer-brand {
  display: block;
  width: 7rem;
}

.footer-brand img {
  width: 100%;
  height: auto;
}

.footer-meta {
  display: grid;
  padding-top: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-meta a {
  text-decoration-color: color-mix(in srgb, var(--muted) 40%, transparent);
  text-underline-offset: 0.2rem;
}

.footer-meta p:last-child {
  text-align: right;
}

.page-intro {
  padding-top: clamp(7.5rem, 12vw, 10.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-intro .eyebrow {
  margin-bottom: 1.4rem;
}

.page-lead {
  max-width: 44rem;
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

.clips {
  padding-bottom: var(--section-space);
}

.clip-grid {
  display: grid;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
}

.clip-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--surface);
  box-shadow: var(--shadow);
  isolation: isolate;
}

/* Reels are shot 9:16, so reserve that box and let the poster fill it. */
.clip-media video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  background: #0b1310;
  object-fit: cover;
}

.clip-play {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #f4f4ee;
  cursor: pointer;
}

.clip-play::before {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  border: 1px solid rgba(244, 244, 238, 0.55);
  border-radius: 50%;
  background: rgba(12, 22, 17, 0.45);
  content: "";
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    transform 400ms var(--ease),
    background 300ms ease;
}

/* Triangle sits on top of the circle drawn by ::before. */
.clip-play::after {
  position: absolute;
  width: 0;
  height: 0;
  margin-left: 0.3rem;
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-left: 0.9rem solid currentColor;
  content: "";
}

.clip-play:hover::before {
  transform: scale(1.06);
  background: rgba(12, 22, 17, 0.62);
}

.clip figcaption {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.clip-meta {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.clip-meta span {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.clip h2 {
  max-width: none;
  margin-top: 0.8rem;
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
}

.clip-note {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.js .reveal {
  transform: translateY(26px);
  opacity: 0;
  transition:
    transform 850ms var(--ease),
    opacity 650ms ease;
}

.js .reveal[data-delay="1"] {
  transition-delay: 90ms;
}

.js .reveal[data-delay="2"] {
  transition-delay: 180ms;
}

.js .reveal[data-delay="3"] {
  transition-delay: 270ms;
}

.js .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
    gap: 2.5rem;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list li:nth-child(2) {
    border-right: 0;
  }

  .process-list li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 800px) {
  .header-inner {
    height: 4.25rem;
  }

  .brand {
    width: 8.3rem;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .main-navigation {
    position: fixed;
    inset: 4.25rem 0 auto;
    display: grid;
    max-height: 0;
    padding: 0 var(--page-gutter);
    overflow: hidden;
    visibility: hidden;
    background: var(--bg);
    opacity: 0;
    transition:
      max-height 350ms var(--ease),
      opacity 220ms ease,
      visibility 220ms ease;
  }

  .main-navigation.is-open {
    max-height: calc(100dvh - 4.25rem);
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    visibility: visible;
    opacity: 1;
  }

  .main-navigation a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 1.1rem;
  }

  .main-navigation a::after {
    display: none;
  }

  .main-navigation .nav-call {
    margin-top: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--accent);
    text-align: center;
  }

  .hero {
    display: flex;
    min-height: auto;
    padding-top: 6.5rem;
    padding-bottom: 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .hero-media {
    height: clamp(19rem, 42dvh, 23rem);
    min-height: 0;
  }

  .statement,
  .craft,
  .contact {
    grid-template-columns: 1fr;
  }

  .statement {
    gap: 3rem;
  }

  .statement-body {
    max-width: 40rem;
    padding-top: 0;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .project-tall {
    width: 72%;
    margin: 0 0 0 auto;
  }

  .gallery-grid {
    columns: 2;
  }

  .craft {
    gap: 3.5rem;
  }

  .craft-image {
    width: min(78%, 31rem);
  }

  .craft-copy {
    padding-right: 0;
  }

  .contact {
    gap: 4rem;
  }

  .contact-details {
    max-width: 39rem;
  }

  .contact-action {
    max-width: 39rem;
  }

  .clip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid {
    gap: 2.5rem;
  }

  .project-tall {
    margin-bottom: 0;
  }
}

@media (max-width: 580px) {
  :root {
    --page-gutter: 1.15rem;
    --section-space: 5.5rem;
  }

  h2 {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.15rem;
  }

  .hero-media {
    height: 17rem;
  }

  .expertise-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .expertise-item {
    min-height: auto;
    padding: 2.2rem 0;
    border-right: 0 !important;
  }

  .expertise-featured {
    margin-inline: calc(var(--page-gutter) * -1);
    padding-inline: var(--page-gutter);
  }

  .project-tall {
    width: 88%;
  }

  .gallery-grid {
    column-gap: 0.6rem;
  }

  .gallery-item {
    margin-bottom: 0.6rem;
  }

  .lightbox {
    width: calc(100vw - 1.25rem);
  }

  .lightbox-inner {
    padding: 0.65rem;
  }

  .lightbox img {
    height: 66dvh;
  }

  .lightbox-close {
    top: 1.25rem;
    right: 1.25rem;
  }

  .lightbox-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .lightbox-controls {
    width: 100%;
  }

  .lightbox-controls button {
    flex: 1;
  }

  .craft-image {
    width: 86%;
  }

  .process-list li,
  .process-list li:nth-child(2) {
    min-height: auto;
    padding: 1.5rem 0 2rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-list li:last-child {
    border-bottom: 0;
  }

  .process-list li > div {
    margin-top: 3.5rem;
  }

  .contact-details div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .item-body {
    padding-top: 2.25rem;
  }

  .item-icon svg {
    width: 1.875rem;
    height: 1.875rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.25rem;
  }

  /* Full-width tap target for the primary action on phones. */
  .form-toggle,
  .contact-form .button {
    width: 100%;
  }

  .quick-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .quick-contact a {
    padding: 0.35rem 0;
    font-size: 1.05rem;
  }

  .lightbox-controls button {
    min-height: 2.75rem;
  }

  .clip-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .clip-play::before {
    width: 3.5rem;
    height: 3.5rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    width: 5rem;
  }

  .footer-meta {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .footer-meta p:last-child {
    text-align: left;
  }
}

/* Keep content clear of rounded corners and notches on modern phones. */
@supports (padding: max(0px)) {
  .section-shell,
  .header-inner,
  .hero {
    padding-right: max(var(--page-gutter), env(safe-area-inset-right));
    padding-left: max(var(--page-gutter), env(safe-area-inset-left));
  }

  .site-footer {
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  }
}

/* Touch devices have no real hover, so these states would otherwise stick after a tap. */
@media (hover: none) {
  .hero-media:hover img,
  .project:hover img,
  .gallery-item:hover img {
    transform: none;
    filter: none;
  }

  .project:hover figcaption::after {
    transform: scaleX(0);
  }

  .expertise-item:not(.expertise-featured):hover {
    background: transparent;
  }

  .expertise-item:hover .item-icon {
    transform: none;
  }

  .button-primary:hover {
    transform: none;
    background: var(--accent);
  }

  .gallery-item {
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    transform: none;
    opacity: 1;
  }

  .js .process-list::after,
  .js .process-list li::before {
    transform: none;
  }

  .js .process-list li > span,
  .js .process-list li > div {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
