/* TAKETECH — site styles, v2.
   Structure follows the reference studied on 13 Nov 2026 (full-height film slides, pill navigation, centred page heads,
   5:4 tiles, label/heading/body type system). Identity is TAKETECH's own: lockup, Archivo, Black/White/Amber. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #0A0A0A; --fg: #F5F5F2; --muted: #9A9A96; --amber: #F8A620;
  --plate: #141414; --line: rgba(245, 245, 242, .14);
  --tint: rgba(245, 245, 242, .10); --tint-2: rgba(245, 245, 242, .20);
  --m: 20px;            /* page margin */
  --g: 16px;            /* grid gap */
  --head: 80px;         /* space reserved for the fixed header */
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 768px) { :root { --m: 32px; --g: 32px; --head: 104px; } }
@media (min-width: 1280px) { :root { --m: 48px; --g: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-size: clamp(1rem, .9rem + .3vw, 1.125rem); line-height: 1.6; font-stretch: 100%; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
main:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--m); top: -100px; z-index: 60; background: var(--amber); color: #0A0A0A; padding: 12px 16px; font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.skip:focus { top: 12px; }

/* ---- type: three voices only */
.title { font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: 1; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; }
.title-xl { font-size: clamp(2.75rem, 7.5vw, 7.5rem); }
.title-giant { font-size: clamp(3.25rem, 10vw, 9rem); }
.title-l { font-size: clamp(1.9rem, 4.6vw, 4.5rem); line-height: 1.04; }
.title-m { font-size: clamp(1.5rem, 2.6vw, 2.5rem); }
.label, .btn, .btn-ghost, .seg button, .nav-pill a { font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: .05em; text-transform: uppercase; }
.lede { font-size: clamp(1rem, .85rem + .45vw, 1.25rem); line-height: 1.6; max-width: 60ch; text-wrap: pretty; }
.small { font-size: .875rem; line-height: 1.6; }
.muted { color: var(--muted); }
.center { text-align: center; margin-inline: auto; }
.eyebrow { font-weight: 800; font-stretch: 72%; font-size: clamp(1.125rem, 2.4vw, 2.25rem); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 8px; }

/* ---- buttons: one system */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; height: 56px; padding: 0 24px; border-radius: 999px; background: var(--tint); white-space: nowrap; transition: background-color .15s ease; }
.btn:hover { background: var(--tint-2); }
.btn-lg { height: 64px; padding: 0 24px 0 32px; }
.btn-sm { height: 40px; padding: 0 14px 0 16px; gap: 10px; }
.btn-block { display: flex; width: 100%; height: 64px; }
.btn-ghost { display: inline-flex; align-items: center; height: 56px; padding: 0 16px; border-radius: 4px; transition: opacity .15s linear; }
.btn-ghost:hover { opacity: .75; }
.tri { width: 6px; height: 6px; flex: none; }
.bars { width: 12px; height: 8px; flex: none; }
.chip { display: block; width: fit-content; margin-inline: auto; padding: 10px 12px; border-radius: 4px; background: var(--tint); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cta-row.center { justify-content: center; }

/* ---- header: logo left, pill in the middle, call to action right; "Menu" pill on small screens */
.site-header { position: fixed; z-index: 50; top: 20px; left: var(--m); right: var(--m); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.site-header > * { pointer-events: auto; }
@media (min-width: 1024px) { .site-header { top: 24px; } }
.logo { display: block; color: var(--fg); }
.logo-lock { width: 64px; height: auto; }
@media (min-width: 768px) { .logo-lock { width: 78px; } }
.nav-pill, .header-cta { display: none; }
.nav-pill { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 999px; background: rgba(10, 10, 10, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line); }
.nav-pill ul { display: flex; padding: 4px 12px; }
.nav-pill a { display: flex; align-items: center; height: 48px; padding: 0 12px; transition: opacity .15s linear; }
.nav-pill a:hover { opacity: .75; }
.nav-pill a[aria-current="page"], .header-cta[aria-current="page"] { color: var(--amber); }
.header-cta, .menu-btn, .menu-link { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.menu-btn[hidden], .js .menu-link { display: none; }
@media (min-width: 768px) {
  .nav-pill { display: block; } .header-cta { display: inline-flex; }
  .menu-btn, .menu-link { display: none; }
}

/* ---- menu: bottom sheet */
.menu { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 90dvh; margin: 0; padding: 28px var(--m) 20px; border: 0; background: var(--bg); color: var(--fg); overflow-y: auto; }
.menu::backdrop { background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.menu[open] { animation: sheet .45s var(--ease); }
@keyframes sheet { from { transform: translateY(100%); } }
.menu-links { margin-bottom: 24px; }
.menu-links a { display: flex; align-items: center; min-height: 56px; font-weight: 800; font-stretch: 72%; font-size: 2rem; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.menu-links a[aria-current="page"] { color: var(--amber); }
.menu-close { width: 100%; justify-content: center; margin-top: 4px; color: var(--muted); }

/* ---- home: one film per screen */
html:has(.home) { scroll-snap-type: y proximity; }
.slide { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--head) + 16px) var(--m) 72px; scroll-snap-align: start; overflow: hidden; }
.slide-media { position: absolute; inset: 0; background: var(--plate); }
.slide-media img, .slide-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-media video { opacity: 0; transition: opacity .6s linear; }
.slide-media video.is-playing { opacity: 1; }
/* scrim: keeps white type readable on any frame (measured need: plain white on a busy plate fell to 1.7:1) */
.slide-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .86) 0%, rgba(10, 10, 10, .66) 52%, rgba(10, 10, 10, .2) 100%); }
.slide-body { position: relative; width: 100%; max-width: 1120px; text-align: center; margin-inline: auto; }
.slide-body .title-xl { max-width: 14ch; margin-inline: auto; }
.slide-intro .title-xl, .slide-outro .title-xl { max-width: 20ch; }
.slide-body .lede { margin: clamp(12px, 2vw, 20px) auto 0; }
.slide-body .cta-row { justify-content: center; margin-top: clamp(20px, 3vw, 32px); }
.slide-credit { margin-top: clamp(20px, 3vw, 32px); line-height: 1.5; }
.slide-credit a { display: inline-block; padding-block: 8px; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }
.slide-credit a:hover { color: var(--amber); }
@media (max-width: 1023px) { .slide-intro.has-media .lede { display: none; } }
.slide-count { position: absolute; right: var(--m); bottom: 28px; color: var(--muted); }
.rail { display: none; }
/* small and portrait screens: the still sits above the text as a full 16:9 band, so nothing is cropped */
@media (max-width: 1023px) {
  .slide.has-media .slide-media { position: relative; inset: auto; flex: none; margin: 0 calc(var(--m) * -1) clamp(24px, 5vw, 40px); aspect-ratio: 16 / 9; }
  .slide.has-media .slide-media::after { display: none; }
}
/* vertical films: never cropped to a wide band. Desktop: whole frame at the right, text on plain black. Small screens: whole frame, taller band. */
.slide.is-vertical .slide-media img, .slide.is-vertical .slide-media video { object-fit: contain; }
@media (max-width: 1023px) { .slide.has-media.is-vertical .slide-media { aspect-ratio: auto; height: 41svh; margin-bottom: 20px; background: transparent; } }
@media (min-width: 1024px) {
  .slide.is-vertical .slide-media { background: var(--bg); }
  .slide.is-vertical .slide-media img, .slide.is-vertical .slide-media video { object-position: 82% 50%; }
  .slide.is-vertical .slide-media::after { display: none; }
}
@media (max-width: 359px) { .title-xl { font-size: 2.25rem; } .slide { padding-bottom: 56px; } }
.fp-top { object-position: 50% 0; } .fp-bottom { object-position: 50% 100%; } .fp-left { object-position: 0 50%; } .fp-right { object-position: 100% 50%; }
@media (min-width: 1024px) {
  .slide { padding-left: calc(var(--m) + 80px + var(--g)); }
  .slide-body { text-align: left; margin-inline: 0; }
  .slide-body .title-xl, .slide-body .lede { margin-inline: 0; }
  .slide-body .cta-row { justify-content: flex-start; margin-left: -4px; }
  .rail { display: block; position: fixed; z-index: 40; left: var(--m); top: 50%; transform: translateY(-50%); transition: opacity .2s linear; }
  .rail ol { display: flex; flex-direction: column; gap: 12px; }
  .rail a { display: flex; align-items: center; justify-content: center; width: 80px; height: 48px; border-radius: 4px; overflow: hidden; background: var(--tint); opacity: .5; transition: opacity .15s linear; }
  .rail a:hover, .rail a[aria-current="true"] { opacity: 1; }
  .rail a[aria-current="true"] { box-shadow: 0 0 0 1px var(--fg); }
  .rail img { width: 100%; height: 100%; object-fit: cover; }
  .rail.is-away { opacity: 0; pointer-events: none; }
}
@media (min-width: 1024px) and (max-height: 760px) { .rail ol { gap: 6px; } .rail a { height: 36px; width: 60px; } }

/* ---- page heads: centred */
.page-top { padding: calc(var(--head) + clamp(40px, 6vw, 56px)) var(--m) clamp(40px, 6vw, 72px); text-align: center; }
.page-top .lede { margin-top: clamp(16px, 2vw, 24px); }
.page-top h1.label { margin-bottom: 24px; color: var(--muted); }
.statement { max-width: 22ch; margin-inline: auto; }

/* ---- segmented control (category filter) */
.seg { display: flex; width: fit-content; max-width: 100%; margin: clamp(28px, 4vw, 48px) auto 0; padding: 4px; border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg[hidden] { display: none; }
.seg.is-scroll { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.seg.is-scroll.at-end { -webkit-mask-image: linear-gradient(270deg, #000 82%, transparent); mask-image: linear-gradient(270deg, #000 82%, transparent); }
.seg button { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; transition: color .2s linear, background-color .2s linear; }
@media (min-width: 640px) { .seg button { height: 46px; padding: 0 20px; } }
.seg button:hover { color: var(--amber); }
.seg button[aria-pressed="true"] { background: var(--tint); color: var(--amber); }

/* ---- tiles: 5:4, text centred underneath, middle column offset */
.tiles { display: grid; grid-template-columns: 1fr; gap: 40px var(--g); padding: 0 var(--m) clamp(72px, 10vw, 144px); }
.tile { min-width: 0; text-align: center; }
.tile[hidden] { display: none; }
.tile a { display: block; }
.tile-media { position: relative; aspect-ratio: 5 / 4; border-radius: 6px; overflow: hidden; background: var(--plate); transition: transform 1s var(--ease); }
.tile-media img, .tile-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-media video { opacity: 0; transition: opacity .3s linear; }
.tile-media video.is-playing { opacity: 1; }
.plate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.plate-n { font-weight: 800; font-stretch: 72%; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; letter-spacing: -.02em; }
.tile-label { margin-top: 16px; font-weight: 700; font-stretch: 80%; font-size: .95rem; line-height: 1.2; color: var(--muted); }
.tile-title { margin-top: 4px; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.1; transition: color .15s linear; }
.tile a:hover .tile-title, .tile a:focus-visible .tile-title { color: var(--amber); }
.tile a:hover .tile-media { transform: scale(.95) rotate(1.5deg); }
@media (min-width: 768px) {
  .tiles { grid-template-columns: 1fr 1fr; row-gap: 56px; padding-top: 72px; }
  .tiles .tile.is-off { margin-top: -72px; margin-bottom: 72px; }
  .tiles:not(.is-laid) .tile:nth-child(2n) { margin-top: -72px; margin-bottom: 72px; }
}
@media (min-width: 1024px) {
  .tiles { grid-template-columns: 1fr 1fr 1fr; row-gap: 48px; padding-top: 120px; }
  .tiles:not(.is-laid) .tile:nth-child(2n) { margin-top: 0; margin-bottom: 0; }
  .tiles:not(.is-laid) .tile:nth-child(3n+2), .tiles .tile.is-off { margin-top: -120px; margin-bottom: 120px; }
}

/* ---- project */
.player { position: relative; margin-top: var(--head); width: 100%; background: #000; max-height: min(72svh, 56.25vw); }
.player.ar-16-9 { aspect-ratio: 16 / 9; } .player.ar-21-9 { aspect-ratio: 21 / 9; } .player.ar-4-3 { aspect-ratio: 4 / 3; }
.player.ar-9-16, .player.ar-4-5, .player.ar-1-1 { height: 80svh; max-height: 80svh; }
.player video, .player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.project-head { padding: clamp(40px, 6vw, 72px) var(--m) clamp(40px, 6vw, 80px); text-align: center; }
body:not(.has-player) .project-head { padding-top: calc(var(--head) + clamp(48px, 8vw, 96px)); }
.project-sub { margin-top: 8px; color: var(--muted); font-size: clamp(1.25rem, 3.2vw, 3.25rem); }
.project-head .cta-row { margin-top: clamp(24px, 3vw, 40px); }
.project-head .label { margin-top: 24px; }
.facts { padding: 0 var(--m) clamp(72px, 10vw, 144px); max-width: 1440px; margin-inline: auto; }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 10px var(--g); padding: 22px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); padding-top: 5px; }
.facts dd { max-width: 68ch; font-size: .95rem; }
.facts dd p + p { margin-top: 10px; }
.facts a, .prose a { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.notes { list-style: disc; padding-left: 1.1em; color: var(--muted); }
@media (min-width: 768px) { .facts > div { grid-template-columns: minmax(160px, 1fr) 4fr; } }
.more { padding-top: 8px; }
.more .chip { margin-bottom: clamp(40px, 5vw, 64px); }

/* ---- studio */
.two-col, .person { display: grid; grid-template-columns: 1fr; gap: 24px var(--g); max-width: 1440px; margin-inline: auto; }
.two-col { padding: clamp(24px, 4vw, 48px) var(--m) clamp(72px, 10vw, 144px); }
@media (min-width: 900px) { .two-col, .person { grid-template-columns: 1fr 1fr; } }
.prose p { max-width: 62ch; }
.prose p + p, .prose .sub + p { margin-top: 10px; }
.sub { margin-top: 32px; font-weight: 800; font-stretch: 72%; font-size: clamp(1.375rem, 2vw, 1.8rem); line-height: 1.1; letter-spacing: -.01em; }
.people { padding: 0 var(--m) clamp(72px, 10vw, 144px); }
.people .title-giant { text-align: center; margin-bottom: clamp(40px, 6vw, 88px); }
.person { padding-block: 28px; border-top: 1px solid var(--line); }
.person:last-child { border-bottom: 1px solid var(--line); }
.person .label { margin-top: 12px; }
.programs { padding: 0 var(--m) clamp(56px, 8vw, 112px); max-width: 880px; margin-inline: auto; }
.programs .chip { margin-bottom: 20px; }
.programs > p { max-width: 60ch; }
.prog-list { margin-top: 28px; }
.prog-list > div { display: grid; grid-template-columns: 1fr; gap: 6px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.prog-list > div:last-child { border-bottom: 1px solid var(--line); }
.prog-list dt { font-weight: 600; }
.prog-list .label { display: inline-block; min-width: 9.5em; margin-right: 8px; font-size: 11px; }
@media (min-width: 640px) { .prog-list > div { grid-template-columns: 1fr 2fr; } }
.end-cta { padding: 0 var(--m) clamp(72px, 10vw, 144px); }

/* ---- contact */
.contact-top { min-height: 82svh; display: flex; flex-direction: column; justify-content: center; }
.contact-lines { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: clamp(32px, 5vw, 64px) 0; }
.contact-lines a { text-transform: none; overflow-wrap: anywhere; transition: color .15s linear; }
.contact-lines a:hover { color: var(--amber); }

/* ---- footer */
.site-footer { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) var(--m) clamp(40px, 5vw, 56px); scroll-snap-align: end; }
.foot { display: grid; grid-template-columns: 1fr; gap: 40px var(--g); max-width: 1440px; margin-inline: auto; }
@media (min-width: 900px) { .foot { grid-template-columns: 1fr 2fr 1fr; align-items: end; } .foot-legal { text-align: right; } }
.foot-about p { max-width: 30ch; font-size: 12px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 32px; transition: opacity .15s linear; }
.foot-links a:hover, .foot-nav a:hover { opacity: .75; }
.foot-nav a { display: flex; align-items: center; min-height: 44px; font-weight: 800; font-stretch: 72%; font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; transition: opacity .15s linear; }
.foot-legal { font-size: 12px; color: var(--muted); }

.draft-flag { position: fixed; z-index: 45; right: var(--m); bottom: 12px; padding: 7px 9px; border-radius: 4px; background: rgba(20, 20, 20, .9); color: var(--muted); font-size: 10px; pointer-events: none; }
.home .draft-flag { right: auto; left: var(--m); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .tile a:hover .tile-media { transform: none; }
  html:has(.home) { scroll-snap-type: none; }
}
@media print { .site-header, .rail, .menu, .draft-flag, .seg { display: none; } body { background: #fff; color: #000; } }
