/* Hinkelthein Creative: monochrome one-page site */

@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;
}

:root {
  --black: #000;
  --white: #fff;
  --charcoal: #141414;      /* contact ground, a step up from black */
  --soft: #9a9a9a;          /* secondary text on black, 7.4:1 */
  --line: rgb(255 255 255 / 0.16);

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --small: 0.8125rem;                                  /* 13px captions */
  --body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --lead: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  --title: clamp(1.75rem, 1.1rem + 2.6vw, 3.5rem);
  --statement: clamp(2.25rem, 1rem + 4.6vw, 6rem);

  --pad: clamp(1rem, 0.6rem + 1.6vw, 2rem);            /* page margin */
  --section: clamp(6rem, 3rem + 10vw, 13rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--font); font-size: var(--body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
sup { font-size: 0.6em; vertical-align: 0.6em; line-height: 0; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--pad); top: -4rem; z-index: 200; background: var(--white); color: var(--black); padding: 0.6rem 1rem; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.dark     { background: var(--black); color: var(--white); }
.charcoal { background: var(--charcoal); color: var(--white); }

section[id] { scroll-margin-top: 0; }

/* 12-column editorial grid */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pad); padding-inline: var(--pad); }

.label { font-size: var(--small); font-weight: 500; letter-spacing: 0.01em; line-height: 1.3; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: var(--pad); color: var(--white);
  mix-blend-mode: difference; pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand-mark { width: 2.6rem; height: auto; }
.brand-word { width: clamp(6.5rem, 5.5rem + 2vw, 8rem); height: auto; }
.header-actions { display: flex; align-items: center; gap: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.lang { display: flex; align-items: center; gap: 0.15rem; font-size: var(--small); font-weight: 500; }
.lang button, .menu-toggle, .text-btn {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}
.lang button { min-width: 1.9rem; min-height: 2.75rem; opacity: 0.45; transition: opacity 0.2s; }
.lang button[aria-pressed="true"] { opacity: 1; }
.lang button:hover { opacity: 1; }
.menu-toggle { font-size: var(--small); font-weight: 600; min-height: 2.75rem; padding-inline: 0.25rem; }

@media (max-width: 380px) { .brand-word { width: 5.75rem; } }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--black); color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad);
}
.menu[hidden] { display: none; }
.menu ul { display: grid; gap: 0.1em; }
.menu ul a { text-decoration: none; font-size: clamp(3rem, 1rem + 9vw, 9rem); font-weight: 700; font-stretch: 80%; letter-spacing: -0.04em; line-height: 0.92; transition: opacity 0.2s; }
.menu ul:hover a { opacity: 0.35; }
.menu ul a:hover, .menu ul a:focus-visible { opacity: 1; }
.menu-foot { margin-top: 3rem; font-size: var(--small); color: var(--soft); }
.menu-foot a { color: var(--white); }
.menu.is-entering ul li { animation: rise 0.7s var(--ease) both; }
.menu.is-entering ul li:nth-child(2) { animation-delay: 0.05s; }
.menu.is-entering ul li:nth-child(3) { animation-delay: 0.1s; }
.menu.is-entering ul li:nth-child(4) { animation-delay: 0.15s; }
@keyframes rise { from { opacity: 0; transform: translateY(40%); } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 36rem; overflow: hidden; background: #000 url("assets/img/poster.jpg") center / cover; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.08); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / 0.78) 0%, rgb(0 0 0 / 0.2) 40%, transparent 60%); }

.hero-bottom { position: absolute; inset: auto 0 0 0; padding: 0 var(--pad) calc(var(--pad) * 0.6); }
.hero-meta {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pad); align-items: end;
  font-size: var(--small); font-weight: 500; margin-bottom: clamp(0.5rem, 0.2rem + 1vw, 1.25rem);
}
.hero-tagline { grid-column: 1 / span 3; font-weight: 600; }
.hero-sub { grid-column: 4 / span 5; max-width: 34ch; color: rgb(255 255 255 / 0.8); }
.hero-controls { grid-column: 9 / -1; justify-self: end; display: flex; gap: 1.25rem; align-items: center; }
.tc { font-variant-numeric: tabular-nums; color: rgb(255 255 255 / 0.7); }
.text-btn { font-size: var(--small); font-weight: 600; min-height: 2.75rem; }
.text-btn .label { font-size: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; transition: text-decoration-color 0.2s; }
.text-btn:hover .label { text-decoration-color: currentColor; }

.wordmark {
  font-weight: 800; font-stretch: 88%; letter-spacing: -0.055em; line-height: 0.78;
  font-size: 18.6vw;                 /* fallback; main.js fits it to the exact width */
  white-space: nowrap; margin-left: -0.04em;
}
.wm-fit { display: inline-block; }
.wm-line { display: inline; }
@media (max-width: 700px) { .wm-line { display: block; } }
.wm-fit .ch { display: inline-block; }

@media (max-width: 760px) {
  .hero-meta { grid-template-columns: 1fr auto; row-gap: 0.4rem; }
  .hero-tagline { grid-column: 1; }
  .hero-sub { grid-column: 1 / -1; grid-row: 2; }
  .hero-controls { grid-column: 2; grid-row: 1; gap: 0.9rem; }
  .tc { display: none; }
}

/* load sequence: the wordmark rises letter by letter, once */
.js .wm-fit { overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js .wm-fit .ch { transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 0.035s + 0.1s); }
.js .hero-meta { opacity: 0; transition: opacity 1s ease 0.7s; }
.is-ready .wm-fit .ch { transform: none; }
.is-ready .hero-meta { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .wm-fit .ch, .js .hero-meta { transition: none; }
  .menu.is-entering ul li { animation: none; }
}

/* ---------- Studio ---------- */
.studio { padding-top: var(--section); }
.studio .label { grid-column: 1 / span 2; padding-top: 0.9em; }
.statement { font-size: var(--statement); font-weight: 400; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
.studio .statement { grid-column: 3 / -1; text-indent: 16%; max-width: 20ch; }
.studio-body { margin-top: clamp(3rem, 2rem + 4vw, 6rem); row-gap: 1.5rem; }
.indent { text-indent: 3em; color: var(--soft); max-width: 44ch; }
.studio-body .indent:nth-child(1) { grid-column: 3 / span 4; }
.studio-body .indent:nth-child(2) { grid-column: 7 / span 4; }
.founder { grid-column: 3 / -1; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: var(--small); padding-top: 1.25rem; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.founder strong { font-weight: 600; }
.founder span { color: var(--soft); }
.studio-still { margin-top: var(--section); }
.studio-still img { width: 100%; height: clamp(22rem, 60vw, 52rem); object-fit: cover; filter: grayscale(1); }

@media (max-width: 860px) {
  .studio .label { grid-column: 1 / -1; padding: 0 0 1rem; }
  .studio .statement { grid-column: 1 / -1; }
  .studio-body .indent:nth-child(1), .studio-body .indent:nth-child(2), .founder { grid-column: 1 / -1; }
}

/* ---------- Films (YouTube, click to load) ---------- */
.films { padding-block: var(--section); }
.films-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0 var(--pad) 1.5rem; }
.films-channel { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: rgb(255 255 255 / 0.4); }
.films-channel:hover { text-decoration-color: currentColor; }
.films-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 2vw, 3rem) var(--pad); padding-inline: var(--pad); }
.film-featured { grid-column: 1 / -1; }
.film-play, .film-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #111; overflow: hidden; }
.film-play { cursor: pointer; color: var(--white); font: inherit; }
.film-play img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.82); transition: filter 0.6s ease, transform 1.2s var(--ease); }
.film-play:hover img, .film-play:focus-visible img { filter: grayscale(0) brightness(1); transform: scale(1.02); }
.film-cue { position: absolute; left: 1rem; bottom: 0.9rem; font-size: var(--small); font-weight: 600; }
@media (min-width: 641px) { .film-featured .film-cue { left: 1.25rem; bottom: 1.1rem; font-size: var(--body); } }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film figcaption { display: grid; margin-top: 0.75rem; font-size: var(--small); line-height: 1.3; }
.film strong { font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.film-featured strong { font-size: var(--lead); text-transform: none; letter-spacing: -0.02em; font-weight: 600; }
.film figcaption span { color: var(--soft); }
.films-note { padding: 2.5rem var(--pad) 0; font-size: var(--small); color: var(--soft); max-width: 60ch; }
@media (max-width: 640px) { .films-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .film-play img { transition: none; } .film-play:hover img { transform: none; } }

/* ---------- Services ---------- */
.services { padding-block: var(--section); }
.services-head { margin-bottom: 1.5rem; }
.services-head .label:first-child { grid-column: 1 / span 6; }
.services-head .label:last-child { grid-column: 7 / -1; justify-self: end; }
.service-list { border-top: 1px solid currentColor; margin-inline: var(--pad); }
.service {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pad); align-items: baseline;
  padding-block: clamp(1.25rem, 0.8rem + 1.5vw, 2.25rem); border-bottom: 1px solid var(--line);
}
.service h3 { grid-column: 1 / span 7; font-size: var(--title); font-weight: 400; letter-spacing: -0.03em; line-height: 1.02; transition: transform 0.5s var(--ease); }
.service p { grid-column: 9 / -1; color: var(--soft); font-size: var(--body); max-width: 38ch; }
.service:hover h3 { transform: translateX(0.35em); }
@media (max-width: 760px) {
  .service h3, .service p { grid-column: 1 / -1; }
  .service p { margin-top: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) { .service h3 { transition: none; } }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding: var(--section) var(--pad) calc(var(--section) * 0.7); isolation: isolate; }
.contact-mark { position: absolute; z-index: -1; right: -14vw; top: 50%; translate: 0 -46%; width: clamp(28rem, 62vw, 64rem); height: auto; opacity: 0.13; }
.contact-inner { max-width: 60rem; }
.contact .statement { margin-top: 1.25rem; max-width: 14ch; }
.contact-mail {
  display: inline-block; max-width: 100%; margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  font-size: clamp(1.5rem, 0.5rem + 4.4vw, 4.75rem); font-weight: 700; font-stretch: 88%; letter-spacing: -0.04em; line-height: 1.05;
  text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; overflow-wrap: anywhere;
}
.contact-mail:hover { text-decoration-thickness: 0.12em; }
.contact-list { display: flex; flex-wrap: wrap; gap: 1.5rem clamp(2rem, 1rem + 4vw, 5rem); margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.contact-list li { display: grid; gap: 0.2rem; }
.contact-list li > span:first-child { font-size: var(--small); opacity: 0.7; }
.contact-list a, .contact-list li > span:last-child { font-size: var(--lead); font-weight: 500; letter-spacing: -0.01em; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 760px) { .contact-mark { right: -40vw; width: 110vw; opacity: 0.08; } }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem var(--pad); font-size: var(--small); font-weight: 500; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { display: inline-block; padding-block: 0.6rem; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Legal pages ---------- */
.legal { padding: 9rem var(--pad) var(--section); max-width: 46rem; }
.legal h1 { font-size: var(--statement); font-weight: 400; letter-spacing: -0.035em; line-height: 1; margin-bottom: 2.5rem; }
.legal h2 { font-size: var(--body); font-weight: 600; margin: 2rem 0 0.4rem; }
.legal p { color: var(--soft); }
.legal .todo { color: var(--white); background: #262626; padding: 0 0.2em; }
