/* Layout: wide white page. A very light, oversized headline sits left of three cypress drawings that stand on one hairline ground line.
   The gallery is an offset 12-column grid of plain rectangles; everything else is thin rules and generous space. */
:root {
  color-scheme: light;
  --bg: #fcfcfb;
  --bg-soft: #f3f3f1;
  --ink: #161615;
  --muted: #6a6a67;
  --faint: #a8a8a4;
  --rule: rgba(22, 22, 21, .13);
  --brand-black: #171717;
  --brand-grey: #727270;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --tiny: clamp(.75rem, .72rem + .1vw, .8125rem);
  --small: clamp(.875rem, .85rem + .12vw, .95rem);
  --body: clamp(1rem, .96rem + .16vw, 1.0625rem);
  --display: clamp(3.4rem, .8rem + 9.4vw, 6.5rem);
  --title: clamp(2.4rem, 1.5rem + 3.2vw, 3.6rem);
  --gutter: clamp(1.25rem, 4.4vw, 4.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--body)/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 10; padding: .7rem 1rem; background: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.brand { white-space: nowrap; letter-spacing: -.06em; }
.brand-space { color: var(--brand-black); font-weight: 600; }
.brand-worx { color: var(--brand-grey); font-weight: 700; }
.eyebrow { font-size: var(--tiny); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted); line-height: 1.5; }

/* Header */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: 2rem; line-height: 1; }
.masthead nav { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.8rem); margin-left: auto; }
.masthead nav a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-size: clamp(.9rem, .85rem + .2vw, 1.05rem); }
.masthead nav a:hover, .lang button:is(:hover, [aria-pressed="true"]) { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.masthead nav .icon { width: .95rem; height: .95rem; }
.lang { display: flex; align-items: center; padding-left: .4rem; border-left: 1px solid var(--rule); }
.lang span { color: var(--faint); font-size: var(--tiny); }
.lang button { width: 44px; min-height: 44px; border: 0; background: none; font-size: var(--tiny); font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.lang button[aria-pressed="true"] { color: var(--ink); }

/* Hero */

.hero { padding-top: clamp(4rem, 11vw, 11rem); }
.hero-title { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0; font-size: clamp(3rem, .5rem + 11vw, 7.5rem); font-weight: 600; line-height: .95; letter-spacing: -.075em; }
.hero-title .word { display: inline-flex; padding-bottom: .22em; margin-bottom: -.22em; clip-path: inset(0 -.1em 0 -.1em); }
.hero-title .word:first-child { color: var(--brand-black); font-weight: 600; }
.hero-title .word:last-child { color: var(--brand-grey); font-weight: 700; }
.hero-title .ch { display: inline-block; animation: rise 1.25s var(--ease) calc(var(--i) * 70ms + .15s) both; }
@keyframes rise { from { transform: translateY(108%); } }
.hero-rule { margin-top: clamp(1.2rem, 2.5vw, 2.4rem); border-top: 1px solid var(--ink); transform-origin: left; animation: draw 1.6s var(--ease) .9s both; }
@keyframes draw { from { transform: scaleX(0); } }

/* Panorama */
.caption { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: .8rem; font-size: var(--small); }
.caption .index { color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .08em; font-size: var(--tiny); margin-right: 1rem; }
.caption h3 { font-weight: 600; font-size: var(--small); display: inline; }
.caption .kind { color: var(--muted); font-size: var(--tiny); }

/* Gallery */
.section { padding-top: clamp(5rem, 11vw, 11rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); margin-bottom: clamp(2.2rem, 5vw, 5rem); }
.section-head .eyebrow { margin-bottom: 1rem; }
h2 { font-size: var(--title); font-weight: 300; line-height: 1; letter-spacing: -.05em; }
.note { color: var(--muted); font-size: var(--small); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(.5rem, 1vw, 1rem); row-gap: clamp(.75rem, 1.5vw, 1.5rem); align-items: start; }
.work:nth-child(4n + 1) { grid-column: 1 / span 6; --cut: url(#gallery-cut-a); --ar: 32 / 24; }
.work:nth-child(4n + 2) { grid-column: 7 / span 6; margin-top: clamp(1rem, 3vw, 3rem); --cut: url(#gallery-cut-b); --ar: 1 / 1.1; }
.work:nth-child(4n + 3) { grid-column: 1 / span 5; --cut: url(#gallery-cut-c); --ar: 1 / 1.05; }
.work:nth-child(4n + 4) { grid-column: 7 / span 6; margin-top: clamp(.5rem, 1.5vw, 1.75rem); --cut: url(#gallery-cut-d); --ar: 32 / 22; }
.work.fresh { animation: fade 700ms var(--ease) both; }
.work .caption { margin-inline: 6%; flex-wrap: wrap; row-gap: 0; }
.open { position: relative; display: block; width: 100%; aspect-ratio: var(--ar); padding: 0; border: 0; background: none; cursor: pointer; }
.open .frame { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--bg-soft); clip-path: var(--cut); }
.open img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.open:hover img { transform: scale(1.035); }
.pencil { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: rgba(54, 54, 52, .66); stroke-width: 1.04; stroke-linecap: round; stroke-dasharray: 92 2.8 111 3.2 191 2.4 69 3 136 2.5 205 2.5 176 3.6; pointer-events: none; }
.open:focus-visible { outline: none; }
.open:focus-visible .pencil { stroke: var(--ink); stroke-width: 2; stroke-dasharray: none; }
.open .corner { position: absolute; right: 7%; bottom: 8%; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--rule); border-radius: 50%; background: var(--bg); transition: background-color 230ms var(--ease), color 230ms var(--ease); }
.open:is(:hover, :focus-visible) .corner { background: var(--ink); color: var(--bg); }

.more-wrap { display: flex; justify-content: center; padding-top: clamp(2.5rem, 5vw, 5rem); }
.more { display: inline-flex; align-items: center; gap: .8rem; min-height: 52px; padding: .8rem 1.6rem; border: 1px solid var(--ink); background: none; font-size: var(--small); font-weight: 600; transition: background-color 230ms var(--ease), color 230ms var(--ease); }
.more:hover { background: var(--ink); color: var(--bg); }
.more-count { color: inherit; opacity: .6; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Instagram window */
.ig { padding-top: clamp(2.5rem, 6vw, 6rem); }
.ig-window { border: 1px solid var(--ink); }
.ig-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem 1rem; min-height: 52px; border-bottom: 1px solid var(--ink); }
.ig-id { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--small); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.ig-glyph { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ig-glyph circle:last-child { fill: currentColor; stroke: none; }
.ig-open { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-size: var(--small); }
.ig-open:not([hidden]):hover span { text-decoration: underline; text-underline-offset: .3em; }
.ig-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--ink); }
.ig-tile { display: block; position: relative; overflow: hidden; aspect-ratio: 1; background: var(--bg-soft); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease), opacity 300ms; }
.ig-tile[href]:hover img { transform: scale(1.05); opacity: .9; }
.ig-tile:focus-visible { outline-offset: -4px; }

/* Contact + footer */
.contact-top { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-block: clamp(4rem, 9vw, 9rem) clamp(2.5rem, 5vw, 5rem); }
.contact-top .eyebrow { margin-bottom: 1rem; }
.contact-top h2 { font-size: clamp(2.8rem, 1.2rem + 6vw, 7rem); }
.contact-top h2 + p { margin-top: 1.2rem; color: var(--muted); }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), max-content)); gap: 1.4rem clamp(2rem, 6vw, 6rem); margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.details dt { margin-bottom: .35rem; }
.details dd { margin: 0; font-size: var(--body); max-width: 26ch; font-variant-numeric: tabular-nums; }
.details a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.top { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--rule); transition: background-color 230ms var(--ease), color 230ms var(--ease); }
.top:hover { background: var(--ink); color: var(--bg); }
.top .icon { rotate: 180deg; }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 80px; border-top: 1px solid var(--rule); }
.foot .wordmark { justify-self: start; font-size: 1.3rem; }
.foot-note { font-size: var(--tiny); color: var(--muted); }
.foot a:last-child { justify-self: end; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-size: var(--small); }
.copyright { border-top: 1px solid var(--rule); padding-block: .9rem 1.2rem; color: var(--muted); font-size: var(--tiny); font-variant-numeric: tabular-nums; }

/* Project page */
.project-view { padding-block: clamp(1.5rem, 3vw, 3rem) clamp(3rem, 6vw, 6rem); }
.project-view { animation: fade 450ms var(--ease) both; }
.project-view:focus { outline: none; }
.back { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; font-size: var(--small); }
.back .icon { transition: transform 240ms var(--ease); }
.back:hover .icon { transform: translateX(-4px); }
.project-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 6rem); align-items: start; margin-top: clamp(1rem, 2vw, 2rem); }
.project-figure { background: var(--bg-soft); }
.project-figure img { width: 100%; height: auto; max-height: 82dvh; object-fit: cover; }
.project-info { position: sticky; top: 1.5rem; display: grid; gap: 1.4rem; align-content: start; }
.project-title { font-size: calc(var(--title) * .65); font-weight: 600; line-height: 1; letter-spacing: -.06em; }
.project-meta { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 0; padding-block: 1.2rem; border-block: 1px solid var(--rule); }
.project-meta dd { margin: .3rem 0 0; font-size: var(--body); }
.project-text { color: var(--muted); max-width: 44ch; }
.project-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(3rem, 7vw, 7rem); border-top: 1px solid var(--ink); }
.project-nav a { display: grid; gap: .3rem; padding-block: 1.2rem; }
.project-nav a:last-child { text-align: right; }
.project-nav .name { font-size: clamp(.95rem, .85rem + .45vw, 1.3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.project-nav a:hover .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

@media (max-width: 900px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .work:nth-child(n) { grid-column: 1; margin-top: 0; }
  .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-head { align-items: start; flex-direction: column; }
  .project-body { grid-template-columns: minmax(0, 1fr); }
  .project-info { position: static; }
}
@media (max-width: 540px) {
  .masthead { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; min-height: 0; padding-top: .35rem; }
  .masthead .wordmark { grid-area: 1 / 1; font-size: 1.75rem; }
  .masthead .lang { grid-area: 1 / 2; border: 0; padding: 0; margin-right: -.6rem; }
  .masthead nav { grid-area: 2 / 1 / auto / span 2; margin: 0; gap: clamp(1.3rem, 6vw, 2.6rem); }
  .foot { grid-template-columns: 1fr auto; gap: 0 .75rem; padding-block: .75rem 1rem; }
  .foot-note { grid-area: 2 / 1 / auto / span 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Intro */
.welcome { display: none; }
html[data-screen="intro"] .site { display: none; }
html[data-screen="intro"] .welcome {
  position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto; place-items: center;
  row-gap: clamp(1.35rem, 3.5vw, 2.5rem); min-height: 100svh; overflow: hidden; background: var(--bg);
  padding-block: clamp(1.25rem, 5vw, 4rem) clamp(.95rem, 2.2vw, 1.85rem);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.topo { position: absolute; inset: -48px; z-index: -1; pointer-events: none; transform: translate(var(--contour-x, 0px), var(--contour-y, 0px)); animation: topo-in 3s var(--ease) .1s both; }
.topo canvas { display: block; width: 100%; height: 100%; }
.topo-labels { position: absolute; inset: 0; }
.topo-label { position: absolute; left: 0; top: 0; padding: .12em .45em; background: var(--bg); color: var(--muted); font: 600 var(--tiny)/1 var(--sans); letter-spacing: .06em; font-variant-numeric: tabular-nums; white-space: nowrap; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
@keyframes topo-in { from { clip-path: circle(0% at 10% 90%); } to { clip-path: circle(150% at 10% 90%); } }
.welcome-composition { width: min(100%, 45rem); display: grid; justify-items: center; gap: clamp(.6rem, 1.85vw, 1.4rem); text-align: center; }
.welcome-drawing { width: min(100%, 43rem, 118svh); }
.welcome-composition h1 { font: 700 clamp(1.855rem, 1.001rem + 3.5vw, 4.2rem)/1.05 var(--sans); letter-spacing: -.075em; }
#welcome-name { letter-spacing: inherit; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .16em; transition: text-decoration-color 260ms var(--ease); }
.welcome-entry { display: inline-grid; justify-items: center; gap: clamp(.7rem, 2vw, 1.65rem); padding: .15em .08em .08em; }
.welcome-word { display: inline-flex; justify-content: center; align-items: center; gap: clamp(.35rem, 1vw, .9rem); }
.welcome-entry:hover #welcome-name { text-decoration-color: var(--rule); }
#welcome-name .wl { display: inline-block; animation: wl-in 1.2s var(--ease) calc(.3s + var(--i) * 75ms) both; }
@keyframes wl-in { from { opacity: 0; filter: blur(14px); } }
.masthead .wl { display: inline-block; animation: wl-in 1.1s var(--ease) calc(.6s + var(--i) * 70ms) both; }
.welcome-entry:focus-visible #welcome-name .wl { animation: none; }
.welcome-arrow { width: clamp(2.75rem, 5vw, 3.5rem); aspect-ratio: 1; flex: none; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 50%; transition: background-color 260ms var(--ease), color 260ms var(--ease), transform 260ms var(--ease); }
.welcome-arrow .icon { width: 1.25rem; height: 1.25rem; }
.welcome-entry:hover .welcome-arrow, .welcome-entry:focus-visible .welcome-arrow { background: var(--ink); color: var(--bg); transform: translateX(3px); }
.welcome-label { display: flex; align-items: center; justify-content: center; gap: .65rem; }
.welcome-copyright { align-self: end; }
html[data-screen="site"] .site { animation: fade 350ms var(--ease) both; }
html[data-screen="site"].entry-morph .site { animation: none; }
.entry-morph #welcome-name, .entry-morph .masthead .brand { display: inline-block; line-height: 1; view-transition-name: spaceworx-wordmark; }
html.entry-morph::view-transition-group(root) { animation-duration: 520ms; }
html.entry-morph::view-transition-group(spaceworx-wordmark) { animation-duration: 620ms; animation-timing-function: cubic-bezier(.35, .05, .19, 1); }
html.entry-morph::view-transition-old(spaceworx-wordmark) { animation: morph-out 620ms linear both; }
html.entry-morph::view-transition-new(spaceworx-wordmark) { animation: morph-in 620ms linear both; }
@keyframes morph-out { 0%, 81% { opacity: 1; } to { opacity: 0; } }
@keyframes morph-in { 0%, 81% { opacity: 0; } to { opacity: 1; } }
.copyright { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .topo, html[data-screen="site"] .site, #welcome-name .wl { animation: none; }
}

/* Cypress pencil study */
.cypress-study { display: block; height: auto; overflow: visible; }
.cypress-outline { fill: #353432; fill-opacity: .036; stroke: #41403d; stroke-width: 1.02; stroke-linecap: round; stroke-linejoin: round; }
.cypress-facet { fill: #403e38; opacity: .09; }
.cypress-pencil { fill: none; stroke: #55544e; stroke-width: .85; stroke-linecap: round; stroke-linejoin: round; }
.cypress-light { stroke-width: .65; opacity: .62; }
.cypress-echo { stroke-width: .60; opacity: .47; }
.cypress-shade-fill { fill: #575650; fill-opacity: .19; }
.cypress-shade-pencil { fill: none; stroke: #66645c; stroke-width: .67; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .57; }
.cypress-bearing { transform-origin: 0 0; transform-box: view-box; transform: matrix(.969, .109, -.158, .969, 0, 0); }
.cypress-bearing[style] { transform: var(--cast-matrix, matrix(.969, .109, -.158, .969, 0, 0)); }
.specimen-short { --cypress-start: .16s; }
.specimen-medium { --cypress-start: .44s; }
.specimen-tall { --cypress-start: .72s; }
.cypress-ink { animation: pencil-reveal 1.12s cubic-bezier(.25,.62,.35,1) var(--cypress-start) both; }
.cypress-shadow { transform-box: fill-box; transform-origin: left top; animation: shade-stretch 1.15s var(--ease) calc(var(--cypress-start) + .52s) both; }
@keyframes pencil-reveal {
  0% { clip-path: inset(100% 0 0); opacity: 0; }
  20% { opacity: .84; }
  100% { clip-path: inset(0); opacity: 1; }
}
@keyframes shade-stretch {
  from { transform: scale(.045); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cypress-ink, .cypress-shadow { animation: none; }
}


/* Project page: photo mosaic and its lightbox */
.project-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 8rem); align-items: end; margin-top: clamp(1rem, 2vw, 2rem); }
.project-head .eyebrow { margin-bottom: 1rem; }
.project-side { display: grid; gap: 1.2rem; }
.project-head .project-meta { padding-block: 1rem; }
.shots { --g: 6px; container-type: inline-size; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: calc((100cqw - 5 * var(--g)) / 6 * .72); grid-auto-flow: dense; gap: var(--g); margin-top: clamp(2rem, 4vw, 4rem); }
.shot { position: relative; overflow: hidden; padding: 0; border: 0; background: var(--bg-soft); cursor: zoom-in; }
.shot:nth-child(10n + 1), .shot:nth-child(10n + 2) { grid-column: span 2; grid-row: span 2; }
.shot:nth-child(10n + 3) { grid-row: span 2; }
.shot:nth-child(10n + 6) { grid-column: span 3; grid-row: span 2; }
.shot:nth-child(10n + 7), .shot:nth-child(10n + 9) { grid-column: span 2; }
.shot { transition: opacity 450ms var(--ease); }
.shot img { width: 100%; height: 100%; object-fit: cover; scale: var(--s, 1.12); translate: 0 var(--py, 0%); transition: scale 1.3s var(--ease) var(--d, 0s); }
.shot:hover img { --s: 1.17; transition-duration: 900ms; transition-delay: 0s; }
@media (hover: hover) { .shots:has(.shot:hover) .shot:not(:hover) { opacity: .5; } }
/* Reveal on scroll: only armed by the script, so the mosaic is always complete without it. The tile itself stays whole (the observer watches it); the photo inside is what opens. */
.shots.arm .shot img { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease) var(--d, 0s), scale 1.3s var(--ease) var(--d, 0s); }
.shots.arm .shot:not(.in) img { clip-path: inset(0 0 100% 0); --s: 1.35; }
.shots.arm .shot:hover img { transition-delay: 0s; transition-duration: 900ms; }
.shot:focus-visible { outline-color: #fff; outline-offset: -5px; }

body:has(dialog[open]) { overflow: hidden; }
dialog { width: calc(100% - 2rem); max-width: 1000px; max-height: calc(100dvh - 2rem); padding: 0; border: 0; background: var(--bg); color: var(--ink); }
dialog::backdrop { background: rgba(18, 18, 17, .78); }
dialog[open] { animation: fade 250ms var(--ease) both; }
.lb { padding: clamp(.7rem, 2vw, 1.4rem); }
.lb-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.lb-media { height: min(66dvh, 680px); display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--bg-soft); cursor: grab; user-select: none; }
.lb-media::-webkit-scrollbar { display: none; }
.lb-media.dragging { scroll-snap-type: none; cursor: grabbing; }
.lb-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.lb-slide img { width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .8rem; }
.lb-foot .index { color: var(--muted); font-size: var(--tiny); letter-spacing: .08em; font-variant-numeric: tabular-nums; margin-right: 1rem; }
.lb-foot h2 { display: inline; font-size: clamp(.8rem, 1.5vw, .95rem); font-weight: 400; letter-spacing: -.03em; }
.btns { display: flex; gap: .35rem; }
.btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rule); background: none; transition: background-color 230ms var(--ease), color 230ms var(--ease); }
.btn:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 900px) {
  .project-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 700px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: calc((100cqw - var(--g)) / 2); }
  .shot:nth-child(n) { grid-column: auto; grid-row: auto; }
  .shot:nth-child(5n + 1) { grid-column: span 2; }
}
@media (max-width: 540px) {
  .lb-media { height: auto; aspect-ratio: 1.13; }
  .lb-foot > div:first-child { display: grid; gap: .2rem; }
}

/* Project page motion */
.project-head { position: relative; padding-bottom: clamp(1.5rem, 3vw, 2.6rem); }
.project-head::after { content: ""; position: absolute; inset: auto 0 0 0; border-top: 1px solid var(--ink); transform-origin: left; animation: draw 1.5s var(--ease) .5s both; }
.project-head .eyebrow { animation: soft-in .9s var(--ease) .1s both; }
.project-meta { animation: soft-in .9s var(--ease) .65s both; }
.project-text { animation: soft-in .9s var(--ease) .85s both; }
@keyframes soft-in { from { opacity: 0; transform: translateY(10px); } }
.pt-word { display: inline-flex; padding-bottom: .16em; margin-bottom: -.16em; clip-path: inset(0 -.1em 0 -.1em); }
.pt-ch { display: inline-block; animation: rise 1.1s var(--ease) calc(.12s + var(--i) * 45ms) both; }
.project-nav a .eyebrow { display: inline-flex; gap: .6em; }
.project-nav a:first-child .eyebrow::before { content: "\2190"; transition: transform 400ms var(--ease); }
.project-nav a:last-child .eyebrow { justify-self: end; }
.project-nav a:last-child .eyebrow::after { content: "\2192"; transition: transform 400ms var(--ease); }
.project-nav a:first-child:hover .eyebrow::before { transform: translateX(-6px); }
.project-nav a:last-child:hover .eyebrow::after { transform: translateX(6px); }
.project-nav .name { transition: transform 500ms var(--ease); }
.project-nav a:first-child:hover .name { transform: translateX(8px); }
.project-nav a:last-child:hover .name { transform: translateX(-8px); }
html.leaving #top { opacity: 0; transition: opacity 260ms ease; }

/* Services: a hairline grid of cells */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.services li { display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; min-height: clamp(9rem, 14vw, 12rem); padding: clamp(1rem, 1.6vw, 1.5rem); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background-color 400ms var(--ease); }
.services li:hover { background: rgba(23, 23, 23, .035); }
.svc-name { font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; max-width: 14ch; }
.svc-sub { display: flex; flex-direction: column; gap: .2rem; color: var(--muted); font-size: .95rem; }
.svc-sub:empty { display: none; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Process */
.process { --line-y: 6px; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.process-line { position: absolute; left: 0; top: 0; width: 100%; height: 12px; overflow: visible; fill: none; stroke: rgba(54, 54, 52, .7); stroke-width: 1.04; stroke-linecap: round; stroke-dasharray: 92 2.8 111 3.2 191 2.4 69 3 136 2.5 205 2.5 176 3.6; clip-path: inset(0 0 0 0); }
.process li { position: relative; padding-top: 2.1rem; display: block; }
.process .node { position: absolute; left: 0; top: 0; width: 13px; height: 13px; border: 1px solid var(--ink); border-radius: 50%; background: var(--bg); }
.process .step { display: block; font-size: clamp(1.15rem, .95rem + .8vw, 1.7rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; max-width: 12ch; }
.process.arm:not(.in) .process-line { clip-path: inset(0 100% 0 0); }
.process.arm .process-line { transition: clip-path 1.8s var(--ease); }
.process.arm:not(.in) li { opacity: 0; }
.process.arm li { transition: opacity 700ms var(--ease) calc(var(--i) * 280ms + .25s); }
@media (max-width: 700px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process-line { display: none; }
  .process li { padding: .9rem 0 .9rem 2rem; border-left: 1px solid var(--ink); }
  .process .node { top: 1.15rem; left: -7px; }
}

/* Plan and section drawings */
.drawings-head { margin-top: clamp(3rem, 6vw, 6rem); padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.drawings { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr); gap: clamp(1rem, 2vw, 2rem); margin-top: 1.6rem; }
.drawing { margin: 0; display: grid; gap: .8rem; padding: clamp(.8rem, 1.6vw, 1.4rem); border: 1px solid var(--rule); }
.drawing svg { display: block; width: 100%; height: auto; }
.drawing figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .7rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--tiny); letter-spacing: .12em; text-transform: uppercase; }
.sk { fill: none; stroke: var(--ink); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.sk.thin { stroke-width: .6; opacity: .6; }
.sk.hatch { stroke-width: .5; opacity: .5; }
.tone { fill: var(--ink); fill-opacity: .07; stroke: none; }
.drawings.arm .sk { stroke-dasharray: 1; stroke-dashoffset: 1; }
.drawings.arm.in .sk { stroke-dashoffset: 0; transition: stroke-dashoffset 1.7s var(--ease) calc(var(--k, 0) * 55ms); }
.drawings.arm .tone { opacity: 0; }
.drawings.arm.in .tone { opacity: 1; transition: opacity 1.2s var(--ease) 1.1s; }
@media (max-width: 900px) { .drawings { grid-template-columns: minmax(0, 1fr); } }
.ntxt { font-size: 11px; }

/* Collaborated architects */
.architects { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.architects li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 2rem; padding-block: clamp(.9rem, 1.8vw, 1.5rem); border-top: 1px solid var(--rule); }
.arch-name { font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
.arch-meta { color: var(--muted); font-size: var(--body); }
.arch-empty .arch-name { color: var(--faint); }

/* Compact menu: the four links fold into a Menu button on narrow screens */
.menu-toggle { display: none; }
@media (max-width: 1120px) {
  .masthead { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0 1rem; min-height: 0; padding-top: .35rem; }
  .masthead .wordmark { grid-area: 1 / 1; }
  .masthead .lang { grid-area: 1 / 2; margin-right: 0; }
  .menu-toggle { grid-area: 1 / 3; display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: .95rem; cursor: pointer; }
  .menu-bars { position: relative; width: 18px; height: 9px; border-block: 1px solid currentColor; transition: height 300ms var(--ease); }
  .menu-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid currentColor; opacity: 0; transition: opacity 200ms; }
  .masthead.menu-open .menu-bars { height: 0; border-block-width: 0; }
  .masthead.menu-open .menu-bars::after { opacity: 1; transform: rotate(0); }
  .masthead nav { grid-area: 2 / 1 / auto / span 3; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: .4rem 0 .6rem; border-top: 1px solid var(--rule); }
  .masthead.menu-open nav { display: flex; animation: menu-in 380ms var(--ease) both; }
  .masthead nav a { justify-content: space-between; min-height: 50px; padding-block: .3rem; font-size: 1.1rem; font-weight: 500; letter-spacing: -.03em; border-bottom: 1px solid var(--rule); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .masthead.menu-open nav { animation: none; } }

/* Service sketches */
.services li { position: relative; }
.svc-sk { position: absolute; right: clamp(.8rem, 1.4vw, 1.3rem); bottom: clamp(.8rem, 1.4vw, 1.3rem); width: clamp(54px, 6.4vw, 92px); height: auto; fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.svc-sk .sk { stroke-width: 1.1; }
.services.arm .sk { stroke-dasharray: 1; stroke-dashoffset: 1; }
.services.arm.in .sk { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s var(--ease) calc(var(--k, 0) * 70ms); }

/* Section headings: grey highlighter band */
.section-head .eyebrow, .drawings-head { display: inline-block; width: fit-content; padding: .42em .85em .38em; background: #e6e6e3; color: var(--ink); font-size: .85rem; font-weight: 600; letter-spacing: .16em; border-radius: 2px; }
.drawings-head { margin-top: clamp(3rem, 6vw, 6rem); border-top: 0; }
.section-head .eyebrow { background-image: linear-gradient(#d9d9d5, #d9d9d5); background-repeat: no-repeat; background-size: 100% 100%; }
@keyframes hl-sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@media (prefers-reduced-motion: no-preference) {
  .section-head .eyebrow { animation: hl-sweep 900ms var(--ease) both; animation-timeline: view(); animation-range: entry 10% cover 25%; }
}

.masthead nav a { white-space: nowrap; }
@media (max-width: 1120px) { .masthead nav a { white-space: normal; } }

/* Offices and clients lists */
.roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); }
.roster-title { margin: 0 0 1rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.4rem); font-weight: 600; letter-spacing: -.03em; }
.roster .arch-name { font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); }
.roster .architects li { padding-block: clamp(.7rem, 1.2vw, 1rem); }
.roster.arm .architects li { opacity: 0; transform: translateY(-10px); }
.roster.arm.in .architects li { opacity: 1; transform: none; transition: opacity 700ms var(--ease) calc(var(--i, 0) * 110ms + .1s), transform 700ms var(--ease) calc(var(--i, 0) * 110ms + .1s); }
@media (max-width: 760px) { .roster { grid-template-columns: minmax(0, 1fr); } }

/* Back to top */
.to-top { position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px)); z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; opacity: 0; transform: scale(.85); pointer-events: none; transition: opacity 300ms var(--ease), transform 300ms var(--ease), background-color 200ms, color 200ms; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--bg); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
html[data-screen="intro"] .to-top { display: none; }

/* All projects page */
.all-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); }
.all-title { margin: 0; font-size: clamp(1.54rem, .7rem + 3.5vw, 3.5rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.all-count { color: var(--muted); font-size: var(--body); }
.all-list { list-style: none; margin: 0 0 clamp(3rem, 6vw, 6rem); padding: 0; border-bottom: 1px solid var(--rule); }
.all-list li { border-top: 1px solid var(--rule); }
.all-list a { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto auto; align-items: center; gap: 1rem clamp(1rem, 3vw, 2.5rem); padding-block: clamp(.7rem, 1.2vw, 1rem); transition: background-color 300ms var(--ease); }
.all-list a:hover { background: rgba(23, 23, 23, .035); }
.all-num { color: var(--muted); font-size: .9rem; letter-spacing: .1em; }
.all-name { font-size: clamp(1.04rem, .8rem + 1.12vw, 1.76rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; transition: transform 500ms var(--ease); }
.all-list a:hover .all-name { transform: translateX(.6rem); }
.all-kind { color: var(--muted); font-size: .95rem; }
.all-thumb { width: clamp(72px, 9vw, 128px); aspect-ratio: 3 / 2; object-fit: cover; border-radius: 50% / 50%; filter: grayscale(.1); transition: transform 500ms var(--ease); }
.all-list a:hover .all-thumb { transform: scale(1.08); }
.all-list.arm li { opacity: 0; transform: translateY(-10px); }
.all-list.arm.in li { opacity: 1; transform: none; transition: opacity 650ms var(--ease) calc(var(--i, 0) * 70ms + .1s), transform 650ms var(--ease) calc(var(--i, 0) * 70ms + .1s); }
.all-link-wrap { display: flex; justify-content: center; margin-top: 1.1rem; }
.all-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: .1rem; }
.all-link .icon { width: 1rem; height: 1rem; transition: transform 300ms var(--ease); }
.all-link:hover .icon { transform: translateX(.3rem); }
@media (max-width: 640px) {
  .all-list a { grid-template-columns: 2.2rem minmax(0, 1fr) auto; }
  .all-kind { display: none; }
  .all-thumb { width: 64px; }
}

/* Contact heading: same grey highlighter band as the other section headings */
.contact-top > div > .eyebrow.label { display: inline-block; width: fit-content; padding: .42em .85em .38em; background: #d9d9d5; color: var(--ink); font-size: .85rem; font-weight: 600; letter-spacing: .16em; border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .contact-top > div > .eyebrow.label { animation: hl-sweep 900ms var(--ease) both; animation-timeline: view(); animation-range: entry 10% cover 25%; }
}

/* Process is a sub-part of Profile and Services: a plain sub-heading, no highlighter band */
#surec .section-head .eyebrow { background: none; padding: 0; border-radius: 0; animation: none; font-size: clamp(1.1rem, 1rem + .4vw, 1.4rem); font-weight: 600; letter-spacing: -.03em; text-transform: none; }
#surec .section-head { margin-bottom: clamp(1.4rem, 3vw, 2.6rem); }

/* Intro: the contour lines fade out behind the cypresses so the trees read clearly */
.welcome-composition { position: relative; isolation: isolate; }
.welcome-composition::before { content: ""; position: absolute; z-index: -1; left: -28%; right: -28%; top: -14%; height: 70%; pointer-events: none; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(252, 252, 251, .97) 0%, rgba(252, 252, 251, .93) 60%, rgba(252, 252, 251, 0) 100%); }

/* Empty plan / section slot (until the project's own drawing is added) */
.drawing-empty { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px dashed var(--rule); color: var(--faint); font-size: var(--small); text-align: center; padding: 1rem; }
.drawing { min-width: 0; }
.drawing-empty { width: 100%; min-width: 0; box-sizing: border-box; }
.drawing:has(.drawing-empty) { grid-template-rows: 1fr auto; }
.drawing-empty { aspect-ratio: auto; min-height: clamp(14rem, 30vw, 26rem); height: 100%; }

/* All projects: each thumbnail is a different hand-drawn oval */
.all-thumb { width: clamp(72px, 9vw, 128px); aspect-ratio: 8 / 5; border-radius: 50%; }
.all-list li:nth-child(6n+1) .all-thumb { border-radius: 52% 48% 50% 50% / 58% 56% 44% 42%; rotate: -3deg; }
.all-list li:nth-child(6n+2) .all-thumb { border-radius: 46% 54% 58% 42% / 50% 44% 56% 50%; rotate: 2deg; }
.all-list li:nth-child(6n+3) .all-thumb { border-radius: 60% 40% 46% 54% / 46% 58% 42% 54%; rotate: -1.5deg; }
.all-list li:nth-child(6n+4) .all-thumb { border-radius: 50% 50% 42% 58% / 62% 48% 52% 38%; rotate: 4deg; }
.all-list li:nth-child(6n+5) .all-thumb { border-radius: 44% 56% 52% 48% / 54% 40% 60% 46%; rotate: -2.5deg; }
.all-list li:nth-child(6n+6) .all-thumb { border-radius: 56% 44% 48% 52% / 44% 60% 40% 56%; rotate: 1deg; }
.all-list a:hover .all-thumb { transform: scale(1.08); }

.project-note { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--small); max-width: 44ch; }

/* Six photos: three equal tiles per row */
@media (min-width: 901px) {
  .shots[data-count="6"] .shot { grid-column: span 2; grid-row: span 2; }
}

/* Home gallery captions: project name first, type always on the line below */
.work .caption { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: .2rem; }

/* Gallery captions +25% */
.work .caption { font-size: calc(var(--small) * 1.25); }
.work .caption h3 { font-size: calc(var(--small) * 1.25); }
.work .caption .index, .work .caption .kind { font-size: calc(var(--tiny) * 1.25); }

/* Highlighter sweep replays on every scroll pass, up or down (class toggled by app.js) */
@media (prefers-reduced-motion: no-preference) {
  html.hl-js .section-head .eyebrow, html.hl-js .drawings-head, html.hl-js .contact-top > div > .eyebrow.label {
    animation: none; background-repeat: no-repeat; background-image: linear-gradient(#d9d9d5, #d9d9d5);
    background-size: 0% 100%; transition: background-size 900ms var(--ease);
  }
  html.hl-js .section-head .eyebrow.hl-on, html.hl-js .drawings-head.hl-on, html.hl-js .contact-top > div > .eyebrow.label.hl-on { background-size: 100% 100%; }
  html.hl-js #surec .section-head .eyebrow { background: none; transition: none; }
}

/* Profile and Services intro */
.svc-intro { max-width: 46rem; margin: 0 0 clamp(1.6rem, 3vw, 2.6rem); font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); line-height: 1.5; letter-spacing: -.015em; color: var(--ink); }

/* Process: a little colour, from spring green to terracotta */
.process li:nth-of-type(1) { --c: #5f8a5a; } .process li:nth-of-type(2) { --c: #8d9a3f; } .process li:nth-of-type(3) { --c: #c49a2e; }
.process li:nth-of-type(4) { --c: #cf7a43; } .process li:nth-of-type(5) { --c: #a8553f; }
.process .node { width: 17px; height: 17px; top: -2px; background: var(--c); border-color: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent); }
.process .step { color: var(--c); }
.process-line { stroke: rgba(95, 138, 90, .8); stroke-width: 1.6; }
@media (max-width: 760px) { .process li { border-left-color: var(--c); border-left-width: 2px; } .process .node { left: -10px; } }

/* Highlighter bands: larger text, longer band */
.section-head .eyebrow, .drawings-head, .contact-top > div > .eyebrow.label { font-size: 1.05rem; padding: .5em 2.6em .46em 1em; letter-spacing: .14em; }
@media (max-width: 540px) { .section-head .eyebrow, .drawings-head, .contact-top > div > .eyebrow.label { font-size: .9rem; padding-right: 1.6em; } }

/* Round 3 tweaks */
.section-head { border-top: 1px solid #8c8c88; }
.section-head .eyebrow, .drawings-head, .contact-top > div > .eyebrow.label { display: block; width: 100%; box-sizing: border-box; }
#surec .section-head .eyebrow { display: inline-block; width: auto; }
.grid { row-gap: .5rem; }
.work:nth-child(4n + 2) { margin-top: clamp(.5rem, 1.5vw, 1.5rem); }
.work:nth-child(4n + 4) { margin-top: 0; }
.svc-intro { max-width: none; }
.work .caption h3 { font-size: calc(var(--small) * 1.55); }
.open .corner { width: 34px; height: 34px; }
.open .corner .icon { width: 15px; height: 15px; }
.work:nth-child(4n + 2) { margin-top: 0; }


/* Round 4 */
/* bands: Projects and Contact span the full width too */
.section-head > div { flex: 1 1 auto; min-width: 0; }
.contact-top > div:first-child { flex: 1 1 auto; min-width: 0; }

/* "Selected WorX" title animation */
@media (prefers-reduced-motion: no-preference) {
  #gallery-title.title-anim { overflow: hidden; padding-bottom: .12em; }
  #gallery-title.title-anim { opacity: 0; transform: translateY(.6em); clip-path: inset(0 100% 0 0); letter-spacing: .02em; transition: opacity 700ms var(--ease), transform 900ms var(--ease), clip-path 1100ms var(--ease), letter-spacing 1100ms var(--ease); }
  #gallery-title.title-anim.title-in { opacity: 1; transform: none; clip-path: inset(0 0 -.2em 0); letter-spacing: -.05em; }
}

/* All projects link: a coloured pill with a moving arrow */
.all-link-wrap { margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.all-link { gap: 1rem; min-height: 56px; padding: .9rem 2rem; border: 0; border-radius: 999px; background: #5f8a5a; color: #fff; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); font-weight: 600; letter-spacing: -.01em; box-shadow: 0 0 0 0 rgba(95, 138, 90, .45); animation: all-pulse 2.6s var(--ease) infinite; transition: background-color 300ms var(--ease), transform 300ms var(--ease); }
.all-link:hover { background: #46703f; transform: translateY(-2px); }
.all-link .icon { width: 1.3rem; height: 1.3rem; stroke: currentColor; animation: all-nudge 1.8s var(--ease) infinite; }
@keyframes all-nudge { 0%, 60%, 100% { transform: translateX(0); } 30% { transform: translateX(.45rem); } }
@keyframes all-pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 138, 90, .45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(95, 138, 90, 0); } }
@media (prefers-reduced-motion: reduce) { .all-link, .all-link .icon { animation: none; } }

/* Services tiles: colour and entrance */
.services li:nth-child(7n+1) { --c: #5f8a5a; } .services li:nth-child(7n+2) { --c: #8d9a3f; } .services li:nth-child(7n+3) { --c: #c49a2e; }
.services li:nth-child(7n+4) { --c: #cf7a43; } .services li:nth-child(7n+5) { --c: #a8553f; } .services li:nth-child(7n+6) { --c: #7a6a9c; } .services li:nth-child(7n+7) { --c: #3f8a8c; }
.services li { background: color-mix(in srgb, var(--c) 7%, transparent); }
.services li::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--c); transform-origin: left; }
.services li:hover { background: color-mix(in srgb, var(--c) 16%, transparent); }
.svc-name { color: color-mix(in srgb, var(--c) 70%, #161615); }
.svc-sk { stroke: var(--c); }
@media (prefers-reduced-motion: no-preference) {
  .services.tiles-anim li { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease) calc(var(--n, 0) * 110ms), transform 800ms var(--ease) calc(var(--n, 0) * 110ms), background-color 400ms var(--ease); }
  .services.tiles-anim li::before { transform: scaleX(0); transition: transform 900ms var(--ease) calc(var(--n, 0) * 110ms + .25s); }
  .services.tiles-anim.tiles-in li { opacity: 1; transform: none; }
  .services.tiles-anim.tiles-in li::before { transform: scaleX(1); }
  .services.tiles-anim:not(.tiles-in) .sk { stroke-dashoffset: 1; stroke-dasharray: 1; }
  .services.tiles-anim.tiles-in .sk { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s var(--ease) calc(var(--n, 0) * 110ms + var(--k, 0) * 70ms + .3s); }
}


/* Contact band reaches the page edge, past the back-to-top square */
.contact-top > div:first-child > .eyebrow.label { margin-right: calc(-52px - 1rem); width: auto; }

/* Hero: a colour wave runs through "Create Space" every few seconds */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .ch { animation: rise 1.25s var(--ease) calc(var(--i) * 70ms + .15s) both, hero-wave 9s ease-in-out calc(var(--i) * 140ms + 4s) infinite; }
}
@keyframes hero-wave {
  7% { color: hsl(calc(var(--i) * 34 + 90) 52% 42%); transform: translateY(-.04em); }
  14% { color: hsl(calc(var(--i) * 34 + 130) 55% 46%); }
  22% { }
}

/* New Year week */
.ny-snow { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.ny-lights circle { opacity: .15; animation: ny-twinkle 2.4s ease-in-out var(--d, 0s) infinite; }
.ny-star { fill: #e0b34a; stroke: #b9892a; stroke-width: .8; stroke-linejoin: round; animation: ny-twinkle 2.8s ease-in-out infinite; }
@keyframes ny-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ny-lights circle, .ny-star { animation: none; opacity: .9; } }


/* New Year week: full show */
.ny-fx { position: fixed; inset: 0; z-index: 36; pointer-events: none; }
.ny-garland { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); z-index: 37; height: 34px; display: flex; justify-content: space-between; pointer-events: none; overflow: hidden; }
.ny-garland::before { content: ""; position: absolute; left: -5%; right: -5%; top: -26px; height: 40px; border-bottom: 2px solid #5b6b57; border-radius: 0 0 50% 50% / 0 0 100% 100%; opacity: .55; }
.ny-garland i { position: relative; top: var(--y, 8px); flex: 0 0 12px; height: 17px; margin: 0 13px; background: var(--c, #e0b34a); border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%; box-shadow: 0 0 10px 3px color-mix(in srgb, var(--c) 70%, transparent); animation: ny-bulb 1.8s ease-in-out var(--d, 0s) infinite; }
.ny-garland i::before { content: ""; position: absolute; left: 3px; top: -5px; width: 6px; height: 6px; background: #5b6b57; border-radius: 1px; }
@keyframes ny-bulb { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }
.ny-greet { position: fixed; left: 50%; top: calc(46px + env(safe-area-inset-top, 0px)); z-index: 37; transform: translateX(-50%); display: flex; white-space: nowrap; padding: .5rem 1.3rem; border-radius: 999px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(4px); box-shadow: 0 6px 24px rgba(160, 120, 30, .25), 0 0 0 1px rgba(224, 179, 74, .6); cursor: pointer; font-weight: 700; letter-spacing: .02em; font-size: clamp(.85rem, .75rem + .5vw, 1.15rem); animation: ny-drop 1.2s var(--ease) 1s both; }
.ny-greet span { background: linear-gradient(100deg, #b9892a 0%, #e8c25a 30%, #cf7a43 55%, #b9892a 80%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ny-shimmer 3.2s linear infinite, ny-letter 2.4s ease-in-out calc(var(--i) * 70ms) infinite; }
@keyframes ny-drop { from { opacity: 0; transform: translate(-50%, -30px) scale(.8); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes ny-shimmer { to { background-position: -250% 0; } }
@keyframes ny-letter { 0%, 70%, 100% { transform: none; } 85% { transform: translateY(-.28em); } }
/* intro: bigger sparkle on the cypress lights and a livelier hero wave */
.ny-star { transform-box: fill-box; transform-origin: center; animation: ny-twinkle 1.4s ease-in-out infinite, ny-spin 6s linear infinite; }
@keyframes ny-spin { to { transform: rotate(360deg) scale(1.25); } }
.ny-on .hero-title .ch { animation: rise 1.25s var(--ease) calc(var(--i) * 70ms + .15s) both, hero-wave 4s ease-in-out calc(var(--i) * 120ms + 2s) infinite; }
@media (prefers-reduced-motion: reduce) { .ny-garland i, .ny-greet span { animation: none; } .ny-greet { animation: none; } }
@media (max-width: 540px) { .ny-garland i { margin: 0 6px; } .ny-greet { padding: .4rem .9rem; } }

/* New Year week: giant flakes and Santa */
.ny-big { position: fixed; top: -160px; z-index: 29; pointer-events: none; color: #9fb8d4; text-shadow: 0 0 18px rgba(255,255,255,.9); animation: ny-fall var(--dur, 22s) linear infinite; will-change: transform; line-height: 1; }
@keyframes ny-fall { 0% { transform: translate3d(0,0,0) rotate(0); } 50% { transform: translate3d(var(--sway), 55vh, 0) rotate(calc(var(--spin) / 2)); } 100% { transform: translate3d(calc(var(--sway) * -.6), calc(100vh + 200px), 0) rotate(var(--spin)); } }
.ny-santa { position: fixed; top: var(--top, 20vh); left: 0; z-index: 35; width: min(440px, 62vw); aspect-ratio: 440 / 120; pointer-events: none; opacity: 0; transform: translateX(-120%); filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); }
.ny-santa.go { animation: ny-fly 11s linear forwards; }
.ny-santa.go.rev { animation-name: ny-fly-rev; }
.ny-santa.rev svg { transform: scaleX(-1); }
@keyframes ny-fly { 0% { opacity: 1; transform: translate(-110%, 0); } 25% { transform: translate(calc(25vw - 55%), -28px); } 50% { transform: translate(calc(50vw - 55%), 10px); } 75% { transform: translate(calc(75vw - 55%), -24px); } 100% { opacity: 1; transform: translate(calc(100vw + 10%), 6px); } }
@keyframes ny-fly-rev { 0% { opacity: 1; transform: translate(calc(100vw + 10%), 0); } 25% { transform: translate(calc(75vw - 55%), -28px); } 50% { transform: translate(calc(50vw - 55%), 10px); } 75% { transform: translate(calc(25vw - 55%), -24px); } 100% { opacity: 1; transform: translate(-110%, 6px); } }
.ny-deer { animation: ny-gallop .5s ease-in-out infinite alternate; transform-box: fill-box; }
@keyframes ny-gallop { to { transform: translateY(-4px); } }

.ny-huge { top: -110vmin; z-index: 28; text-shadow: none; filter: blur(1px); }
@keyframes ny-fall-huge { 0% { transform: translate3d(0,0,0) rotate(0); } 100% { transform: translate3d(calc(var(--sway) * -1), calc(100vh + 120vmin), 0) rotate(var(--spin)); } }
.ny-huge { animation-name: ny-fall-huge; }

/* menu typography closer to the wordmark */
.masthead nav a, .masthead .lang button, .menu-toggle { font-weight: 500; letter-spacing: -.025em; }
.masthead nav a { font-size: clamp(.95rem, .9rem + .22vw, 1.1rem); }

/* menu: heavier, grey like the wordmark */
.masthead nav a, .masthead .lang button, .menu-toggle { font-weight: 600; letter-spacing: -.03em; color: var(--brand-grey); transition: color 200ms; }
.masthead nav a:hover, .masthead .lang button:is(:hover, [aria-pressed="true"]) { color: var(--brand-black); }

/* menu sits a little lower than the wordmark (desktop) */
@media (min-width: 541px) { .masthead nav, .masthead .lang { position: relative; top: .55rem; } }
@media (min-width: 541px) { .masthead nav, .masthead .lang { top: 1.15rem; } }

/* mobile: gray band spans the full width; smaller captions under the ovals */
@media (max-width: 900px) {
  .section-head { align-items: stretch; }
  .section-head > div, .contact-top > div { width: 100%; align-self: stretch; }
  .section-head .eyebrow, .drawings-head, .contact-top > div > .eyebrow.label { width: 100%; box-sizing: border-box; }
}
@media (max-width: 700px) {
  .work .caption { font-size: calc(var(--small) * .9); }
  .work .caption h3 { font-size: calc(var(--small) * 1.08); }
  .work .caption .index, .work .caption .kind { font-size: calc(var(--tiny) * .9); }
}

/* desktop: wordmark on top, dashed grey rule, menu underneath */
@media (min-width: 1121px) {
  .masthead { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 1.5rem; min-height: 0; padding-top: .6rem; }
  .masthead .wordmark { grid-area: 1 / 1; }
  .masthead .lang { grid-area: 1 / 2; top: 0; border-left: 0; padding-left: 0; }
  .masthead nav { grid-area: 2 / 1 / auto / span 2; top: 0; margin: .15rem 0 0; padding-top: .15rem; border-top: 1px dashed #9a9a96; justify-content: flex-start; }
}

/* desktop: wordmark, dashed rule, then menu + language back in their right-hand position */
@media (min-width: 1121px) {
  .masthead::after { content: ""; grid-area: 2 / 1 / auto / span 2; border-top: 1px dashed #9a9a96; margin-top: .15rem; }
  .masthead nav { grid-area: 3 / 1; border-top: 0; padding-top: 0; margin: 0 0 0 auto; justify-content: flex-end; }
  .masthead .lang { grid-area: 3 / 2; top: 0; border-left: 1px solid var(--rule); padding-left: .4rem; }
}

/* silent looping clip under the photos */
.project-video { margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; }
.project-video video { display: block; width: auto; max-width: 100%; max-height: min(78vh, 760px); background: var(--bg-soft); }

/* Selected projects: three ovals per row on desktop, each row gently staggered */
@media (min-width: 901px) {
  .work:nth-child(n) { grid-column: auto / span 4; margin-top: 0; }
  .work:nth-child(3n + 2) { margin-top: clamp(1.5rem, 4vw, 4rem); }
  .work:nth-child(3n + 3) { margin-top: clamp(.5rem, 1.8vw, 2rem); }
  .grid { row-gap: clamp(.75rem, 2vw, 2rem); }
  .work .caption h3 { font-size: calc(var(--small) * 1.2); }
  .work .caption .index, .work .caption .kind { font-size: var(--tiny); }
}

/* New Year greeting scrolls away with the page and never covers the menu */
.ny-greet { position: absolute; z-index: 5; }
body:has(.masthead.menu-open) .ny-greet { opacity: 0; visibility: hidden; pointer-events: none; }
.ny-greet { top: calc(8.5rem + env(safe-area-inset-top, 0px)); }
@media (max-width: 540px) { .ny-greet { top: calc(6.5rem + env(safe-area-inset-top, 0px)); } }

/* Gentle stagger that alternates between rows */
@media (min-width: 901px) {
  .work:nth-child(6n + 1) { margin-top: 0; transform: none; }
  .work:nth-child(6n + 2) { margin-top: clamp(2rem, 5vw, 5rem); transform: none; }
  .work:nth-child(6n + 3) { margin-top: clamp(.75rem, 2vw, 2rem); transform: none; }
  .work:nth-child(6n + 4) { margin-top: clamp(1.5rem, 3.5vw, 3.5rem); transform: none; }
  .work:nth-child(6n + 5) { margin-top: 0; transform: none; }
  .work:nth-child(6n + 6) { margin-top: clamp(2.5rem, 6vw, 6rem); transform: none; }
}

/* Him Stay, Demirören and Darüşşafaka pulled up closer to the rows above */
@media (min-width: 901px) {
  .work:nth-child(4) { margin-top: calc(-1 * clamp(3rem, 8vw, 8rem)); }
  .work:nth-child(7) { margin-top: calc(-1 * clamp(4rem, 9vw, 9rem)); }
  .work:nth-child(8) { margin-top: calc(-1 * clamp(5rem, 12vw, 12rem)); }
}
@media (min-width: 901px) {
  .work:nth-child(7) { margin-top: calc(-1 * clamp(10rem, 25.5vw, 25rem)); }
}

/* Packed three-column layout (positions set by app.js) */
@media (min-width: 901px) {
  .grid.is-masonry { grid-auto-rows: 8px; row-gap: 0; align-items: start; }
  .grid.is-masonry .work:nth-child(n) { margin-top: 0; transform: none; }
}

/* Tablets and phones: two packed columns */
.grid.is-masonry { grid-auto-rows: 8px; row-gap: 0; align-items: start; }
.grid.is-masonry .work:nth-child(n) { margin-top: 0; transform: none; }
@media (max-width: 900px) {
  .grid.is-masonry { column-gap: clamp(.6rem, 2.5vw, 1.5rem); }
  .grid.is-masonry .work .caption { margin-inline: 4%; }
  .grid.is-masonry .work .caption h3 { font-size: calc(var(--small) * 1.05); }
  .grid.is-masonry .work .caption .index, .grid.is-masonry .work .caption .kind { font-size: var(--tiny); }
}
@media (max-width: 540px) {
  .grid.is-masonry .work .caption { margin-inline: 2%; gap: .1rem; padding-top: .5rem; }
  .grid.is-masonry .work .caption h3 { font-size: .86rem; line-height: 1.25; }
  .grid.is-masonry .work .caption .index { margin-right: 0; }
  .grid.is-masonry .work .caption .kind { font-size: .72rem; line-height: 1.3; }
}
.grid.is-masonry { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* Phone and tablet: project number gets proper size and breathing room next to the title */
@media (max-width: 900px) {
  .grid.is-masonry .work .caption .index { display: inline-block; margin-right: .6rem; font-size: .85rem; letter-spacing: .06em; }
}
@media (max-width: 540px) {
  .grid.is-masonry .work .caption .index { margin-right: .5rem; font-size: .8rem; }
}

/* Project numbers as a marker highlight */
.work .caption .index { display: inline-block; padding: .12em .5em .08em; background: linear-gradient(transparent 12%, #dfe9a6 12%, #dfe9a6 92%, transparent 92%); color: #2c3320; border-radius: 2px; font-weight: 600; letter-spacing: .08em; }

/* Oval corner arrow: same green highlight as the project numbers */
.open .corner { background: #dfe9a6; color: #2c3320; border-color: #dfe9a6; }
.open:is(:hover, :focus-visible) .corner { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Bud arrow: stem + bud, opens into a flower on hover */
.bud .petal { opacity: 0; transform: scale(.2); transform-origin: 13px 11px; transition: opacity 230ms var(--ease), transform 300ms var(--ease); }
.bud .head, .bud .stem { transition: transform 300ms var(--ease); transform-origin: 13px 11px; }
.open:is(:hover, :focus-visible) .bud .petal { opacity: 1; transform: scale(1); }
.open:is(:hover, :focus-visible) .bud .head { transform: scale(1.08); }
.open .corner .bud { width: 28px; height: 28px; stroke-width: 1.3; }
@media (max-width: 900px) { .open .corner .bud { width: 23px; height: 23px; } }

/* Leaf arrow (replaces the bud): leaf gently grows on hover */
.bud.leaf .head, .bud.leaf .vein { transform-origin: 13px 11px; transition: transform 300ms var(--ease); }
.open:is(:hover, :focus-visible) .bud.leaf .head, .open:is(:hover, :focus-visible) .bud.leaf .vein { transform: scale(1.14) rotate(-6deg); }

/* Flower arrow: a five-petal bloom, one long petal pointing up-right */
.bud.flower .bloom { transform-origin: 13.5px 10.5px; transition: transform 350ms var(--ease); }
.bud.flower .petal5 { stroke-width: 1.2; }
.bud.flower .core { fill: currentColor; stroke: none; }
.open:is(:hover, :focus-visible) .bud.flower .bloom { transform: rotate(72deg) scale(1.1); }

/* Project numbers: highlight removed (size and spacing kept) */
.work .caption .index { background: none; color: inherit; padding: 0; border-radius: 0; font-weight: 600; }

/* Flower arrow: smaller and centred so it clears the oval's edge */
.open .corner .bud, .open .corner .bud.flower { width: 21px; height: 21px; stroke-width: 1.4; overflow: visible; transform: translate(-.5px, .5px); }
@media (max-width: 900px) { .open .corner .bud, .open .corner .bud.flower { width: 21px; height: 21px; } }

/* Project numbers in grey; flower nudged further inside the oval */
.work .caption .index { color: var(--muted); }
.open .corner .bud, .open .corner .bud.flower { width: 19px; height: 19px; transform: translate(-1.5px, 1.5px); }
@media (max-width: 900px) { .open .corner .bud, .open .corner .bud.flower { width: 19px; height: 19px; } }

/* Fainter project numbers; flower pulled further inside the oval */
.work .caption .index { color: #b4b4b0; }
.open .corner .bud, .open .corner .bud.flower { transform: translate(-2.5px, 2.5px); }

/* Green circle (with flower) moved further inside the organic photo shape */
.open .corner { right: 14%; bottom: 15%; }
.open .corner .bud, .open .corner .bud.flower { transform: translate(-1px, 1px); }
@media (max-width: 900px) { .open .corner { right: 13%; bottom: 14%; } }

/* Green circle moved outward, toward the corner of the photo */
.open .corner { right: 2%; bottom: 3%; }
@media (max-width: 900px) { .open .corner { right: 2%; bottom: 3%; } }

/* Intro: letters of SpaceWorX light up in colour one after another; cypresses turn green in sequence */
@keyframes wl-color { 0%, 46%, 100% { color: inherit; } 18%, 30% { color: var(--wc, #5f8a5a); } }
#welcome-name .wl {
  animation: wl-in 1.2s var(--ease) calc(.3s + var(--i) * 75ms) both,
             wl-color 5.6s ease-in-out calc(1.9s + var(--i) * 170ms) infinite;
}
#welcome-name .wl:nth-child(6n+1) { --wc: #5f8a5a; }
#welcome-name .wl:nth-child(6n+2) { --wc: #c9a227; }
#welcome-name .wl:nth-child(6n+3) { --wc: #d2587a; }
#welcome-name .wl:nth-child(6n+4) { --wc: #7d6bc4; }
#welcome-name .wl:nth-child(6n+5) { --wc: #e07a3c; }
#welcome-name .wl:nth-child(6n+6) { --wc: #3f9aa8; }
.welcome-entry:focus-visible #welcome-name .wl { animation: none; }

@keyframes cypress-green { from { filter: none; } to { filter: sepia(1) saturate(5) hue-rotate(50deg) brightness(.92); } }
.specimen-short .cypress-ink { animation: pencil-reveal 1.12s cubic-bezier(.25,.62,.35,1) var(--cypress-start) both, cypress-green 1.6s ease-in-out 1.5s both; }
.specimen-medium .cypress-ink { animation: pencil-reveal 1.12s cubic-bezier(.25,.62,.35,1) var(--cypress-start) both, cypress-green 1.6s ease-in-out 2.1s both; }
.specimen-tall .cypress-ink { animation: pencil-reveal 1.12s cubic-bezier(.25,.62,.35,1) var(--cypress-start) both, cypress-green 1.6s ease-in-out 2.7s both; }
@media (prefers-reduced-motion: reduce) { #welcome-name .wl, .cypress-ink { animation: none !important; } }

/* Colour waves start sooner */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .ch { animation: rise 1.25s var(--ease) calc(var(--i) * 70ms + .15s) both, hero-wave 7s ease-in-out calc(var(--i) * 100ms + 1.2s) infinite; }
}
#welcome-name .wl {
  animation: wl-in 1.2s var(--ease) calc(.3s + var(--i) * 75ms) both,
             wl-color 4.6s ease-in-out calc(.7s + var(--i) * 110ms) infinite;
}
.welcome-entry:focus-visible #welcome-name .wl { animation: none; }
@media (prefers-reduced-motion: reduce) { #welcome-name .wl { animation: none !important; } }

/* Wide screens: the oval corner is more rounded relative to the tile, so tuck the circle inward */
@media (min-width: 600px) {
  .open .corner { width: 38px; height: 38px; right: 6.5%; bottom: 8.5%; }
}

/* Wide reference group: full width, two columns of names on larger screens */
.roster-wide { grid-column: 1 / -1; }
.roster-wide .architects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); border-bottom: 0; }
.roster-wide .architects li { border-bottom: 0; }
@media (max-width: 760px) { .roster-wide .architects { grid-template-columns: minmax(0, 1fr); } }

/* Clients: three highlighted sub-lists in small type */
.roster-clients .client-sub { margin-top: clamp(1.4rem, 3vw, 2.25rem); }
.client-title { display: inline-block; margin: 0 0 .7rem; padding: .35rem .7rem; background: #dfe9a6; color: #2c3320; font-size: clamp(.72rem, .68rem + .15vw, .82rem); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
.roster-clients .client-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); border-bottom: 0; }
.roster-clients .client-list li { padding-block: .4rem; gap: .1rem 1rem; border-bottom: 0; }
.roster-clients .client-list .arch-name { font-size: clamp(.85rem, .8rem + .2vw, .98rem); letter-spacing: -.01em; line-height: 1.3; }
.roster-clients .client-list .arch-meta { font-size: .78rem; }
@media (max-width: 1000px) { .roster-clients .client-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .roster-clients .client-list { grid-template-columns: minmax(0, 1fr); } }
.roster-clients .client-list li { display: block; }
.roster-clients .client-list .arch-name, .roster-clients .client-list .arch-meta { display: block; }

/* Tüm projeler: daha küçük ad, daha sıkı satırlar */
.all-name { font-size: clamp(.9rem, .75rem + .7vw, 1.2rem); letter-spacing: -.035em; line-height: 1.05; }
.all-list a { padding-block: clamp(.3rem, .6vw, .5rem); gap: .5rem clamp(.8rem, 2vw, 1.6rem); }
.all-thumb { width: clamp(52px, 6vw, 84px); }
.all-num { font-size: .8rem; }
.all-kind { font-size: .82rem; }
@media (max-width: 599px) { .all-thumb { width: 48px; } }

/* Büyüteç efekti: üzerine gelince görsel büyür, ad hafifçe öne çıkar */
@media (hover: hover) {
  .all-list li { position: relative; }
  .all-list li:hover { z-index: 5; }
  .all-thumb { transform-origin: right center; transition: transform 450ms var(--ease), box-shadow 450ms var(--ease), rotate 450ms var(--ease); }
  .all-list a:hover .all-thumb { transform: scale(5); rotate: 0deg; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); }
  .all-list a:hover .all-name { transform: translateX(.5rem) scale(1.08); transform-origin: left center; }
}

/* Tür, proje adının altında */
.all-list a { grid-template-columns: 3.2rem minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: .1rem; }
.all-num { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.all-name { grid-column: 2; grid-row: 1; align-self: end; }
.all-kind { grid-column: 2; grid-row: 2; align-self: start; display: block; }
.all-thumb { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 599px) { .all-list a { grid-template-columns: 2.2rem minmax(0, 1fr) auto; } .all-kind { display: block; } }

/* İletişim: daha küçük, zarif yazılar */
.details { gap: 1rem clamp(1.6rem, 5vw, 4rem); margin-top: clamp(1.2rem, 2.4vw, 2rem); }
.details dt { font-size: .68rem; letter-spacing: .14em; margin-bottom: .25rem; }
.details dd { font-size: .86rem; line-height: 1.5; font-weight: 400; max-width: 30ch; }
.foot, .foot a, .foot-note, .copyright { font-size: .8rem; }

/* "Tüm projeler" bağlantısı: "Daha fazla göster" ile aynı yazı boyutu, dolgusuz */
.all-link { gap: .8rem; min-height: 44px; padding: 0 0 .15rem; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: none; color: var(--ink); font-size: var(--small); font-weight: 600; letter-spacing: 0; box-shadow: none; animation: none; }
.all-link:hover { background: none; color: var(--ink); transform: none; }
.all-link .icon { width: 1rem; height: 1rem; animation: none; }

.svc-motto { margin: 0 0 clamp(1.6rem, 3vw, 2.6rem); font-size: var(--tiny); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted); line-height: 1.5; }
.svc-motto:empty { display: none; }

.ig-corner, .ig-corner-foot { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; color: var(--ink, currentColor); transition: opacity 300ms; }
.ig-corner .ig-glyph, .ig-corner-foot .ig-glyph { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ig-corner .ig-glyph circle:last-child, .ig-corner-foot .ig-glyph circle:last-child { fill: currentColor; stroke: none; }
.ig-corner:hover, .ig-corner-foot:hover { opacity: .55; }
.ig-corner { position: absolute; top: .5rem; right: max(.6rem, env(safe-area-inset-right, 0px)); z-index: 5; }
.ig-corner-foot { margin: 0 0 .4rem -.6rem; }
.qr-wrap { margin-top: .8rem !important; }
.qr { display: block; width: 7.5rem; height: 7.5rem; border: 1px solid var(--rule); }
@media (max-width: 1120px) { .ig-corner { top: 3.4rem; } }
.svc-intro { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }

@keyframes fall { to { transform: translateY(108%); } }
.hero-title .ch.out { animation: fall .5s var(--ease) calc(var(--i) * 35ms) both; }
.hero-title .word:first-child { transition: width .7s var(--ease); }
