@charset "utf-8";

/* ==========================================================================
   NOID — 단국대학교부속소프트웨어고등학교 SW벤처 창업동아리
   Design tokens & styles ported from Figma (node 72:2 "main")
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — S-Core Dream (3 Light / 4 Regular / 5 Medium / 6 Bold)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "S-Core Dream";
  src: url("../fonts/S-CoreDream-3Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "S-Core Dream";
  src: url("../fonts/S-CoreDream-4Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "S-Core Dream";
  src: url("../fonts/S-CoreDream-5Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "S-Core Dream";
  src: url("../fonts/S-CoreDream-6Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* colour — straight from Figma variables */
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;
  --text-inverse: #ffffff;
  --bg-canvas: #ffffff;
  --bg-surface: #f5f5f7;
  --bg-inverse: #1d1d1f;
  --border-subtle: #e8e8ed;
  --border-default: #d2d2d7;
  --brand-red: #e10600;
  --radius-pill: 999px;
  --radius-card: 16px;

  /* layout */
  --nav-h: 88px;
  --page-max: 1440px;
  --gutter: 72px;
  --label-w: 220px;
  --row-gap: 120px;
  --section-y: 200px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.75s;
}

/* --------------------------------------------------------------------------
   3. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 32px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: "S-Core Dream", "Pretendard", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
}

body.is-locked {
  overflow: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.7);
}

.row {
  display: flex;
  gap: var(--row-gap);
  align-items: flex-start;
}

.row--end {
  align-items: flex-end;
}

.row__label {
  flex: none;
  width: var(--label-w);
}

.row__body {
  flex: 1 1 0;
  min-width: 0;
}

.stack-20 > * + * { margin-top: 20px; }
.stack-28 > * + * { margin-top: 28px; }
.stack-32 > * + * { margin-top: 32px; }
.stack-40 > * + * { margin-top: 40px; }

/* --------------------------------------------------------------------------
   5. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1.82px;
  color: var(--text-muted);
  line-height: 1.4;
}

.eyebrow--sm {
  font-size: 11px;
  letter-spacing: 1.54px;
}

.h-display {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.44px;
  line-height: 1.45;
}

.h-xl {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.32px;
  line-height: 1.35;
}

.h-lg {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1.14px;
  line-height: 1.5;
}

.h-md {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.96px;
  line-height: 1.4;
}

.h-sm {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.78px;
  line-height: 1.4;
}

.body-lg {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.38px;
  line-height: 1.95;
  color: var(--text-secondary);
}

.body-md {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.32px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.body-sm {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.text-muted { color: var(--text-muted); }
.text-red { color: var(--brand-red); }

/* Arrow link — “저희를 더 알아보기  →” */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.34px;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 4px;
}

.arrow-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease-out);
}

.arrow-link .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}

.arrow-link:hover::before,
.arrow-link:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.arrow-link:hover .arrow,
.arrow-link:focus-visible .arrow {
  transform: translateX(6px);
}

.arrow-link--inverse {
  color: var(--text-inverse);
}

/* Primary pill button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 40px;
  border-radius: var(--radius-pill);
  background: var(--brand-red);
  color: var(--text-inverse);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.34px;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #b30500;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(225, 6, 0, 0.55);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}

.btn:hover .arrow,
.btn:focus-visible .arrow {
  transform: translateX(6px);
}

.btn:active {
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn--ghost::before {
  background: var(--text-primary);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--text-inverse);
  border-color: var(--text-primary);
  box-shadow: 0 14px 30px -14px rgba(29, 29, 31, 0.5);
}

/* --------------------------------------------------------------------------
   6. Navigation — always on top
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  /* opaque: the hero wordmark's riser runs right behind the bar */
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.4s var(--ease-out);
}

.nav.is-scrolled {
  box-shadow: 0 1px 24px -12px rgba(29, 29, 31, 0.35);
}

.nav__inner {
  height: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-mark {
  width: 50px;
  height: 50px;
  flex: none;
  transition: transform 0.6s var(--ease-out);
}

.nav__logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav__logo:hover .nav__logo-mark {
  transform: rotate(-8deg) scale(1.06);
}

.nav__logo-text {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.44px;
  line-height: 1;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.15px;
  line-height: 1.2;
  padding-block: 6px;
  color: var(--text-primary);
  transition: color 0.3s var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--ease-out);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav__link[aria-current="page"] {
  color: var(--brand-red);
}

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* mobile toggle */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.4s var(--ease-out), opacity 0.25s linear;
}

.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav__toggle span:nth-child(3) { top: 27px; }

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* z-index keeps the panel above positioned page content (the hero wordmark is
   absolutely positioned and would otherwise show through it) */
.nav__drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px var(--gutter) 40px;
  display: none;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

/* dims whatever is left visible under the panel */
.nav__drawer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 100svh;
  background: rgba(29, 29, 31, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.nav__drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav__drawer.is-open::after {
  opacity: 1;
}

.nav.is-menu-open {
  background: var(--bg-canvas);
}

.nav__drawer a {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.44px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.nav__drawer a:hover {
  color: var(--brand-red);
  transform: translateX(8px);
}

/* --------------------------------------------------------------------------
   7. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="fade"]  { transform: none; }
[data-reveal="scale"] { transform: scale(0.96); }

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* line-by-line mask reveal for big headings.
   The padding/negative-margin pair keeps the mask from cropping ascenders and
   descenders without changing where the line sits. */
.reveal-lines .line {
  display: block;
  overflow: hidden;
  padding-block: 0.1em 0.18em;
  margin-block: -0.1em -0.18em;
}

.reveal-lines .line > span {
  display: block;
  transform: translateY(130%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.reveal-lines.is-in .line > span {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   8. 01 / Hero
   -------------------------------------------------------------------------- */
/* fills the viewport exactly — nothing below the fold before the first scroll.
   overflow is clipped so the wordmark's strokes can bleed past the top and
   bottom edges; both ends fade to transparent in the artwork. */
.hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background: var(--bg-canvas);
}

.hero__stage {
  position: relative;
  height: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: calc(var(--nav-h) + 56px) var(--gutter) 56px;
  display: flex;
  flex-direction: column;
}

/* The artwork is 646 × 1762.64: a riser above the letters, the NOID lockup at
   36.6%–57% of the height, then a long descender. `top` marks where the
   letters should sit and the translate pulls the art up by the lockup's own
   offset, so the letter size can grow without moving the lockup.
   Width is capped both ways, so the "D" is never cropped horizontally. */
.hero__wordmark {
  --lockup-centre: 46.8%;

  position: absolute;
  right: 3.4%;
  /* raised until the descender's gradient finishes inside the hero — its ink
     runs out at 77.6% of the artwork, so `top` is capped by
     top + 30.8% x height <= hero height. The riser still bleeds off the top,
     which is the point: the line arrives from above the screen. */
  top: 34%;
  width: min(56%, 74svh);
  aspect-ratio: 646 / 1762.64;
  transform: translateY(calc(-1 * var(--lockup-centre)));
  pointer-events: none;
}

.hero__wordmark img {
  width: 100%;
  height: 100%;
}

.hero__copy {
  position: relative;
  margin-top: auto;
  max-width: 760px;
}

.hero__kicker {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 2.6px;
  color: var(--brand-red);
  line-height: 1.2;
  white-space: pre;
}

.hero__headline {
  margin-top: 15px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1.02px;
  line-height: 1.5;
}

.hero__sub {
  margin-top: 32px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* left-aligned with the copy — the wordmark's descender runs down the middle */
.hero__scroll {
  margin-top: 48px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.13px;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text-primary);
  transform: translateY(-100%);
  animation: scroll-tick 2.2s var(--ease-io) infinite;
}

@keyframes scroll-tick {
  0%   { transform: translateY(-100%); }
  45%  { transform: translateY(0); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Hero intro choreography.
   The start states hang off `.is-armed`, which the script adds before the first
   paint — so if the script never runs the hero simply renders finished rather
   than staying blank. The wordmark is excluded from the shared transform: it
   carries its own lockup offset (see .hero__wordmark). */
.hero.is-armed [data-intro]:not(.hero__wordmark) {
  opacity: 0;
  transform: translateY(26px);
}

.hero.is-ready [data-intro]:not(.hero__wordmark) {
  animation: hero-in 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}

/* the wordmark is wiped in from the top, so its vertical stroke reads as a
   line running down the page and drawing the letters behind it */
/* The wipe starts at 22% rather than 0: everything above that sits off the top
   of the hero, so starting there spends the whole duration on the part the
   visitor can actually watch sweep down. */
.hero.is-armed .hero__wordmark[data-intro] {
  clip-path: inset(0 0 78% 0);
}

.hero.is-ready .hero__wordmark[data-intro] {
  animation: hero-word-draw 1.9s cubic-bezier(0.33, 0, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

@keyframes hero-word-draw {
  from { clip-path: inset(0 0 78% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* --------------------------------------------------------------------------
   9. 02 / Philosophy + shared image slots
   -------------------------------------------------------------------------- */
.slot {
  position: relative;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.6px;
  color: var(--text-muted);
  transition: background 0.5s var(--ease-out);
}

.slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.9s var(--ease-out);
}

.slot:hover::after {
  transform: translateX(100%);
}

.slot:hover {
  background: #ececed;
}

/* transform only — animating letter-spacing here re-wraps the label */
.slot__label {
  position: relative;
  z-index: 1;
  transition: transform 0.5s var(--ease-out);
}

.slot:hover .slot__label {
  transform: scale(1.06);
}

.philosophy__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 104px;
}

.philosophy__images .slot {
  height: 380px;
}

.philosophy__lead {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1.14px;
  line-height: 1.5;
}

.philosophy__body p {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.38px;
  line-height: 1.95;
  color: var(--text-secondary);
}

.philosophy__body p + p {
  margin-top: 1.95em;
}

/* --------------------------------------------------------------------------
   10. 03 / Numbers
   -------------------------------------------------------------------------- */
.numbers {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: 120px;
  padding-bottom: 64px;
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat__value {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: -2.56px;
  line-height: 1;
  white-space: nowrap;
}

.stat__label {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   11. 04 / 함께한 곳들
   -------------------------------------------------------------------------- */
.partners-section {
  padding-top: 72px;
  padding-bottom: 120px;
}

/* 함께한 곳들 — logos not supplied yet, so the section holds an empty slot */
.logo-slot {
  margin-top: 56px;
  height: 152px;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   12. 05 / Works cards
   -------------------------------------------------------------------------- */
.works__header {
  margin-bottom: 96px;
}

.works__header-right {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.card__media {
  height: 340px;
  border-radius: 2px;
}

.card__media .slot__label { font-size: 13px; }

.card__meta {
  display: flex;
  flex-direction: column;
}

.card__year {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.78px;
  color: var(--text-muted);
  line-height: 1.2;
}

.card__title {
  align-self: flex-start;
  margin-top: 10px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.69px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card__title .arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  color: var(--brand-red);
}

.card__desc {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.75;
  color: var(--text-secondary);
}

a.card {
  transition: transform 0.5s var(--ease-out);
}

a.card:hover {
  transform: translateY(-6px);
}

a.card:hover .card__title .arrow,
a.card:focus-visible .card__title .arrow {
  opacity: 1;
  transform: translateX(0);
}

a.card:hover .slot,
a.card:focus-visible .slot {
  background: #ececed;
}

a.card:hover .slot::after,
a.card:focus-visible .slot::after {
  transform: translateX(100%);
}

/* --------------------------------------------------------------------------
   13. 06 / Archive
   -------------------------------------------------------------------------- */
.archive__years {
  margin-top: 88px;
}

.archive__year {
  border-top: 1px solid var(--border-subtle);
  padding-block: 56px;
  display: flex;
  gap: var(--row-gap);
  align-items: flex-start;
}

.archive__year:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.archive__num {
  flex: none;
  width: var(--label-w);
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -1.76px;
  line-height: 1.2;
  transition: color 0.4s var(--ease-out);
}

.archive__year:hover .archive__num {
  color: var(--brand-red);
}

.archive__items {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.32px;
  line-height: 1.2;
  color: var(--text-primary);
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.chip:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   14. 07 / Resources
   -------------------------------------------------------------------------- */
.blocks {
  margin-top: 88px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.block {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 48px 36px;
  min-height: 300px;
  transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.block:hover {
  transform: translateY(-6px);
  border-color: var(--border-default);
  box-shadow: 0 24px 48px -32px rgba(29, 29, 31, 0.35);
}

.block__name {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.78px;
  line-height: 1.2;
}

.block__items {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   15. 08 / How we work — departments
   -------------------------------------------------------------------------- */
.depts {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.dept {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.dept--dashed {
  border-style: dashed;
  border-color: var(--border-subtle);
}

.dept:hover {
  transform: translateY(-6px);
  border-color: var(--text-primary);
  box-shadow: 0 24px 48px -32px rgba(29, 29, 31, 0.35);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.26px;
  line-height: 1.2;
  color: var(--text-secondary);
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.dept:hover .tag {
  background: var(--brand-red);
  color: var(--text-inverse);
}

.dept__name {
  margin-top: 24px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.84px;
  line-height: 1.25;
}

.dept__desc {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.32px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   16. 09 / Join preview (inverse)
   -------------------------------------------------------------------------- */
.inverse {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}

.inverse .eyebrow { color: var(--text-muted); }

.join-preview__title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.32px;
  line-height: 1.5;
  color: var(--text-inverse);
}

.join-preview__sub {
  margin-top: 28px;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.38px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.join-preview__link {
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   17. 10 / Contact CTA
   -------------------------------------------------------------------------- */
.cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.cta__title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.44px;
  line-height: 1.45;
}

.cta__sub {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.36px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   18. 11 / Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 104px;
  padding-bottom: 96px;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer__logo {
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -1.76px;
  line-height: 1.1;
}

.footer__meta {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.28px;
  line-height: 1.75;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.15px;
}

.footer__links a {
  position: relative;
  transition: color 0.3s var(--ease-out);
}

.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-out);
}

.footer__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* --------------------------------------------------------------------------
   19. Sub-page hero
   -------------------------------------------------------------------------- */
/* same treatment as the home hero: fills the first screen, copy anchored to
   the bottom, wordmark bleeding past the top and bottom edges */
.page-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + 96px);
  padding-bottom: 112px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.page-hero .breadcrumb {
  margin-top: auto;
}

.page-hero__title {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -2.24px;
  line-height: 1.32;
  margin-top: 32px;
}

.page-hero__sub {
  margin-top: 36px;
  max-width: 720px;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.38px;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* the lockup is centred on the section; the strokes above and below bleed out
   of the (clipped) section, and the full width always stays inside the gutter
   so the "D" is never cropped */
.page-hero__ghost {
  position: absolute;
  right: var(--gutter);
  top: 46%;
  width: min(440px, 34%);
  aspect-ratio: 646 / 1762.64;
  transform: translateY(-46.8%);
  opacity: 0.05;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1.82px;
  color: var(--text-muted);
}

.breadcrumb a:hover { color: var(--text-primary); }

/* --------------------------------------------------------------------------
   20. Sub-page components
   -------------------------------------------------------------------------- */

/* Timeline (About / Join) */
.timeline {
  margin-top: 80px;
  border-top: 1px solid var(--border-subtle);
}

/* the inset padding is constant so the hover never re-flows the text */
.timeline__item {
  display: flex;
  gap: var(--row-gap);
  align-items: flex-start;
  padding: 52px 24px;
  margin-inline: -24px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.4s var(--ease-out);
}

.timeline__item:hover {
  background: var(--bg-surface);
}

.timeline__when,
.timeline__what {
  transition: transform 0.4s var(--ease-out);
}

.timeline__item:hover .timeline__when,
.timeline__item:hover .timeline__what {
  transform: translateX(10px);
}

.timeline__when {
  flex: none;
  width: var(--label-w);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.78px;
  line-height: 1.3;
}

.timeline__what {
  flex: 1 1 0;
  min-width: 0;
}

.timeline__what h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.44px;
  line-height: 1.4;
}

.timeline__what p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Press list — reuses the timeline row, but the whole row is a link */
a.timeline__item {
  text-decoration: none;
}

a.timeline__item .arrow {
  display: inline-block;
  color: var(--brand-red);
  transition: transform 0.4s var(--ease-out);
}

a.timeline__item:hover .arrow {
  transform: translateX(6px);
}

.press__source {
  margin-top: 12px !important;
  font-size: 13px !important;
  letter-spacing: 1.3px;
  color: var(--text-muted) !important;
}

/* Filter bar (Works) */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 56px;
}

.filter {
  padding: 11px 22px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--text-secondary);
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.filter:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.filter.is-active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--text-inverse);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px 32px;
  margin-top: 80px;
}

.project-grid .card {
  transition: opacity 0.45s var(--ease-out), transform 0.5s var(--ease-out);
}

.project-grid .card:hover {
  transform: translateY(-6px);
}

.project-grid .card:hover .slot {
  background: #ececed;
}

.project-grid .card:hover .slot::after {
  transform: translateX(100%);
}

.project-grid .card.is-hidden {
  display: none;
}

.card__tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card__tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.12px;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  line-height: 1.2;
}

.empty-state {
  padding: 80px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
}

/* Accordion (Join FAQ) */
.accordion {
  margin-top: 80px;
  border-top: 1px solid var(--border-subtle);
}

.acc {
  border-bottom: 1px solid var(--border-subtle);
}

.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 0;
  text-align: left;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 1.5;
  transition: color 0.3s var(--ease-out);
}

.acc__head:hover {
  color: var(--brand-red);
}

.acc__icon {
  flex: none;
  width: 20px;
  height: 20px;
  position: relative;
}

.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), opacity 0.3s linear;
}

.acc__icon::before { left: 0; right: 0; top: 9.5px; height: 1.5px; }
.acc__icon::after  { top: 0; bottom: 0; left: 9.5px; width: 1.5px; }

.acc.is-open .acc__icon::after { transform: scaleY(0); }
.acc.is-open .acc__head { color: var(--brand-red); }

.acc__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.55s var(--ease-out);
}

.acc.is-open .acc__body {
  max-height: 480px;
}

.acc__body-inner {
  padding-bottom: 40px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 860px;
}

/* Steps (Join) */
.steps {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step {
  border-top: 1px solid var(--text-primary);
  padding-top: 28px;
  transition: transform 0.5s var(--ease-out);
}

.step:hover {
  transform: translateY(-6px);
}

.step__num {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.3px;
  color: var(--brand-red);
}

.step__title {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.44px;
}

.step__desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: var(--row-gap);
  align-items: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.field .req { color: var(--brand-red); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: var(--bg-canvas);
  font-size: 16px;
  letter-spacing: -0.32px;
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background 0.35s var(--ease-out);
}

.field textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.7;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--text-muted);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(29, 29, 31, 0.07);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--brand-red);
}

.field__error {
  font-size: 13px;
  color: var(--brand-red);
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.field.has-error .field__error {
  opacity: 1;
  transform: none;
}

.form-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.form-status {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--bg-surface);
  font-size: 15px;
  color: var(--text-primary);
  display: none;
}

.form-status.is-visible {
  display: block;
  animation: hero-in 0.6s var(--ease-out) forwards;
}

.info-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 44px 36px;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.info-card + .info-card {
  margin-top: 32px;
}

.info-card:hover {
  border-color: var(--border-default);
  box-shadow: 0 24px 48px -34px rgba(29, 29, 31, 0.35);
}

.info-card dl {
  margin: 0;
}

.info-row {
  display: flex;
  gap: 24px;
  padding-block: 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 15px;
}

.info-row:last-child { border-bottom: 0; }

.info-row dt {
  flex: none;
  width: 92px;
  color: var(--text-muted);
}

.info-row dd {
  margin: 0;
  color: var(--text-primary);
  word-break: break-all;
}

.info-row dd a {
  position: relative;
}

.info-row dd a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.info-row dd a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Two-column feature list (About) */
.feature-list {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--row-gap);
}

.feature {
  padding-block: 44px;
  border-top: 1px solid var(--border-subtle);
}

.feature h3,
.feature p {
  transition: transform 0.4s var(--ease-out);
}

.feature:hover h3,
.feature:hover p {
  transform: translateX(10px);
}

.feature h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.5;
}

.feature p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Pull quote */
.quote {
  margin-top: 104px;
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.quote p {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.96px;
  line-height: 1.6;
}

.quote cite {
  display: block;
  margin-top: 24px;
  font-size: 14px;
  font-style: normal;
  letter-spacing: 1.4px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  :root {
    --gutter: 48px;
    --row-gap: 72px;
    --label-w: 170px;
    --section-y: 150px;
  }

  .hero__copy { max-width: 58%; }
  .blocks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  :root {
    --gutter: 36px;
    --section-y: 128px;
  }

  .nav__menu { display: none; }
  .nav__toggle { display: block; }
  .nav__drawer { display: flex; }

  .hero__stage {
    padding-block: calc(var(--nav-h) + 40px) 56px;
  }

  .hero__wordmark {
    right: var(--gutter);
    top: 30%;
    width: min(66%, 42svh);
  }

  .hero__copy {
    max-width: none;
    margin-top: auto;
  }

  .hero__headline { font-size: 30px; }

  .hero__scroll { margin-top: 64px; }

  .row { flex-direction: column; gap: 24px; }
  .row__label { width: auto; }

  .philosophy__lead,
  .h-lg { font-size: 30px; letter-spacing: -0.9px; }

  .h-xl { font-size: 34px; letter-spacing: -1px; }

  .numbers__grid { grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
  .stat__value { font-size: 52px; }

  .cards,
  .depts,
  .project-grid { grid-template-columns: repeat(2, 1fr); }

  .works__header-right { flex-direction: column; align-items: flex-start; gap: 28px; }

  .archive__year { flex-direction: column; gap: 28px; }
  .archive__num { width: auto; }

  .steps { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 72px; }

  .feature-list { grid-template-columns: 1fr; gap: 0; }

  .timeline__item { flex-direction: column; gap: 16px; }
  .timeline__when { width: auto; }

  .page-hero { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 72px; }
  .page-hero__ghost { top: 34%; width: min(66%, 42svh); }
  .page-hero__title { font-size: 46px; letter-spacing: -1.4px; }

  .cta__title { font-size: 34px; letter-spacing: -1px; }
  .quote p { font-size: 24px; }
}

@media (max-width: 640px) {
  :root {
    --gutter: 24px;
    --nav-h: 72px;
    --section-y: 104px;
  }

  .nav__logo-mark { width: 40px; height: 40px; }
  .nav__logo-text { font-size: 19px; }

  .hero__headline { font-size: 26px; letter-spacing: -0.8px; }
  .hero__kicker { font-size: 22px; }
  .hero__sub { font-size: 14px; line-height: 1.7; }

  .philosophy__images { grid-template-columns: 1fr; margin-top: 64px; }
  .philosophy__images .slot { height: 240px; }
  .philosophy__body p { font-size: 17px; line-height: 1.9; }

  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .stat__value { font-size: 42px; letter-spacing: -1.6px; }

  .cards,
  .depts,
  .project-grid,
  .blocks,
  .steps { grid-template-columns: 1fr; }

  .card__media { height: 240px; }

  /* line breaks authored for the 1440 layout */
  .br-md { display: none; }

  .footer__inner { flex-direction: column; gap: 48px; }
  .footer__links { align-items: flex-start; }
  .footer__logo { font-size: 36px; }

  .page-hero__title { font-size: 34px; letter-spacing: -1px; }

  .cta__title { font-size: 28px; }
  .h-lg, .philosophy__lead { font-size: 25px; letter-spacing: -0.7px; }
  .h-xl { font-size: 28px; }
  .quote { margin-top: 72px; padding: 64px 0; }
  .quote p { font-size: 20px; }
  .acc__head { font-size: 17px; }
}

/* --------------------------------------------------------------------------
   22. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal],
  .hero [data-intro]:not(.hero__wordmark) {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero .hero__wordmark[data-intro] { clip-path: none !important; }

  .reveal-lines .line > span { transform: none !important; }

}
