:root {
  /* Palette: #DCDEE4 · #58373B · #5E1413 · #CCE1D8 (sage nudged toward blue: hue 104°→155°, sat 14%→26%) */
  --mist: #dcdee4;
  --sage: #cce1d8;
  --plum: #58373b;
  --oxblood: #5e1413;
  --ink: #241517;            /* deepened plum for body text */
  --ink-soft: #58373b;
  --bg: var(--mist);
  --line: rgba(36, 21, 23, 0.16);
  --sans: "Archivo", system-ui, sans-serif;
  --accent-font: "Doto", monospace;  /* swap pixel font here */
  --serif: var(--accent-font);
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: normal; font-weight: 800; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--oxblood); color: var(--mist); }

/* Grain overlay for a print-like feel */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 90;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -2%); } 60% { transform: translate(-2%, -4%); }
  80% { transform: translate(4%, 2%); } 100% { transform: translate(0, 0); }
}

.char { display: inline-block; will-change: transform; }
.word { display: inline-block; }

/* ---------- Cursor (sharp: square dot + corner brackets) ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 100; mix-blend-mode: difference; color: #fff; }
.cursor.has-label { mix-blend-mode: normal; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; transform: translate3d(-100px, -100px, 0); }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.cursor__dot::before { content: ""; position: absolute; inset: 0; background: currentColor; transform: rotate(45deg); }
.cursor__ring { width: 0; height: 0; }
.cursor__frame {
  --s: 38px; --c: 9px;
  position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2);
  width: var(--s); height: var(--s);
  background:
    linear-gradient(currentColor, currentColor) left top / var(--c) 1px,
    linear-gradient(currentColor, currentColor) left top / 1px var(--c),
    linear-gradient(currentColor, currentColor) right top / var(--c) 1px,
    linear-gradient(currentColor, currentColor) right top / 1px var(--c),
    linear-gradient(currentColor, currentColor) left bottom / var(--c) 1px,
    linear-gradient(currentColor, currentColor) left bottom / 1px var(--c),
    linear-gradient(currentColor, currentColor) right bottom / var(--c) 1px,
    linear-gradient(currentColor, currentColor) right bottom / 1px var(--c);
  background-repeat: no-repeat;
  transition: width .5s var(--ease), height .5s var(--ease), left .5s var(--ease), top .5s var(--ease),
              transform .6s var(--ease), color .3s;
}
.cursor__frame::before {
  content: ""; position: absolute; inset: 0; background: var(--oxblood);
  transform: scale(0); transition: transform .5s var(--ease);
}
.cursor__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  color: var(--mist); opacity: 0;
  transition: opacity .3s, transform .5s var(--ease);
}
.cursor.is-link .cursor__frame { --s: 56px; transform: rotate(45deg); }
.cursor.has-label .cursor__frame { --s: 92px; color: var(--oxblood); }
.cursor.has-label .cursor__frame::before { transform: scale(1); }
.cursor.has-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.has-label .cursor__dot { opacity: 0; }
/* "Say hi" sits on the oxblood contact slide, so it switches to the accent colour */
.cursor.is-mail .cursor__frame { color: var(--sage); }
.cursor.is-mail .cursor__frame::before { background: var(--sage); }
.cursor.is-mail .cursor__label { color: var(--oxblood); }
.cursor.is-hidden { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  body, a, button, [data-cursor] { cursor: none; }
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  display: flex;
  position: fixed; inset: 0; z-index: 95;
  background: var(--oxblood); color: var(--mist);
  flex-direction: column; justify-content: center; align-items: center;
  font-size: clamp(56px, 13vw, 200px); line-height: .9; font-weight: 700; letter-spacing: -0.03em;
  font-stretch: 112%;
}
.loader__word { overflow: hidden; padding: 0 .05em; text-transform: uppercase; }
.loader__word--serif { font-family: var(--serif); font-style: normal; font-weight: 800; text-transform: none; color: var(--sage); }
.loader__count {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  font-size: 14px; letter-spacing: .1em; font-weight: 500; font-variant-numeric: tabular-nums; font-stretch: 100%;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  mix-blend-mode: difference; color: #fff;
}
.nav__logo img { height: 64px; width: auto; filter: invert(1); }
.nav__links { display: flex; gap: clamp(14px, 2.2vw, 34px); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.nav__links a { display: inline-block; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__status { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.nav__status i { width: 7px; height: 7px; background: #3fd07a; transform: rotate(45deg); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: 120px var(--gutter) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.hero__eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.hero__title {
  font-size: clamp(54px, 12.5vw, 210px); line-height: .86; letter-spacing: -0.04em; font-weight: 700;
  font-stretch: 108%;
  margin: 5vh 0;
  position: relative; z-index: 1;
  /* Difference blend: reads as dark ink on the background, flips light where it crosses the logo */
  color: #fff; mix-blend-mode: difference;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero__title .line--indent { padding-left: 10vw; }
.hero__title em { color: #7ecad1; /* = mist − oxblood, so it shows as oxblood on the background */ letter-spacing: -0.02em; font-stretch: 100%; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; position: relative; z-index: 1; }
.hero__lede { max-width: 400px; font-size: 18px; color: var(--ink-soft); }
.hero__scroll { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 48px; background: var(--ink); transform-origin: top; animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero__slot {
  /* Large, centred on the headline and layered behind it (title is z-index 1) */
  /* Top-right, mostly above the headline so it stays readable; only the end of "Revisiting"
     touches it. 10vw offsets the empty space at the top of the logo's box. */
  position: absolute; right: -3.7vw; top: calc(40px - 10vw);
  width: 57vw; aspect-ratio: 2200 / 1820;
  z-index: 0; pointer-events: none;
}
.hero__slot img { display: block; width: 100%; height: auto; will-change: transform; }
.js .hero__slot img { opacity: 0; }
/* Nav logo starts hidden on the home page and pops in once the hero logo has slid away */
/* Home page: logo box starts at zero width (tagline sits in the corner), JS slides the logo in */
.nav__brand { display: flex; align-items: center; min-height: 64px; }
.nav__logo { display: block; flex: none; }
.nav__logo.is-undocked { width: 0; }
.nav__logo.is-undocked img { transform: translateX(-300px); }
.nav__tag { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 600px) { .nav__tag { display: none; } }

/* ---------- Section titles ---------- */
.section-title {
  font-size: clamp(40px, 7vw, 112px); line-height: .9; letter-spacing: -0.035em; font-weight: 700; font-stretch: 108%;
}
.section-title em { color: var(--oxblood); font-stretch: 100%; letter-spacing: -0.02em; }
.section-title .reveal { display: inline-block; }

/* ---------- Furniture: horizontal 3D ---------- */
.studies { position: relative; background: var(--plum); color: var(--mist); }
.studies .section-title em { color: var(--sage); }
.studies__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  perspective: 1400px;
}
.studies__head {
  position: absolute; top: 92px; left: var(--gutter); right: var(--gutter);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; z-index: 2;
}
.studies__progress { flex: 1; max-width: 320px; height: 1px; background: rgba(220,222,228,.2); margin-bottom: 14px; }
.studies__bar { display: block; height: 100%; background: var(--sage); transform: scaleX(0); transform-origin: left; }
.studies__counter { font-size: 13px; font-variant-numeric: tabular-nums; margin-bottom: 6px; letter-spacing: .12em; }
.studies__track {
  display: flex; gap: 4vw; padding: 0 30vw 0 var(--gutter);
  width: max-content; margin-top: 70px;
  transform-style: preserve-3d; will-change: transform;
}
.study {
  position: relative; flex: none;
  width: min(34vw, 500px); height: min(56vh, 580px);
  transform-style: preserve-3d; will-change: transform;
}
.study__stage {
  position: absolute; inset: 0;
  background-color: #4e2f33; /* the 3D fill colour is read from this */
  background-image:
    linear-gradient(rgba(220,222,228,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,222,228,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 1px solid rgba(220,222,228,.18);
}
.study__stage::before, .study__stage::after {
  /* drafting corner ticks */
  content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--sage); border-style: solid; pointer-events: none;
}
.study__stage::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.study__stage::after { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.study__stage canvas { display: block; width: 100% !important; height: 100% !important; }
.study__meta {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; grid-template-columns: auto 1fr auto; column-gap: 14px; align-items: start;
  padding-top: 14px;
}
.study__index { font-size: 12px; color: var(--sage); font-variant-numeric: tabular-nums; padding-top: 4px; }
.study__info h3 { font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -0.01em; font-stretch: 108%; }
.study__info p { font-size: 13px; color: rgba(220,222,228,.6); }
.study__buy { text-align: right; display: grid; justify-items: end; gap: 6px; }
.study__price { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.study__enquire {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
  transition: color .3s;
}
.study__enquire:hover { color: var(--sage); }

/* Continue button */
.continue {
  position: absolute; right: var(--gutter); bottom: clamp(20px, 5vh, 48px); z-index: 3;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px 16px 24px;
  background: transparent; border: 1px solid rgba(220,222,228,.4);
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: border-color .4s, color .4s;
}
.continue__fill {
  position: absolute; inset: 0; z-index: -1; background: var(--sage);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.continue:hover { color: var(--ink); border-color: var(--sage); }
.continue:hover .continue__fill { transform: scaleX(1); }
.continue__text { display: block; overflow: hidden; height: 1.2em; line-height: 1.2em; }
.continue__label { display: block; }
.continue__arrow { display: grid; place-items: center; width: 36px; height: 36px; border-left: 1px solid currentColor; padding-left: 14px; box-sizing: content-box; }
.continue__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.continue.is-down .continue__arrow svg { transform: rotate(90deg); }
.continue__arrow svg { transition: transform .5s var(--ease); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 24px 0; background: var(--sage); }
.marquee__inner {
  display: flex; gap: 40px; width: max-content; align-items: center;
  font-size: clamp(34px, 5.5vw, 84px); font-weight: 700; letter-spacing: -0.03em; font-stretch: 112%; text-transform: uppercase;
  animation: marquee 30s linear infinite;
}
.marquee__inner i { font-style: normal; color: var(--oxblood); font-size: .4em; }
.marquee__inner span:nth-of-type(even) { font-family: var(--serif); font-style: normal; font-weight: 800; text-transform: none; color: var(--plum); font-stretch: 100%; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Work categories ---------- */
.cat { padding: 16vh var(--gutter) 6vh; }
.cat:last-of-type { padding-bottom: 16vh; }
.cat--designs { background: var(--sage); }
.cat__head {
  display: grid; grid-template-columns: auto 1fr minmax(0, 340px); align-items: end; gap: 12px 28px;
  padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--line);
}
.cat__head .section-title { font-size: clamp(36px, 6vw, 104px); white-space: nowrap; }
.cat__no { font-size: clamp(36px, 6vw, 104px); line-height: .9; color: var(--oxblood); }
@media (max-width: 1180px) {
  .cat__head { grid-template-columns: auto 1fr; }
  .cat__desc { grid-column: 1 / -1; max-width: 520px; }
}
.cat__desc { color: var(--ink-soft); }
.cat__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.cat--designs .cat__grid { grid-template-columns: 1.6fr 1fr; }
.cat--arch .cat__grid { grid-template-columns: 1fr 1fr; }
.tile--hero { grid-column: 1 / -1; }
.tile { display: block; }
.tile__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--plum); }
.tile--wide .tile__media, .tile--hero .tile__media { aspect-ratio: 16 / 9; }
.cat--designs .tile:not(.tile--wide) .tile__media { aspect-ratio: auto; height: calc(100% - 52px); min-height: 260px; }
.tile__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 1.2s var(--ease), filter .6s;
  filter: saturate(.85);
}
.tile:hover .tile__img { transform: scale(1.06); filter: saturate(1); }
.tile__img--ph {
  background-color: var(--plum);
  background-image:
    linear-gradient(rgba(220,222,228,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,222,228,.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.tile__img--ph::after {
  content: attr(data-ph) " — image coming soon";
  position: absolute; left: 20px; bottom: 18px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(220,222,228,.6);
}
.tile__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; }
.tile__cap h3 { font-size: clamp(18px, 1.7vw, 26px); font-weight: 600; letter-spacing: -0.01em; font-stretch: 108%; }
.tile__cap span { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }

/* ---------- About ---------- */
.about { padding: 16vh var(--gutter); background: var(--mist); border-top: 1px solid var(--line); }
.about__eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--oxblood); margin-bottom: 4vh; }
.about__big {
  font-size: clamp(36px, 6.2vw, 104px); line-height: 1; letter-spacing: -0.035em; font-weight: 700; font-stretch: 108%;
  max-width: 16ch;
}
.about__big .word { opacity: .15; }
.about__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 12vh; }
.about__grid > div { border-top: 1px solid var(--line); padding-top: 18px; }
.about__grid h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; color: var(--oxblood); }
.about__grid p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Contact ---------- */
.contact {
  min-height: 100svh; background: var(--oxblood); color: var(--mist);
  padding: 18vh var(--gutter) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
}
.contact__eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(220,222,228,.65); }
.contact__mail {
  display: inline-block; align-self: flex-start;
  font-size: clamp(76px, 17vw, 300px); line-height: .9; letter-spacing: -0.045em; font-weight: 700; font-stretch: 110%;
}
.contact__mail em { color: var(--sage); font-stretch: 100%; letter-spacing: -0.02em; }
.contact__foot { display: flex; justify-content: space-between; gap: 24px; font-size: 13px; color: rgba(220,222,228,.65); flex-wrap: wrap; }
.contact__social { display: flex; gap: 24px; }
.contact__social a:hover { color: var(--sage); }

/* ---------- Work brackets (main page) ---------- */
.work { padding: 16vh var(--gutter); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 6vh; }
.work__lede { color: var(--ink-soft); max-width: 340px; }
.brackets { display: grid; gap: 14px; }
.bracket { position: relative; padding: 0 clamp(16px, 2.4vw, 32px); }
.bracket::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--plum);
  transform: scaleY(0); transform-origin: top; transition: transform .8s var(--ease);
}
.bracket.is-open::before { transform: scaleY(1); }
.bracket.is-open { color: var(--mist); }
/* corner brackets that slide outward on hover / open */
.bk { position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink); transition: transform .6s var(--ease), border-color .4s, width .6s var(--ease), height .6s var(--ease); pointer-events: none; }
.bk--tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.bk--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.bk--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.bk--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.bracket:hover .bk--tl { transform: translate(-6px, -6px); }
.bracket:hover .bk--tr { transform: translate(6px, -6px); }
.bracket:hover .bk--bl { transform: translate(-6px, 6px); }
.bracket:hover .bk--br { transform: translate(6px, 6px); }
.bracket.is-open .bk { border-color: var(--sage); width: 40px; height: 40px; }
.bracket__head {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: clamp(14px, 2vw, 32px);
  padding: clamp(22px, 3.4vw, 40px) 0; background: none; border: 0; text-align: left;
}
.bracket__no { font-size: clamp(28px, 4vw, 64px); line-height: 1; color: var(--oxblood); transition: color .4s; }
.bracket.is-open .bracket__no { color: var(--sage); }
.bracket__title { font-size: clamp(34px, 6vw, 96px); font-weight: 700; font-stretch: 108%; letter-spacing: -0.035em; line-height: .95; }
.bracket__count { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; white-space: nowrap; }
.bracket__toggle { position: relative; width: 28px; height: 28px; }
.bracket__toggle i { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .6s var(--ease); }
.bracket__toggle i:last-child { transform: rotate(90deg); }
.bracket.is-open .bracket__toggle i:first-child { transform: rotate(180deg); }
.bracket.is-open .bracket__toggle i:last-child { transform: rotate(180deg); }
.bracket__body { height: 0; overflow: hidden; }
.bracket__inner { padding-bottom: clamp(24px, 3.4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 20px 32px; align-items: end; }
.bracket__desc { color: rgba(220,222,228,.75); max-width: 36ch; }
.bracket__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; grid-row: span 2; }
.bracket__thumb { aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-color: #4e2f33; }
.bracket__thumb--ph {
  background-image:
    linear-gradient(rgba(220,222,228,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,222,228,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bracket__open {
  justify-self: start; display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: 1px solid var(--sage); color: var(--sage);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate; transition: color .4s;
}
.bracket__open::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.bracket__open:hover { color: var(--ink); }
.bracket__open:hover::before { transform: scaleX(1); }
.bracket__open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .5s var(--ease); }
.bracket__open:hover svg { transform: translateX(5px); }

/* ---------- Page transition panel ---------- */
.pt {
  position: fixed; inset: 0; z-index: 96; pointer-events: none;
  background: var(--oxblood); color: var(--mist);
  display: grid; place-items: center;
  transform: translateY(100%);
}
.pt.is-covering { transform: none; }
.pt__label { font-family: var(--accent-font); font-weight: 800; font-size: clamp(48px, 10vw, 160px); color: var(--sage); overflow: hidden; }
.pt__label .char { display: inline-block; }

/* ---------- Work subpages ---------- */
.sub-hero { padding: 150px var(--gutter) 0; }
.sub-back { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8vh; }
.sub-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; transform: rotate(180deg); transition: transform .5s var(--ease); }
.sub-back:hover svg { transform: rotate(180deg) translateX(5px); }
.sub-next { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 10vh var(--gutter); border-top: 1px solid var(--line); }
.sub-next a { font-size: clamp(32px, 6vw, 96px); font-weight: 700; font-stretch: 108%; letter-spacing: -0.035em; }
.sub-next a em { color: var(--oxblood); }
.sub-next span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.sub-foot { display: flex; justify-content: space-between; gap: 24px; padding: 28px var(--gutter); background: var(--oxblood); color: rgba(220,222,228,.7); font-size: 13px; }
.sub-foot a:hover { color: var(--sage); }

@media (max-width: 860px) {
  .work__head { flex-direction: column; align-items: flex-start; }
  .bracket__head { grid-template-columns: auto 1fr auto; }
  .bracket__count { display: none; }
  .bracket__inner { grid-template-columns: 1fr; }
  .bracket__thumbs { grid-row: auto; }
}

/* ---------- Shop page ---------- */
body.shop-page { background: var(--plum); color: var(--mist); }
.shop .section-title em { color: var(--sage); }
.shop .cat__desc { color: rgba(220,222,228,.7); max-width: 380px; }
.shop__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(220,222,228,.18); }
.shop__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 90px clamp(16px, 2.4vw, 36px);
  padding: 56px var(--gutter) 16vh;
}
.shop__grid .study { width: auto; height: auto; aspect-ratio: 4 / 4.4; }
@media (max-width: 960px) { .shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .shop__grid { grid-template-columns: 1fr; }
  .shop__head { flex-direction: column; align-items: flex-start; }
}

/* Elements revealed by JS start hidden only once JS is running */
.js .reveal { opacity: 0; transform: translateY(30px); }
.js .study__stage, .js .study__meta, .js .continue, .js .tile__cap { opacity: 0; }
.js .tile__media { clip-path: inset(100% 0 0 0); }
.js .sub-title .char { transform: translateY(115%); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
}
@media (max-width: 860px) {
  .nav__logo img { height: 48px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  /* Phones: just above the headline, overlapping only the tops of the letters
     (title starts at 120px + 5vh; the logo shape ends ~50vw below the box top) */
  .hero__slot { width: 74vw; left: -3vw; right: auto; top: calc(108px + 5vh - 46vw); }
  /* Doto is wide: keep "old design" on one line */
  .hero__title .line--indent { padding-left: 0; }
  .hero__title em { white-space: nowrap; font-size: .88em; }
  .studies__head { top: 76px; flex-wrap: wrap; }
  .studies__progress { display: none; }
  .study { width: 78vw; height: 50vh; }
  .studies__track { gap: 8vw; padding-right: 11vw; margin-top: 0; }
  .continue { left: var(--gutter); right: var(--gutter); justify-content: space-between; bottom: 20px; }
  .cat__head { grid-template-columns: 1fr; gap: 10px; }
  .cat__grid, .cat--designs .cat__grid, .cat--arch .cat__grid { grid-template-columns: 1fr; }
  .cat--designs .tile:not(.tile--wide) .tile__media { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
  .about__grid { grid-template-columns: 1fr; gap: 28px; margin-top: 8vh; }
}

@media (max-width: 600px) {
  .cat__head .section-title, .cat__no { font-size: 9vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
