/* ============================================================
   TERMINNAL — coming-soon landing
   Monochrome · architectural · Space Grotesk / Space Mono
   Theme: BLACK background · WHITE text & elements
   ============================================================ */

:root {
  /* Color — strict black & white + one restrained accent */
  --bg: #0a0a0a;              /* black background */
  --ink: #ffffff;             /* white text / lines / icons */
  --ink-muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: #ffffff;
  --accent: #2f5bff;          /* used sparingly: hover underline, focus, one dot */
  --scrim: rgba(0, 0, 0, 0.72);

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-feature: "IBM Plex Mono", "Roboto Mono", "Space Mono", monospace;

  /* Layout */
  --header-h: 64px;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1320px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;

  /* z-index scale */
  --z-header: 800;
  --z-wordmark: 850;
  --z-scrim: 1080;
  --z-menu: 1100;
  --z-hamburger: 1200;
  --z-lightbox: 2000;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-menu-open { overflow: hidden; }

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

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

::selection { background: var(--ink); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* Shared micro-label ------------------------------------------------ */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ============================================================
   HAMBURGER  (four lines)
   ============================================================ */
.hamburger {
  position: fixed;
  top: 18px;
  left: var(--gutter);
  z-index: var(--z-hamburger);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hamburger__lines {
  position: relative;
  display: block;
  width: 26px;
  height: 16px;
}
.hamburger__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity 0.25s ease;
}
.hamburger__lines span:nth-child(1) { top: 0; }
.hamburger__lines span:nth-child(2) { top: 5px; }
.hamburger__lines span:nth-child(3) { top: 10px; }
.hamburger__lines span:nth-child(4) { top: 15px; }

body.is-menu-open .hamburger__lines span:nth-child(1),
body.is-menu-open .hamburger__lines span:nth-child(4) { opacity: 0; }
body.is-menu-open .hamburger__lines span:nth-child(2) { top: 7.5px; transform: rotate(45deg); }
body.is-menu-open .hamburger__lines span:nth-child(3) { top: 7.5px; transform: rotate(-45deg); }

/* ============================================================
   MENU
   ============================================================ */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-scrim);
  background: var(--scrim);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.menu-scrim.is-open { opacity: 1; }

.menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-menu);
  width: min(86vw, 420px);
  height: 100%;
  height: 100dvh;
  padding: calc(var(--header-h) + 32px) var(--gutter) var(--gutter);
  background: var(--bg);
  border-right: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  transform: translateX(-101%);
  transition: transform var(--dur) var(--ease);
  visibility: hidden;
}
.menu.is-open { transform: translateX(0); visibility: visible; }

.menu__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.menu__list { list-style: none; margin: 0; padding: 0; flex: 1; }
.menu__item { border-bottom: 1px solid var(--line); }

.menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: padding-left var(--dur) var(--ease), color 0.25s ease;
}
a.menu__link:hover,
a.menu__link:focus-visible { padding-left: 14px; }

.menu__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  transform: translateY(-2px);
}

.menu__link.is-disabled {
  color: #555555;
  cursor: not-allowed;
  align-items: center;
  flex-wrap: wrap;            /* "Coming Soon" tag drops below if it won't fit */
}
.menu__link.is-disabled .menu__num { color: #444444; }
.menu__soon {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 4px 8px;
  align-self: center;
  line-height: 1;
  white-space: nowrap;
}
.menu__soon::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 6px;
  background: var(--accent);
  vertical-align: middle;
}

.menu__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   FIXED HEADER  (wordmark docks; spec left)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter) 0 calc(var(--gutter) + 56px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  opacity: 0;                 /* fades in when wordmark docks */
  transform: translateY(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  pointer-events: none;
}
body.is-docked .site-header { opacity: 1; transform: none; pointer-events: auto; }

.site-header__spec {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 600px) {
  .site-header__spec { display: none; }
}

/* ============================================================
   SCROLL-LINKED WORDMARK
   ============================================================ */
.wordmark {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-wordmark);
  display: flex;
  justify-content: center;
  padding-top: 21px;          /* docked resting position (≈ header center) */
  pointer-events: none;
}
.wordmark__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;            /* docked size; scaled up for hero via JS */
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform-origin: center center;
  will-change: transform;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; }
.hero__spacer {
  height: 100vh;
  height: 100dvh;
  position: relative;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: var(--ink);
  transform-origin: top;
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 88vh;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 768px) { .hero__media { aspect-ratio: 16 / 9; } }

.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.96);
}
.hero__caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  color: #fff;
}
.hero__caption .tag { color: rgba(255,255,255,0.85); }
.hero__statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

/* Brand mark blended onto the handloom image (relocated from header) */
.hero__media img.hero__logo {
  position: absolute;
  top: clamp(18px, 4vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(46px, 7vw, 66px);
  height: auto;
  object-fit: contain;
  z-index: 2;
  opacity: 0.82;
  mix-blend-mode: screen;     /* black tile drops out; white mark blends onto photo */
  pointer-events: none;
  filter: none;
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 160px) var(--gutter);
  scroll-margin-top: var(--header-h);
}
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--center { text-align: center; }
.section__head .tag { display: block; margin-bottom: 18px; }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}

.about__copy p {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
  max-width: 56ch;
  margin: 0 0 24px;
}
.about__facts {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.about__facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.about__facts-k { color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; align-self: center; }

.about__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about__media .frame:first-child { grid-column: 1 / -1; }

.frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-strong);
}
.about__media .frame:first-child { aspect-ratio: 16 / 10; }
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.8s var(--ease), filter 0.5s ease;
}
.frame:hover img { transform: scale(1.04); }

/* Subtitle caption blocks on the three intro images — solid black box, white
   robotic monospace text, anchored to a per-image corner. Fully fluid. */
.frame__tag {
  position: absolute;
  margin: 0;
  padding: 0.42em 0.72em;
  max-width: calc(100% - 2 * clamp(12px, 3%, 24px));
  background: var(--bg);                 /* solid black */
  color: var(--ink);                     /* white */
  font-family: var(--font-feature);      /* IBM Plex Mono — technical / robotic */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
  font-size: clamp(0.7rem, 0.5rem + 0.6vw, 0.95rem);
  pointer-events: none;
}
.frame__tag--tr { top: clamp(12px, 3%, 24px); right: clamp(12px, 3%, 24px); text-align: right; }
.frame__tag--bl { bottom: clamp(12px, 3%, 24px); left: clamp(12px, 3%, 24px); text-align: left; }
.frame__tag--br { bottom: clamp(12px, 3%, 24px); right: clamp(12px, 3%, 24px); text-align: right; }

/* ============================================================
   CONCEPTS
   ============================================================ */
.concepts__title { display: flex; flex-wrap: wrap; gap: 0.25em; justify-content: center; align-items: baseline; }
.concepts__title em {
  font-style: italic;
  font-weight: 400;
  position: relative;
}
.concepts__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 3px;
  background: var(--accent);
}

.concepts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.5vw, 18px);
}
@media (min-width: 860px) { .concepts__grid { grid-template-columns: repeat(4, 1fr); } }

.concept {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-strong);
  cursor: zoom-in;
  background: #161616;
}
.concept img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.98);
  transition: transform 0.8s var(--ease);
}
.concept:hover img,
.concept:focus-visible img { transform: scale(1.05); }
.concept__cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
}
.concept__zoom { opacity: 0; transform: translateY(4px); transition: opacity 0.3s ease, transform 0.3s var(--ease); }
.concept:hover .concept__zoom,
.concept:focus-visible .concept__zoom { opacity: 1; transform: none; }

.concepts__copy {
  margin: clamp(48px, 7vw, 88px) auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.6;
}

/* ============================================================
   SHOP NOW
   ============================================================ */
.shop { text-align: center; }
.shop__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 3vw, 36px); }
.shop .tag { margin-bottom: 4px; }

.shop__strike {
  position: relative;
  display: inline-block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 9vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-muted);
}
.shop__stitch {
  position: absolute;
  left: -2%;
  top: 50%;
  width: 104%;
  height: 14px;
  transform: translateY(-50%) rotate(-3deg);
  overflow: visible;
}
.shop__stitch line {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0.4 6;       /* dotted-stitch */
  vector-effect: non-scaling-stroke;
}

.shop__soon {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 18vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 12ch;            /* forces "COMING / SOON" onto two lines, stays huge */
}

/* ============================================================
   FOOTER / CONTACT
   ============================================================ */
.footer {
  border-top: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 140px) var(--gutter) clamp(40px, 6vw, 64px);
  text-align: center;
}
.footer .tag { color: rgba(255,255,255,0.6); display: block; margin-bottom: 18px; }
.footer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(40px, 6vw, 64px);
}

.footer__contact {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 520px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.footer__contact li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
@media (min-width: 560px) {
  .footer__contact li { flex-direction: row; justify-content: space-between; align-items: baseline; }
}
.footer__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.footer__v {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: -0.01em;
  position: relative;
}
.footer__v::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
}
.footer__v:hover::after,
.footer__v:focus-visible::after { width: 100%; }

.footer__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(56px, 8vw, 96px);
}
.footer__mark img {
  width: 44px; height: 44px;
  filter: invert(1);          /* black logo tile → white on dark footer */
}
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}
.footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 64px);
  background: rgba(8, 8, 8, 0.94);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
/* The author display rule above overrides the [hidden] default of display:none,
   which left this full-screen z-index:2000 overlay covering the page and eating
   clicks (e.g. the hamburger). Re-assert display:none while hidden. */
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  filter: grayscale(1) contrast(1.04);
  border: 1px solid rgba(255,255,255,0.2);
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); opacity: 1; }
.lightbox__cap {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.lightbox__close {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
}
.lightbox__close svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 1.5; }
.lightbox__close:hover { border-color: #fff; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   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;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__scroll-line { animation: none; }
}
