/* Rafla Design
   Layout: left-aligned, generous measure; one signature moment (the RD arch window in the hero),
   drafting dimension lines as the recurring structural detail; dark spruce bands carry the arch pattern. */
:root {
  --mint: #3abca3;        /* brand teal from the RD logo */
  --mint-deep: #1d7a68;   /* text-safe mint on light grounds */
  --mint-pale: #e3f4ef;
  --spruce: #0f2e29;      /* dark ground, replaces plain black */
  --spruce-2: #163d36;
  --paper: #f3f6f4;
  --white: #ffffff;
  --ink: #142320;
  --muted: #4f625d;
  --line: #cddad5;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-variation-settings: "wdth" 100;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--mint-deep); text-underline-offset: 3px; }
a:hover { color: var(--spruce); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }

h1, h2, h3 { font-family: var(--display); color: var(--spruce); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.02; font-weight: 800; font-variation-settings: "wdth" 116; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); line-height: 1.08; font-weight: 760; font-variation-settings: "wdth" 112; letter-spacing: -0.015em; }
h3 { font-size: 1.22rem; line-height: 1.25; font-weight: 680; font-variation-settings: "wdth" 106; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.measure { max-width: 38em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 650 1rem/1 var(--body); font-variation-settings: "wdth" 108;
  padding: 1rem 1.45rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-mint { background: var(--mint); color: var(--spruce); }
.btn-mint:hover { background: var(--spruce); color: var(--white); }
.btn-ghost { border-color: var(--spruce); color: var(--spruce); background: transparent; }
.btn-ghost:hover { background: var(--spruce); color: var(--white); }
.on-dark .btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--spruce); }
.on-dark .btn-mint:hover { background: var(--white); color: var(--spruce); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.hdr {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(243, 246, 244, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15,46,41,.5); }
.hdr-in { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; transition: min-height .3s var(--ease); }
.hdr.is-scrolled .hdr-in { min-height: 64px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--spruce); margin-right: auto; }
.brand-mark { width: 40px; height: 40px; fill: var(--mint); flex: none; }
.brand-name { font-family: var(--display); font-weight: 780; font-variation-settings: "wdth" 120; font-size: 1.08rem; letter-spacing: .01em; }
.nav { display: flex; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 520; font-size: .98rem; position: relative; padding: .3rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.hdr-call { font-weight: 650; color: var(--spruce); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hdr-call:hover { color: var(--mint-deep); }
.hdr-cta { padding: .78rem 1.15rem; }
.nav-toggle { display: none; background: none; border: 2px solid var(--spruce); border-radius: 999px; padding: .5rem 1rem; font: 600 .95rem var(--body); color: var(--spruce); cursor: pointer; }

@media (max-width: 1020px) {
  .hdr-call { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .hdr-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter-r) 1.2rem var(--gutter-l);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.assurances { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--muted); font-size: .97rem; }
.assurances li { display: flex; align-items: center; gap: .5rem; }
.assurances li::before { content: ""; width: 13px; height: 13px; flex: none; background: var(--mint); border-radius: 2px 13px 2px 2px; } /* top-right pane of the mark */

.hero-art { position: relative; max-width: 500px; justify-self: end; width: 100%; }
.arch-sign { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(15,46,41,.22)); }
.arch-sign .panel { fill: var(--mint); }
.arch-sign .outline { fill: none; stroke: var(--spruce); stroke-width: .7; stroke-dasharray: 100; stroke-dashoffset: 0; }
.arch-sign .photo { opacity: 1; }
.hero-caption { margin-top: 1rem; font-size: .88rem; color: var(--muted); }

/* The one orchestrated moment: linework draws, panel fills, render opens through the arches */
@media (prefers-reduced-motion: no-preference) {
  .js .arch-sign .panel { animation: panelIn .9s .9s var(--ease) both; transform-origin: center; }
  .js .arch-sign .outline { animation: draw 1.4s .1s var(--ease) both; }
  .js .arch-sign .photo { animation: photoIn 1.1s 1.25s var(--ease) both; }
  .js .arch-sign .photo image { animation: pan 18s 2.2s ease-in-out infinite alternate; transform-origin: center; }
  .js .hero-copy > * { animation: rise .8s var(--ease) both; }
  .js .hero-copy > *:nth-child(2) { animation-delay: .12s; }
  .js .hero-copy > *:nth-child(3) { animation-delay: .24s; }
  .js .hero-copy > *:nth-child(4) { animation-delay: .36s; }
}
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes panelIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes photoIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pan { from { transform: scale(1.04) translateX(-1.5%); } to { transform: scale(1.12) translateX(1.5%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Dimension strip (drafting detail) ---------- */
.dims { background: var(--white); border-block: 1px solid var(--line); }
.dims-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dim { padding: 1.8rem 1.4rem 1.6rem; position: relative; }
.dim + .dim { border-left: 1px solid var(--line); }
.dim-line { position: relative; height: 12px; margin-bottom: 1rem; }
.dim-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--mint-deep); }
.dim-line::after { content: ""; position: absolute; inset: 0; border-left: 1.5px solid var(--mint-deep); border-right: 1.5px solid var(--mint-deep); }
.dim-value { font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; font-variation-settings: "wdth" 118; color: var(--spruce); line-height: 1; font-variant-numeric: tabular-nums; }
.dim-label { color: var(--muted); font-size: .95rem; margin-top: .45rem; }
@media (max-width: 760px) {
  .dims-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dim:nth-child(3) { border-left: 0; }
  .dim:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.band { padding-block: clamp(4rem, 8vw, 6.5rem); }
.band-white { background: var(--white); }
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: 3rem; }
.band-head p { color: var(--muted); margin: 0; max-width: 32em; }
@media (max-width: 760px) { .band-head { grid-template-columns: 1fr; } }

/* Project types: a ruled schedule rather than cards */
.schedule { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--spruce); }
.schedule li { border-bottom: 1px solid var(--line); }
.schedule a {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 1.2rem; align-items: center;
  padding: 1.3rem .4rem; color: inherit; text-decoration: none; transition: background-color .25s, padding .25s var(--ease);
}
.schedule a:hover, .schedule a:focus-visible { background: var(--mint-pale); padding-left: 1rem; }
.schedule .ico { width: 3.2rem; height: 2.4rem; stroke: var(--spruce); fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.schedule h3 { font-size: 1.25rem; }
.schedule p { margin: 0; color: var(--muted); font-size: .98rem; }
.schedule .go { font-weight: 650; color: var(--mint-deep); font-size: .95rem; white-space: nowrap; }
@media (max-width: 760px) {
  .schedule a { grid-template-columns: 2.6rem minmax(0, 1fr); gap: .3rem 1rem; }
  .schedule .ico { width: 2.6rem; grid-row: span 2; }
  .schedule p { grid-column: 2; }
  .schedule .go { display: none; }
}

/* Why us: two columns of reasons with arch markers */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem 4rem; }
.reason { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 1.1rem; }
.reason .arch { width: 2.5rem; height: 2.5rem; background: var(--mint); border-radius: 50% 2px 2px 50%; } /* the four panes of the mark, one per reason */
.reason:nth-child(2) .arch { border-radius: 2px 100% 2px 2px; }
.reason:nth-child(3) .arch { border-radius: 2px; clip-path: polygon(57% 0, 100% 0, 100% 100%, 0 100%); background: var(--spruce); }
.reason:nth-child(4) .arch { border-radius: 2px 2px 100% 2px; background: var(--spruce); }
.reason h3 { margin-bottom: .5rem; }
.reason p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; gap: 2rem; } }

/* Process: real sequence, numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 1.4rem; border-top: 2px dashed var(--line); }
.steps-wrap { position: relative; }
.steps-wrap .track { position: absolute; z-index: 1; left: 0; top: 1.4rem; height: 2px; background: var(--mint); width: 100%; transform-origin: left; }
.steps li { counter-increment: s; position: relative; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: 1.1rem; position: relative; z-index: 2;
  background: var(--spruce); color: var(--white); font: 750 1.05rem var(--display); border-radius: 4px 1.6rem 4px 4px;
}
.steps h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.steps p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .steps::before, .steps-wrap .track { left: 1.4rem; right: auto; top: 0; bottom: 0; width: 0; height: auto; border-top: 0; border-left: 2px dashed var(--line); }
  .steps-wrap .track { width: 2px; border: 0; height: 100%; transform-origin: top; }
  .steps li { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); column-gap: 1.2rem; }
  .steps li::before { grid-row: span 2; margin: 0; }
}

/* Long-form process page */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; max-width: 52rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 1.6rem; top: 0; bottom: 0; border-left: 2px dashed var(--line); }
.timeline-wrap { position: relative; max-width: 52rem; }
.timeline-wrap .track { z-index: 1; position: absolute; left: 1.6rem; top: 0; width: 2px; height: 100%; background: var(--mint); transform-origin: top; }
.timeline li { counter-increment: t; position: relative; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1.6rem; padding-bottom: 3rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(t); display: grid; place-items: center; width: 3.2rem; height: 3.6rem; position: relative; z-index: 2;
  background: var(--spruce); color: var(--white); font: 780 1.25rem var(--display); border-radius: 4px 2rem 4px 4px; height: 3.2rem;
}
.timeline h3 { font-size: 1.4rem; margin: .5rem 0 .6rem; }
.timeline p { color: var(--muted); margin: 0; }
.timeline .note { display: inline-block; margin-top: .9rem; padding: .35rem .8rem; border-radius: 999px; background: var(--mint-pale); color: var(--mint-deep); font-weight: 600; font-size: .9rem; }

/* ---------- Dark bands ---------- */
.on-dark { background-color: var(--spruce); color: #d7e6e1; position: relative; isolation: isolate; }
.on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .band-head p { color: #c3d8d2; }
.on-dark a:not(.btn) { color: #9fe3d4; }
.arch-pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='100' viewBox='0 0 120 100'%3E%3Cg fill='none' stroke='%23fff' stroke-width='3.4'%3E%3Cg transform='translate%2810 8%29 scale%28.3%29'%3E%3Cpath d='M10 0H110A10 10 0 0 1 120 10V110A10 10 0 0 1 110 120H10A10 10 0 0 1 0 110V10A10 10 0 0 1 10 0Z M54 12H33A21 21 0 0 0 33 54H54Z M66 12A42 42 0 0 1 108 54H66Z M54 66H36L12 108H54Z M66 66H108A42 42 0 0 1 66 108Z'/%3E%3C/g%3E%3Cg transform='translate%2870 58%29 scale%28.3%29'%3E%3Cpath d='M10 0H110A10 10 0 0 1 120 10V110A10 10 0 0 1 110 120H10A10 10 0 0 1 0 110V10A10 10 0 0 1 10 0Z M54 12H33A21 21 0 0 0 33 54H54Z M66 12A42 42 0 0 1 108 54H66Z M54 66H36L12 108H54Z M66 66H108A42 42 0 0 1 66 108Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 100px;
}

/* ---------- Enquiry ---------- */
.enquire-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.enquire-side h2 { margin-bottom: 1rem; }
.enquire-side p { color: #c3d8d2; }
.contact-lines { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact-lines li { display: grid; gap: .1rem; }
.contact-lines .k { font-size: .9rem; color: #9db8b0; }
.contact-lines .v { font-family: var(--display); font-size: 1.35rem; font-weight: 700; font-variation-settings: "wdth" 112; color: var(--white); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-lines a.v:hover { color: var(--mint); }

.form { background: var(--white); color: var(--ink); border-radius: 22px; padding: clamp(1.4rem, 3.5vw, 2.4rem); box-shadow: 0 40px 60px -40px rgba(0,0,0,.6); }
.form h3 { color: var(--spruce); font-size: 1.45rem; margin-bottom: .3rem; }
.form > p { color: var(--muted); font-size: .97rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .93rem; color: var(--spruce); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem .9rem; background: var(--paper);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mint-deep); background: var(--white); box-shadow: 0 0 0 4px var(--mint-pale); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .55rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); font-size: .93rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; user-select: none; }
.chip span:hover { border-color: var(--mint-deep); }
.chip input:checked + span { background: var(--spruce); border-color: var(--spruce); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.5rem; }
.form-foot small { color: var(--muted); }
.form-status { margin-top: 1.1rem; padding: 1rem 1.1rem; border-radius: 12px; font-size: .97rem; }
.form-status.ok { background: var(--mint-pale); color: var(--spruce); }
.form-status.err { background: #fbeceb; color: #8c1d18; }
@media (max-width: 860px) { .enquire-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 1rem; max-width: 14em; }
.page-head .lead { margin: 0; }
.page-head .corner { position: absolute; right: max(-60px, -4vw); bottom: -40px; width: clamp(160px, 24vw, 300px); opacity: .9; }
.page-head .corner { fill: var(--mint); }
@media (max-width: 640px) { .page-head .corner { width: 120px; bottom: -30px; opacity: .5; } }

/* Services detail */
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--spruce); }
.svc article { padding: 2rem 2rem 2.2rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1.2rem; }
.svc article:nth-child(even) { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--line); }
.svc .ico { width: 3.4rem; height: 2.6rem; stroke: var(--spruce); fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.svc h3 { margin-bottom: .45rem; }
.svc p { color: var(--muted); margin: 0 0 .8rem; }
.svc a { font-weight: 650; text-decoration: none; }
.svc a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .svc { grid-template-columns: 1fr; }
  .svc article, .svc article:nth-child(even) { padding: 1.6rem 0; border-left: 0; }
}
.included { columns: 2 16rem; column-gap: 3rem; list-style: none; padding: 0; margin: 0; }
.included li { break-inside: avoid; padding: .9rem 0 .9rem 2rem; border-bottom: 1px solid rgba(255,255,255,.14); position: relative; }
.included li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 13px; height: 13px; background: var(--mint); border-radius: 2px 13px 2px 2px; }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { font: 600 .93rem var(--body); padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--spruce); color: var(--white); border-color: var(--spruce); }
.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.4rem; }
.work { grid-column: span 4; display: grid; gap: .8rem; align-content: start; }
.work.feature { grid-column: span 8; grid-row: span 2; }
.work figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--white); border: 1px solid var(--line); aspect-ratio: 4 / 3; max-width: 100%; }
.work.feature figure { aspect-ratio: 4 / 3; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover img { transform: scale(1.03); }
.work .elev { width: 100%; height: 100%; padding: 12%; stroke: var(--spruce); fill: none; stroke-width: 1.4; stroke-linejoin: round; background: repeating-linear-gradient(0deg, transparent 0 23px, #eef3f1 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, #eef3f1 23px 24px); }
.work .elev .ground { stroke: var(--mint-deep); stroke-width: 2; }
.work-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.work-meta h3 { font-size: 1.1rem; }
.tag { font-size: .82rem; font-weight: 650; color: var(--mint-deep); background: var(--mint-pale); padding: .2rem .6rem; border-radius: 999px; }
.work-meta p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .95rem; }
.work[hidden] { display: none !important; }
.work.wide { grid-column: span 6; }
.work.full { grid-column: 1 / -1; }
.work.full figure { aspect-ratio: 16 / 7; }
.work.wide figure { aspect-ratio: 16 / 10; }
.cutaway { position: relative; background: var(--white); }
.cutaway img { object-fit: contain !important; padding: 4%; }
.work:hover .cutaway img { transform: none; }
.turn { position: absolute; right: 12px; bottom: 12px; font: 650 .9rem var(--body); padding: .6rem 1rem; border-radius: 999px; border: 0; background: var(--spruce); color: var(--white); cursor: pointer; }
.turn:hover { background: var(--mint); color: var(--spruce); }
@media (prefers-reduced-motion: no-preference) { .cutaway img { animation: fadeIn .45s ease both; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) { .work, .work.feature, .work.wide { grid-column: span 6; } .work.feature, .work.full { grid-column: 1 / -1; } }
@media (max-width: 560px) { .work, .work.feature, .work.wide { grid-column: 1 / -1; } .work.full figure { aspect-ratio: 4 / 3; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-grid .measure p { font-size: 1.1rem; }
.family { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 1.8rem; display: grid; gap: 1.4rem; }
.family > div { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.family .arch { width: 3rem; height: 3rem; background: var(--mint); border-radius: 50% 3px 3px 50%; }
.family > div:nth-child(2) .arch { background: var(--spruce); border-radius: 3px 100% 3px 3px; }
.family h3 { font-size: 1.1rem; }
.family p { margin: .25rem 0 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Closing CTA band */
.closer { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.closer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 3rem; }
.closer h2 { max-width: 16em; }
.closer p { margin: 1rem 0 0; color: #c3d8d2; max-width: 34em; }
.closer-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Footer ---------- */
.ftr { background: var(--spruce); color: #9db8b0; padding-block: 3rem calc(2rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.08); font-size: .95rem; }
.ftr-in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.ftr .brand { color: var(--white); margin-bottom: .8rem; }
.ftr .brand-mark { fill: var(--mint); }
.ftr h4 { color: var(--white); margin: 0 0 .7rem; font: 650 1rem var(--display); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ftr a { color: #c3d8d2; text-decoration: none; }
.ftr a:hover { color: var(--mint); }
.ftr-base { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .88rem; }
@media (max-width: 760px) { .ftr-in { grid-template-columns: 1fr 1fr; } .ftr-in > :first-child { grid-column: 1 / -1; } }

/* ---------- Mobile action bar ---------- */
.mbar { display: none; }
@media (max-width: 860px) {
  .mbar {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .7rem var(--gutter-r) calc(.7rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: rgba(15,46,41,.96); backdrop-filter: blur(8px);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar .btn { justify-content: center; padding: .85rem .8rem; }
  body { padding-bottom: 0; }
  .ftr { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Responsive hero ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
