/* 'iti Architects. Kraft, white, charcoal. Archivo variable (OFL). */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --kraft: #b29770;
  --kraft-deep: #9d8460;
  --kraft-ink: #4a3b28;
  --paper: #d9d9d9;
  --paper-ink: #3a3a3a;
  --white: #ffffff;
  --char: #2b2825;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 1.05vw + 12px, 19px);
  line-height: 1.5;
  color: var(--white);
  background: var(--kraft) url("../assets/img/texture/kraft.jpg") 0 0 / 760px auto repeat;
  overflow-x: hidden;
}
@supports (background-image: url("a.webp")) {
  body { background-image: url("../assets/img/texture/kraft.webp"); }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--char); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { top: 8px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.eyebrow {
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase; font-weight: 600;
  opacity: .85; margin-bottom: 1.2rem;
}
.lead { font-size: clamp(18px, 1.4vw + 10px, 24px); line-height: 1.45; font-weight: 400; }
.section-sym { width: 34px; height: 34px; color: #fff; margin-bottom: 1.4rem; }

/* Placeholder marks for the client (removed at launch) */
.dev-note {
  font-size: 13px; line-height: 1.4; padding: 10px 12px; border: 1px dashed rgba(255,255,255,.75);
  background: rgba(0,0,0,.14); max-width: 48rem; margin: 1rem 0 1.5rem;
}
.dev-tag { display: inline-block; white-space: nowrap; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border: 1px dashed rgba(255,255,255,.75); padding: 2px 6px; margin-left: 6px; vertical-align: middle; }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.site-head > * { pointer-events: auto; }
.brand { width: 44px; height: 42px; color: #fff; opacity: 0; transform: translateY(-6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.brand.is-on { opacity: 1; transform: none; }
.brand svg { width: 100%; height: 100%; }

.symnav ul { display: flex; gap: clamp(14px, 2vw, 28px); }
.symnav a {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; color: #fff; text-decoration: none;
  transition: transform .4s var(--ease);
}
.symnav a svg { width: 30px; height: 30px; }
.symnav a:hover, .symnav a:focus-visible { transform: translateY(-2px); }
.symnav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; background: #fff; transform: translateX(-50%); }
.symnav__label {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 2px);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transition: opacity .25s, transform .25s var(--ease); pointer-events: none;
}
.symnav a:hover .symnav__label, .symnav a:focus-visible .symnav__label { opacity: 1; transform: translate(-50%, 6px); }

.site-head__right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); }
.sound {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 8px 0; cursor: pointer; min-height: 44px; min-width: 44px; justify-content: center;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
}
@media (max-width: 480px) { .sound__text { display: none; } }
.sound__bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__bars i { width: 2px; height: 3px; background: #fff; transition: height .3s; }
.sound[aria-pressed="true"] .sound__bars i { animation: bars 1.2s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: .2s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: .4s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: .1s; }
@keyframes bars { 0%, 100% { height: 3px; } 50% { height: 14px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto;
  padding: 0 var(--gutter) 28px;
}
.hero__stage { display: grid; place-items: center; align-content: center; gap: 2.4rem; padding-top: 10vh; }
.hero__mark { width: min(62vw, 46vh, 520px); color: #fff; }
.mark { width: 100%; height: auto; overflow: visible; }
.hero__word {
  font-size: clamp(14px, 1.3vw + 6px, 22px); letter-spacing: .6em; text-indent: .6em; text-transform: uppercase;
  font-weight: 300; font-stretch: 110%;
}
.hero__services {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: clamp(13px, 1vw + 7px, 18px); font-weight: 500; letter-spacing: .04em;
}
.hero__cue { position: absolute; left: 50%; bottom: 76px; width: 1px; height: 56px; background: rgba(255,255,255,.3); transform: translateX(-50%); }
.hero__cue span { position: absolute; inset: 0 0 auto 0; height: 100%; background: #fff; transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 640px) {
  .hero__services { flex-direction: column; align-items: center; gap: .35rem; text-align: center; }
  .hero__cue { display: none; }
}

/* ---------- Studio ---------- */
.studio { position: relative; }
.studio__pin { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 18vh var(--gutter) 12vh; overflow: hidden; }
.studio__form { position: absolute; inset: 0 0 0 auto; width: 100%; height: 100%; opacity: .9; }
@media (min-width: 1000px) { .studio__form { width: 58%; } }
.studio__copy { position: relative; max-width: 64rem; }
.studio__h {
  font-size: clamp(30px, 4.6vw + 6px, 84px); line-height: .98; letter-spacing: -.02em;
  font-weight: 700; font-stretch: 88%; text-wrap: balance; margin-bottom: 1.6rem; max-width: 18ch;
}
.studio__p { max-width: 42rem; margin-bottom: 2.6rem; }
.studio__services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 2rem; border-top: 1px solid rgba(255,255,255,.55); padding-top: 1.4rem; max-width: 60rem; }
.studio__services h3 { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin-bottom: .5rem; }
.studio__services p { font-size: 15px; line-height: 1.5; opacity: .92; }
@media (max-width: 760px) {
  .studio__services { grid-template-columns: 1fr; }
  .studio__form { opacity: .55; }
}

/* ---------- Meaning ---------- */
.meaning { background: var(--paper); color: var(--paper-ink); }
.meaning__pin { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 14vh var(--gutter); overflow: hidden; }
.meaning__line { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.meaning__line svg { width: min(92vw, 1100px); height: auto; }
@media (min-width: 1000px) { .meaning__line { left: 48%; } .meaning__line svg { width: min(50vw, 900px); } }
.meaning__line .m { opacity: 0; }
.meaning__text { position: relative; max-width: 70rem; }
.meaning__mark { width: clamp(64px, 8vw, 110px); color: #fff; margin-bottom: 2rem; }
.meaning__lines { font-size: clamp(19px, 2.2vw + 6px, 44px); line-height: 1.28; font-weight: 400; letter-spacing: -.01em; }
.ml { display: block; }
.ml b { color: #fff; font-weight: 700; transition: color .4s; }
.ml:nth-child(3) { padding-left: 1.2em; }
.ml:nth-child(4) { padding-left: 2.4em; }
.ml:nth-child(5) { padding-left: 3.6em; }
.ml:nth-child(6) { padding-left: 4.8em; }
.ml:nth-child(7) { padding-left: 6em; }
/* Below desktop the line art sits above the text instead of behind it, so it never crosses the words. */
@media (max-width: 999px) {
  .meaning__pin { display: flex; flex-direction: column; justify-content: center; padding: 84px var(--gutter) 28px; }
  .meaning__line { position: relative; inset: auto; display: block; margin-bottom: clamp(12px, 3svh, 32px); }
  .meaning__line svg { width: 100%; max-width: 760px; max-height: 30svh; margin: 0 auto; }
  .meaning__mark { width: clamp(52px, 8vw, 90px); margin-bottom: clamp(12px, 2.4svh, 28px); }
}
@media (max-width: 640px) {
  .meaning__lines { font-size: clamp(17px, 4.6vw, 21px); }
  .ml:nth-child(n) { padding-left: 0; }
  .ml + .ml { margin-top: .35em; }
}
.meaning .m { stroke: #fff; }
/* Hand-drawn edge on the line art. The displacement filter is only applied on larger screens,
   where the GPU cost is comfortably covered. */
@media (min-width: 761px) { .ink { filter: url(#rough); } }
.sound.is-loading .sound__bars i { opacity: .5; }

/* ---------- Values ---------- */
.values { padding: 14vh var(--gutter); }
.values__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2.4rem; max-width: 90rem; }
.value { position: relative; border-top: 1px solid rgba(255,255,255,.6); padding-top: 1.4rem; }
.value__n { display: block; font-size: 12px; letter-spacing: .3em; margin-bottom: 1rem; }
.value__h { font-size: clamp(34px, 3.3vw + 10px, 64px); line-height: .98; letter-spacing: -.025em; font-weight: 800; font-stretch: 80%; margin-bottom: 1rem; overflow: hidden; }
.value p { max-width: 30rem; opacity: .95; }
@media (max-width: 760px) { .values__list { grid-template-columns: 1fr; gap: 2.2rem; } }

/* ---------- Collective ---------- */
.collective { padding: 14vh var(--gutter) 12vh; }
.collective__head h2, .work__head h2, .contact h2 {
  font-size: clamp(30px, 4vw + 6px, 72px); line-height: 1; letter-spacing: -.02em; font-weight: 700; font-stretch: 88%; max-width: 16ch; text-wrap: balance;
}
.edge { height: 1px; background: rgba(255,255,255,.35); margin: 3.2rem 0 2.6rem; }
.edge span { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 3rem); max-width: 90rem; }
.person__img { aspect-ratio: 4 / 5; overflow: hidden; background: rgba(0,0,0,.12); }
.person__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(.85) contrast(1.02); }
.person figcaption { padding-top: 1rem; }
.person h3 { font-size: clamp(20px, 1.4vw + 10px, 28px); font-weight: 700; letter-spacing: -.01em; margin-bottom: .3rem; }
.person p { font-size: 14px; line-height: 1.45; letter-spacing: .02em; opacity: .9; }
@media (max-width: 760px) {
  .people { grid-template-columns: 1fr; gap: 2.4rem; }
  .person__img { aspect-ratio: 4 / 4.4; }
}

/* ---------- Work / Collaboration ---------- */
.work { padding-top: 14vh; }
.work__head { padding: 0 var(--gutter); max-width: 80rem; }
.work__pin { overflow: hidden; padding: 4vh 0 10vh; }
.work__track { display: flex; gap: clamp(1rem, 2.5vw, 2.4rem); padding: 0 var(--gutter); width: max-content; align-items: flex-end; }
.project { flex: 0 0 auto; width: clamp(240px, 32vw, 460px); }
.project--wide { width: clamp(300px, 46vw, 680px); }
.project--tall { width: clamp(220px, 26vw, 380px); }
.project__img { aspect-ratio: 4 / 3; background: rgba(0,0,0,.14); display: grid; place-items: center; }
.project--tall .project__img { aspect-ratio: 3 / 4; }
.project--wide .project__img { aspect-ratio: 16 / 10; }
.project h3 { font-size: 16px; font-weight: 700; margin-top: .9rem; }
.project p { font-size: 13px; letter-spacing: .06em; opacity: .85; }
.ph { border: 1px dashed rgba(255,255,255,.7); }
.ph__tag { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-align: center; line-height: 1.6; opacity: .9; }
@media (max-width: 760px) {
  .work__track { flex-direction: column; width: auto; align-items: stretch; gap: 1.6rem; }
  .project, .project--wide, .project--tall { width: auto; }
}

/* ---------- Contact ---------- */
.contact { position: relative; padding: 16vh var(--gutter) 10vh; overflow: hidden; }
.contact__gable { position: absolute; inset: 0 0 auto 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; max-width: 90rem; }
.contact__intro .lead { margin: 1.4rem 0 2rem; max-width: 34rem; }
.contact__details div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.4); }
.contact__details dt { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; padding-top: .2rem; }
.contact__details dd { margin: 0; font-size: clamp(17px, 1.2vw + 8px, 22px); }
.contact__details a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.6); }
.contact__details a:hover { border-bottom-color: #fff; }
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; gap: 2.6rem; }
  /* Single column: keep the gable at its drawn proportions at the top, clear of the form. */
  .contact__gable { height: auto; aspect-ratio: 1000 / 420; }
}

.form { display: grid; gap: 1.1rem; align-content: start; }
.field { display: grid; gap: .4rem; }
.field label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .8; }
.field input, .field textarea {
  width: 100%; font: inherit; color: #fff; background: rgba(0,0,0,.12);
  border: 0; border-bottom: 1px solid rgba(255,255,255,.7); padding: .7rem .6rem; border-radius: 0;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: #fff; background: rgba(0,0,0,.18); }
.field textarea { resize: vertical; min-height: 7rem; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #ffd9b8; }
.field__err { font-size: 13px; min-height: 1.2em; color: #fff3e6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  justify-self: start; background: #fff; color: var(--kraft-ink); border: 0; padding: .95rem 1.6rem;
  font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; cursor: pointer;
  transition: transform .35s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.form__status { font-size: 15px; min-height: 1.4em; }

/* ---------- Footer ---------- */
.foot { position: relative; padding: 14vh var(--gutter) 4rem; text-align: center; display: grid; justify-items: center; gap: 1.6rem; border-top: 1px solid rgba(255,255,255,.3); }
.foot__mark { width: clamp(90px, 12vw, 160px); color: #fff; }
.foot__line { font-size: clamp(18px, 1.5vw + 8px, 26px); font-weight: 300; }
.foot__line span { font-weight: 700; }
.foot__meta { font-size: 12px; letter-spacing: .14em; opacity: .8; }

/* ---------- Motion setup ----------
   Initial hidden states apply only when the page is animating (html.anim),
   so a reduced-motion or no-JS visit sees everything in its final state. */
html.anim .hero__word, html.anim .hero__services, html.anim .hero__cue, html.anim .symnav, html.anim .sound { opacity: 0; }
html.anim .studio__form .f { opacity: 0; }
html.anim .contact__gable .g { opacity: 0; }
html.anim .ml { opacity: .18; }
html.anim .ml.is-on { opacity: 1; }
html.anim .ml b { color: inherit; }
html.anim .ml.is-on b { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hero__cue span, .sound__bars i { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
