/* ============================================================
   2232.inc — Rough HTML Prototype
   Based on 03-DESIGN.md
   Note: Neue Montreal / PP Editorial are paid (Pangram Pangram).
         This prototype uses Inter (sans) + Cormorant Garamond (serif) as
         visual stand-ins. Swap to licensed fonts before production.
   ============================================================ */

:root {
  /* Surface */
  --bg: #000000;
  --bg-soft: #0A0A0A;
  --bg-elev: #111111;

  /* Ink */
  --ink: #FFFFFF;
  --ink-muted: rgba(255, 255, 255, 0.6);
  --ink-faint: rgba(255, 255, 255, 0.32);

  /* Line */
  --line: rgba(255, 255, 255, 0.1);
  --line-active: #FFFFFF;

  /* Accent (use sparingly) */
  --accent-blue: #3E5CFF;
  --accent-violet: #5B2BD9;
  --accent-magenta: #E64BD0;

  /* Spacing scale (8px base) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 120px;
  --space-2xl: 160px;
  --space-3xl: 200px;

  /* Type */
  --font-sans: "Inter", "Neue Montreal", "Suisse Int'l", "Helvetica Now", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "PP Editorial New", "Times New Roman", serif;
  --font-jp: "Noto Sans JP", "游ゴシック", "Hiragino Sans", sans-serif;

  /* Layout */
  --container-max: 1320px;
  --container-pad-pc: 80px;
  --container-pad-tab: 32px;
  --container-pad-sp: 24px;
}

/* ---------- Generic neon palette (reusable across pages) ---------- */
.neon { color: #00FF66; }
.neon--cyan     { color: #00F0FF; }
.neon--mint     { color: #00FFA8; }
.neon--green    { color: #00FF66; }
.neon--lime     { color: #B6FF3D; }
.neon--yellow   { color: #E5FF00; }
.neon--pink     { color: #FF1F8C; }
.neon--magenta  { color: #FF1FE0; }
.neon--violet   { color: #B91FFF; }
[class*="neon"] {
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.10),
    0 0 38px currentColor;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  /* NOTE: do not set overflow-x:hidden on html — it breaks position:sticky on iOS Safari.
     Horizontal overflow is prevented by constraining content (padding-block fixes etc.). */
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
  /* same note: overflow rules on body can also break sticky descendants */
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad-pc);
}

.section {
  position: relative;
  padding: var(--space-3xl) 0;
}

.section--tight { padding: var(--space-2xl) 0; }

@media (max-width: 1024px) {
  .container { padding: 0 var(--container-pad-tab); }
  .section { padding: var(--space-xl) 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 var(--container-pad-sp); }
  body { font-size: 16px; }
}

/* ---------- Film grain (full-page overlay) ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-2%, -3%); }
  20%  { transform: translate(-4%, 2%); }
  30%  { transform: translate(3%, -4%); }
  40%  { transform: translate(-3%, 3%); }
  50%  { transform: translate(0, -2%); }
  60%  { transform: translate(4%, 1%); }
  70%  { transform: translate(-2%, -3%); }
  80%  { transform: translate(2%, 4%); }
  90%  { transform: translate(-1%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--container-pad-pc);
  mix-blend-mode: difference;  /* reads on any background as scroll advances */
}

.header__logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.header__logo-img {
  display: block;
  width: auto;
  height: 28px;
}

@media (max-width: 640px) {
  .header__logo-img { height: 22px; }
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__nav a {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.7;
  transition: opacity 240ms ease;
}

.header__nav a:hover { opacity: 1; }

.header__nav a.is-active { opacity: 1; }

.header__burger {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
}

.header__burger span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1px;
  background: var(--ink);
  transition: transform 240ms ease, opacity 240ms ease;
}

.header__burger span:nth-child(1) { top: 12px; }
.header__burger span:nth-child(2) { top: 20px; }

.header.is-open .header__burger span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.header.is-open .header__burger span:nth-child(2) { top: 16px; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .header { padding: 16px var(--container-pad-sp); }
  .header__burger { display: block; }
  .header__nav {
    position: fixed;
    inset: 0;
    background: #000;        /* solid, not var(--bg), to fully occlude */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms ease;
    z-index: 60;             /* above the header itself */
    isolation: isolate;      /* new stacking context so mix-blend doesn't leak */
    mix-blend-mode: normal;  /* escape parent's mix-blend-difference */
  }
  .header__nav a { font-size: 32px; opacity: 1; }
  .header.is-open .header__nav { opacity: 1; pointer-events: auto; }

  /* When menu is open, neutralize mix-blend on the header
     (otherwise the dark overlay disappears against the dark page) and
     hide the small header logo so the overlay is clean. */
  .header.is-open {
    mix-blend-mode: normal;
  }
  .header.is-open .header__logo {
    opacity: 0;
    pointer-events: none;
  }
  /* keep the burger above the overlay so it can close itself */
  .header.is-open .header__burger {
    position: relative;
    z-index: 70;
  }
}

/* ---------- Hero (cinematic scroll-scale + crossfade) ----------
   .hero-wrap is a tall section that gives scroll distance.
   .hero-sticky is pinned within it for the entire animation.
   .hero-stack holds two layered logo images (white + pink-3) that crossfade. */
.hero-wrap {
  position: relative;
  height: 350vh; /* total scroll distance for the animation (longer = more cinematic) */
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 var(--container-pad-pc);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-stack {
  position: relative;
  width: clamp(280px, 62vw, 1080px);
  aspect-ratio: 3 / 1;
  transform-origin: 50% 50%;
  transform: scale(0.32);
  opacity: 0.55;
  will-change: transform, opacity;
  /* subtle chromatic aberration on the cinema-grade wordmark */
  filter:
    drop-shadow(1.5px 0 0 rgba(230, 75, 208, 0.45))
    drop-shadow(-1.5px 0 0 rgba(62, 92, 255, 0.45));
  transition: filter 800ms ease;
}

.hero-stack__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-stack__img--pink {
  opacity: 0; /* progressively faded in once logo reaches final size */
  will-change: opacity;
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(48px, 12vh, 120px);
  text-align: center;
}

/* JP line and EN line are individually animated with a stagger for drama */
.hero-copy .hero__sub-jp,
.hero-copy .hero__sub-en {
  display: block;
  opacity: 0;
  transform: translateY(32px);
  will-change: opacity, transform;
}

.hero-copy .hero__sub-en { margin-top: var(--space-sm); }

.hero__sub-jp {
  margin-top: var(--space-lg);
  font-family: var(--font-jp);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.hero__sub-en {
  margin-top: var(--space-sm);
  font-family: var(--font-sans);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .hero { padding: 0 var(--container-pad-sp); min-height: 600px; }
}

/* ---------- Scroll Parallax Typography (3 rows) ---------- */
.scroll-type {
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.scroll-type__row {
  position: relative;
  display: block;
  white-space: nowrap;
  overflow: visible;
  /* tight optical stacking between rows */
  margin: -0.08em 0;
}

.scroll-type__row + .scroll-type__row { margin-top: -0.18em; }

.scroll-type__track {
  display: inline-block;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.scroll-type__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(96px, 14vw, 240px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-right: 1ch;
}

/* row 2 uses sans (cleaner, contrast) for the brand word repetition */
.scroll-type__row--brand .scroll-type__text {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-size: clamp(80px, 11vw, 200px);
  color: rgba(255, 255, 255, 0.78);
}

/* accent: neon family for the "3" — vary across instances */
.scroll-type__accent          { color: #00FF66; }                /* electric green (default) */
.scroll-type__accent--teal    { color: #00E0B4; }                /* teal green */
.scroll-type__accent--lime    { color: #B6FF3D; }                /* lime / chartreuse */
.scroll-type__accent--cyan    { color: #00F0FF; }                /* neon cyan */
.scroll-type__accent--yellow  { color: #E5FF00; }                /* neon yellow */
.scroll-type__accent--pink    { color: #FF1F8C; }                /* neon hot pink */
.scroll-type__accent--magenta { color: #FF1FE0; }                /* neon magenta */
.scroll-type__accent--violet  { color: #B91FFF; }                /* neon violet */

/* generic soft glow that reads on dark for any of the above */
[class*="scroll-type__accent"] {
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.12),
    0 0 60px currentColor;
}

@media (max-width: 640px) {
  .scroll-type { padding: var(--space-xl) 0; }
  .scroll-type__text { font-size: clamp(64px, 18vw, 120px); }
  .scroll-type__row--brand .scroll-type__text { font-size: clamp(48px, 14vw, 96px); }
}

/* ---------- Manifesto ---------- */
.manifesto {
  padding: var(--space-3xl) 0;
}

.manifesto__lead {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1vw, 14px);
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.manifesto__body {
  max-width: 760px;
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.manifesto__body em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.manifesto__body .line { display: block; }

@media (max-width: 640px) {
  .manifesto__body { font-size: 22px; }
}

/* ---------- Selected Gallery ---------- */
.gallery {
  padding: var(--space-3xl) 0;
}

.gallery__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.gallery__label {
  font-size: clamp(13px, 1vw, 14px);
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gallery__cta {
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  transition: opacity 240ms ease;
}

.gallery__cta::before { content: "→"; transition: transform 240ms ease; }
.gallery__cta:hover { opacity: 0.6; }
.gallery__cta:hover::before { transform: translateX(4px); }

.gallery__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.gallery__item {
  position: relative;
  display: block;
}

.gallery__media {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: outline 400ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  outline: 0 solid transparent;
}

.gallery__media::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.gallery__item:hover .gallery__media {
  transform: scale(1.01);
  outline: 1px solid var(--ink);
  outline-offset: -1px;
}

.gallery__meta {
  margin-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink-muted);
}

.gallery__meta-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
}

@media (max-width: 640px) {
  .gallery__media { aspect-ratio: 4 / 5; }
}

/* ---------- Closing ---------- */
.closing {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.closing__line {
  font-family: var(--font-sans);
  font-size: clamp(26px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.closing__line em {
  font-family: var(--font-serif);
  font-style: italic;
}

.closing__cta {
  margin-top: var(--space-lg);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 240ms ease;
}

.closing__cta::before { content: "→"; transition: transform 240ms ease; }
.closing__cta:hover { opacity: 0.6; }
.closing__cta:hover::before { transform: translateX(4px); }

/* ---------- Footer ---------- */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}

.footer__brand {
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.footer__brand-img {
  display: inline-block;
  width: clamp(180px, 28vw, 420px);
  height: auto;
}

.footer__sns {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: var(--space-md);
}

.footer__sns a {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 240ms ease;
}

.footer__sns a:hover { color: var(--ink); }

.footer__copy {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ---------- About Page ---------- */
.about-intro {
  padding-block: var(--space-3xl) var(--space-xl);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-intro__label {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.about-intro__title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 920px;
  overflow-wrap: break-word;
  word-break: keep-all; /* avoid breaking inside short words like "2232.inc" */
}

@media (max-width: 640px) {
  .about-intro__title { font-size: clamp(34px, 9vw, 48px); }
}

.about-philosophy {
  padding-block: var(--space-3xl);
}

.about-philosophy__headline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.about-philosophy__body {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 720px;
}

.about-direction {
  padding-block: var(--space-3xl);
}

.about-direction__lead {
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink-muted);
  margin-bottom: var(--space-lg);
}

.about-direction__list {
  list-style: none;
}

.about-direction__list li {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 240ms ease, padding-left 240ms ease;
}

.about-direction__list li:hover {
  padding-left: 16px;
  opacity: 0.7;
}

.about-direction__list li:first-child { border-top: 1px solid var(--line); }

.about-direction__list li .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.4em;
  color: var(--ink-faint);
  margin-right: 24px;
  vertical-align: super;
}

.about-pause {
  padding-block: var(--space-3xl);
  text-align: center;
}

.about-pause__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.4;
}

.about-info {
  padding-block: var(--space-3xl);
}

.about-info__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-sm) var(--space-lg);
  max-width: 720px;
}

.about-info__grid dt {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 6px;
}

.about-info__grid dd {
  font-size: 18px;
  color: var(--ink);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.about-info__grid dt {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
  .about-info__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
  .about-info__grid dt { border-bottom: none; padding-bottom: 0; padding-top: var(--space-md); }
  .about-info__grid dd { padding-bottom: var(--space-md); }
}

/* ---------- Contact Page ---------- */
.contact-lead {
  padding-block: var(--space-3xl) var(--space-xl);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-lead__title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 920px;
}

.contact-lead__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.contact-lead__sub {
  margin-top: var(--space-md);
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.contact-form {
  padding-block: var(--space-xl) var(--space-3xl);
  max-width: 720px;
}

.contact-form__row {
  margin-bottom: var(--space-lg);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 400;
  transition: border-color 240ms ease;
  resize: none;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--ink-faint);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-bottom-color: var(--line-active);
}

.contact-form__textarea { min-height: 160px; }

.contact-form__submit {
  margin-top: var(--space-md);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 0;
  transition: opacity 240ms ease;
}

.contact-form__submit::before { content: "→"; transition: transform 240ms ease; }
.contact-form__submit:hover { opacity: 0.6; }
.contact-form__submit:hover::before { transform: translateX(4px); }

.contact-direct {
  padding-block: var(--space-xl) var(--space-3xl);
}

.contact-direct__label {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.contact-direct__email {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 240ms ease;
}

.contact-direct__email:hover { border-bottom-color: var(--line-active); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1), transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .grain { animation: none; }
  .moving-type__track { animation: none; }
  .hero__logo { text-shadow: none; }
}
