/* Shared foundation for all five directions. Each version sets its own
   typefaces through the --f-* tokens and restyles what its twist needs. */

:root {
  --paper: #f6f5f1;
  --ink: #0e0e0d;
  --mute: #6f6e69;
  --line: #d9d7d0;

  --f-display: "Inter", system-ui, sans-serif;
  --f-text: "Inter", system-ui, sans-serif;
  --display-weight: 500;
  --display-track: -0.035em;
  --display-leading: 0.92;

  --gutter: clamp(16px, 2.2vw, 32px);
  --col-gap: clamp(12px, 1.6vw, 24px);

  --t-xs: 0.75rem;
  --t-s: 0.875rem;
  --t-m: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --t-l: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  --t-xl: clamp(2rem, 1.2rem + 3.6vw, 4.5rem);
  --t-xxl: clamp(2.75rem, 1rem + 8vw, 10rem);

  --ease: cubic-bezier(0.22, 0.75, 0.12, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.25, 1);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-m);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.display {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: var(--display-leading);
}
.label {
  font-family: var(--f-text);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.label sup { font-size: 0.85em; vertical-align: top; margin-left: 0.3em; color: var(--mute); }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px var(--gutter);
  pointer-events: none;
  color: #fff;
  mix-blend-mode: difference;
}
.site-head > * { pointer-events: auto; }
.logo {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  font-size: 1.375rem;
  line-height: 1;
}
.site-nav { display: flex; gap: clamp(14px, 2vw, 28px); font-size: var(--t-s); }
.site-nav a { position: relative; }
.site-nav a::after,
.u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.site-nav a:hover::after,
.u:hover::after { transform: scaleX(1); transform-origin: left; }
.u { position: relative; }
@media (max-width: 640px) {
  .site-nav a:not([href="#contact"]) { display: none; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: var(--t-s); font-weight: 500;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* ---------- Sections ---------- */
.section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding: clamp(80px, 12vw, 180px) var(--gutter) 0;
}
.section > .label { grid-column: 1 / span 3; padding-top: 0.6em; }
.section > .body { grid-column: 4 / -1; }
@media (max-width: 860px) {
  .section > .label { grid-column: 1 / -1; margin-bottom: 28px; }
  .section > .body { grid-column: 1 / -1; }
}

.manifesto .lines { font-size: var(--t-xl); }
.manifesto .lines > span { display: block; }
.manifesto .text {
  display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--col-gap);
  margin-top: clamp(40px, 6vw, 80px);
}
.manifesto .text p { grid-column: 4 / -1; max-width: 38em; font-size: var(--t-l); line-height: 1.3; }
.manifesto .disciplines { grid-column: 1 / -1 !important; margin-top: clamp(40px, 6vw, 80px); font-size: var(--t-xl); }
.manifesto .team { margin-top: 16px; color: var(--mute); }
@media (max-width: 860px) { .manifesto .text p { grid-column: 1 / -1; } }

.services .list { border-top: 1px solid var(--ink); }
.services .list > li {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); column-gap: var(--col-gap);
  padding: 22px 0 34px; border-bottom: 1px solid var(--line);
}
.services h3 { font-size: clamp(1.6rem, 1rem + 2vw, 2.75rem); }
.services p { padding-top: 0.45em; max-width: 30em; }
/* what each service covers, as a quiet run of terms under the body */
.services .tags { grid-column: 2; max-width: 30em; margin-top: 14px; font-size: var(--t-s); color: var(--mute); line-height: 1.5; }
.services .tags li { display: inline; }
.services .tags li + li::before { content: " · "; }
@media (max-width: 860px) {
  .services .list > li { grid-template-columns: minmax(0, 1fr); }
  .services p { padding-top: 14px; }
  .services .tags { grid-column: 1; }
}

.process ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--col-gap); }
.process li { border-top: 1px solid var(--ink); padding-top: 16px; }
.process h3 { font-size: clamp(1.4rem, 0.7rem + 1.6vw, 2.5rem); margin-bottom: 18px; }
.process p { font-size: var(--t-s); max-width: 18em; }
@media (max-width: 1000px) {
  .process ol { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .process li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); padding: 16px 0 26px; }
  .process h3 { margin: 0; }
}

.ai .lead { font-size: var(--t-xl); max-width: 14em; }
.ai .text { margin-top: 32px; max-width: 34em; font-size: var(--t-l); line-height: 1.3; margin-left: auto; }

.why ul { font-size: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.why li { padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.why li:first-child { border-top: 1px solid var(--ink); }
.why li .t { display: block; }
.why li .b {
  display: block; margin-top: 8px; max-width: 34em;
  font-family: var(--f-text); font-size: var(--t-m); font-weight: 400; font-style: normal;
  line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--mute);
  font-variation-settings: normal;
}

.cta { padding-bottom: clamp(80px, 10vw, 140px); }
.cta h2 { font-size: var(--t-xxl); grid-column: 1 / -1; }
.cta .text { grid-column: 4 / span 6; margin-top: 32px; font-size: var(--t-l); line-height: 1.3; max-width: 22em; }
.cta .mail { grid-column: 4 / -1; margin-top: 28px; font-size: var(--t-xl); justify-self: start; }
@media (max-width: 860px) { .cta .text, .cta .mail { grid-column: 1 / -1; } }

.site-foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px var(--gutter) 70px; border-top: 1px solid var(--ink); margin: 0 var(--gutter);
  font-size: var(--t-s); padding-left: 0; padding-right: 0;
}

/* ---------- Work: Featured / Archive with list / image switch ---------- */
.work { padding: clamp(80px, 10vw, 160px) var(--gutter) 0; }
.work-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--ink); padding-bottom: 14px;
}
.toggle { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; padding: 3px; }
.toggle button {
  height: 30px; padding: 0 14px; border-radius: 999px; font-size: var(--t-xs);
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.work-group { margin-top: clamp(36px, 5vw, 64px); }
.work-group > .label { margin-bottom: 18px; }

.caption { font-size: var(--t-s); }
.caption .sep { color: var(--mute); padding: 0 0.35em; }
.line { color: var(--mute); font-size: var(--t-s); max-width: 34em; }

/* image view */
.work[data-view="images"] .featured-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) var(--col-gap);
}
.work[data-view="images"] .featured-list .media { aspect-ratio: 16 / 10; }
.work[data-view="images"] .archive-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--col-gap);
}
.work[data-view="images"] .archive-list .media { aspect-ratio: 4 / 3; }
.work[data-view="images"] .archive-list .line { display: none; }
.work[data-view="images"] .item .caption { margin-top: 12px; }
.work[data-view="images"] .item .line { margin-top: 4px; }
.work[data-view="images"] .item .meta-row { display: none; }
@media (max-width: 860px) {
  .work[data-view="images"] .featured-list { grid-template-columns: minmax(0, 1fr); }
  .work[data-view="images"] .archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.media { overflow: hidden; background: var(--line); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.item:hover .media img { transform: scale(1.03); }

/* list view */
.work[data-view="list"] .media { display: none; }
.work[data-view="list"] .item {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--col-gap);
  padding: 14px 0 16px; border-bottom: 1px solid var(--line);
}
.work[data-view="list"] .item .caption { font-size: var(--t-m); }
.work[data-view="list"] .item .line { max-width: none; }
.work[data-view="list"] .item .meta-row { display: none; }
@media (max-width: 860px) {
  .work[data-view="list"] .item { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
}

/* ---------- Direction switcher ---------- */
.switcher {
  position: fixed; left: var(--gutter); bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 2px;
  font-size: var(--t-xs); letter-spacing: 0.04em;
  background: var(--paper); border: 1px solid var(--ink); border-radius: 999px; padding: 3px;
}
.switcher a { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; }
.switcher a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.switcher a:not([aria-current]):hover { background: var(--line); }
.switcher a:not([aria-current]):not(.home) { padding: 0 7px; }
.switcher .nm { display: none; }
.switcher a[aria-current] .nm { display: inline; margin-left: 2px; }
@media (max-width: 640px) {
  .switcher a { padding: 0 6px; }
  .switcher a:not([aria-current]):not(.home) { padding: 0 4.5px; }
}

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