/* =====================================================================
   charliekon.com — styles (Ethan Park layout)
   Colours: :root blocks below (light first, then dark).
   ===================================================================== */

:root {
  /* the grey "photo studio" behind Charlie */
  --studio-1: #9c9c99;
  --studio-2: #4c4c4a;
  --ink: #fff;
  --bar: #000;
  --muted: #8a8a86;
  --figure: grayscale(1) contrast(1.05) brightness(.92);

  --f-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
  --f-body: "Inter", "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --studio-1: #4a4a49; --studio-2: #121212;
    --figure: grayscale(1) contrast(1.08) brightness(.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --studio-1: #4a4a49; --studio-2: #121212;
  --figure: grayscale(1) contrast(1.08) brightness(.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bar); color: var(--ink);
  font: 400 15px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ------------------------------ TOP BAR ------------------------------ */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 30px; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: var(--bar); color: var(--ink);
  font-family: var(--f-display); font-weight: 800; font-size: 11px; letter-spacing: .01em; text-transform: uppercase;
}
.bar > :last-child { justify-self: end; }
.bar a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lang { display: flex; gap: 8px; }
.lang button { color: var(--muted); font-weight: 800; text-transform: uppercase; }
.lang button[aria-pressed="true"] { color: var(--ink); }

/* ------------------------------ HERO FRAME ------------------------------ */
.hero {
  position: relative; height: 100svh; min-height: 600px; overflow: hidden;
  background: radial-gradient(90% 75% at 50% 32%, var(--studio-1) 0%, var(--studio-2) 100%);
}
.hero__figure {
  position: absolute; z-index: 1; left: 50%; top: calc(30px + 5svh);
  height: 86svh; width: auto; transform: translateX(-50%);
  filter: var(--figure);
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.hero__figure--about { height: 80svh; top: calc(30px + 4svh); }

.roles {
  position: absolute; z-index: 2; left: 0; right: 0; top: 50%;
  margin: 0; padding: 0; list-style: none;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(20px, 6vw, 46px); line-height: .9; letter-spacing: -.035em;
}
.roles li {
  width: max-content; margin: 0 auto;
  background: linear-gradient(90deg, #a2a29e 0%, #fff 55%); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; translate: 0 12px; transition: opacity 1s var(--ease), translate 1.2s var(--ease);
}
.roles li:nth-child(1) { transform: translateX(-9%);  transition-delay: .35s; }
.roles li:nth-child(2) { transform: translateX(11%);  transition-delay: .5s; }
.roles li:nth-child(3) { transform: translateX(-1%);  transition-delay: .65s; }

/* ------------------------------ BLACK BAND ------------------------------ */
.band {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  background: var(--bar); color: var(--ink); text-align: center;
  padding: 16px var(--gutter) 14px;
}
.band p { margin: 0 auto; max-width: 62ch; font-size: 11.5px; line-height: 1.45; text-wrap: balance; }
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0 8px; color: #6d6d6a; }
.divider::before, .divider::after { content: ""; width: 72px; height: 1px; background: currentColor; }
.divider span { width: 5px; height: 5px; background: #fff; transform: rotate(45deg); }
.name { overflow: hidden; }
.name h1 {
  margin: 0 auto; width: max-content; white-space: nowrap;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.03em; line-height: .82; padding-top: .04em;
  translate: 0 105%; transition: translate 1.3s var(--ease) .1s;
}

.is-loaded .hero__figure { opacity: 1; }
.is-loaded .roles li { opacity: 1; translate: 0 0; }
.is-loaded .name h1 { translate: 0 0; }

/* ------------------------------ ABOUT TEXT (black, small, calm) ------------------------------ */
.info { padding: 72px var(--gutter) 0; max-width: 1200px; margin: 0 auto; }
.info__intro { margin: 0 auto 64px; max-width: 60ch; text-align: center; font-size: 15px; color: #e6e6e3; }
.info__intro p { margin: 0 0 1em; }
.cols { display: grid; gap: 40px; border-top: 1px solid #262626; padding-top: 32px; }
.cols h2 { margin: 0 0 14px; font-family: var(--f-display); font-weight: 800; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cols ul { list-style: none; margin: 0; padding: 0; }
.cols li { padding: 9px 0; border-bottom: 1px solid #1d1d1d; font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.cols li small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 13px; color: var(--muted); letter-spacing: 0; }
:root[lang="ja"] .cols li { word-break: auto-phrase; }

.foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 18px var(--gutter); margin-top: 56px; border-top: 1px solid #262626;
  font-family: var(--f-display); font-weight: 800; font-size: 11px; text-transform: uppercase; color: var(--muted);
}
.foot > :last-child { justify-self: end; }
.foot a:hover { color: var(--ink); }

/* ------------------------------ FADE-IN ------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ------------------------------ DESKTOP ------------------------------ */
@media (min-width: 760px) {
  :root { --gutter: 24px; }
  .bar { height: 26px; font-size: 12px; }
  .hero__figure { top: calc(26px + 4vh); height: 116vh; }
  .hero__figure--about { height: 104vh; }
  .roles { top: 47%; }
  .band { padding: 14px var(--gutter) 20px; }
  .band p { font-size: 12.5px; max-width: 110ch; }
  .cols { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================================
   HOME v4 — the whole touch photo (mono) + CHARLIE KON behind Charlie
   Layers: 1 full photo  ·  2 the name  ·  3 Charlie alone (same photo, lined up exactly)
   main.js sizes the photo to fill the screen and places the name so his head overlaps it.
   ===================================================================== */
.scene { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: #000; }
.stage { position: absolute; left: 0; top: 0; width: 100%; }  /* no opacity/transform here: it would flatten the layers and put the name on top */
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  /* the files are in colour; shown black & white until the cursor is on the photo (or after a tap on phones) */
  filter: grayscale(1) contrast(1.08);
  transition: opacity 1.4s var(--ease), filter .9s var(--ease); }
@media (hover: hover) { .scene:hover .stage img { filter: none; } }
.scene.is-colour .stage img { filter: none; }
.scene { cursor: default; -webkit-tap-highlight-color: transparent; }
.stage__photo   { z-index: 1; }
.stage__charlie { z-index: 3; }
.scene__name { position: absolute; z-index: 2; left: 0; right: 0; top: 30%; padding: 0 var(--gutter);
  /* soft name: dark grey "multiplied" into the photo, so sky, clouds and trees show through the letters */
  mix-blend-mode: multiply; }
.scene__name h1 {
  margin: 0; color: var(--name-colour, #3a3a3a);
  opacity: 0; translate: 0 36px; transition: opacity 1.4s var(--ease) .5s, translate 1.4s var(--ease) .5s;
}
.wm { display: block; width: 100%; height: auto; }
.wm--two { display: none; }   /* one line everywhere: at shoulder height a 2nd line would hide behind his body */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-loaded .stage img { opacity: 1; }
.is-loaded .scene__name h1 { opacity: var(--name-strength, .62); translate: 0 0; }


/* =====================================================================
   TOP BAR — page names top left, Instagram + email top right
   (style taken from the saved minimalist references: tiny bold capitals, lots of space)
   ===================================================================== */
.top {
  position: fixed; z-index: 20; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--gutter);
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
}
.top a { color: inherit; text-decoration: none; }
.top__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.top__nav a { padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color .3s; }
.top__nav a:hover, .top__nav a[aria-current="page"] { border-bottom-color: currentColor; }
.top__home { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .12em; }
.top__social { display: flex; gap: 18px; align-items: center; }
.top__social a { display: grid; place-items: center; width: 32px; height: 32px; margin: -7px; transition: opacity .3s; }
.top__social a:hover { opacity: .55; }
.top__menu { display: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; padding: 8px 0; }

/* phones: five page names don't fit in a row -> MENU button opens a full-screen list */
@media (max-width: 759px) {
  .top__menu { display: block; position: relative; z-index: 2; }
  .top__nav ul {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 6px;
    padding: 0 var(--gutter); background: #f2f2f0;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .top.is-open .top__nav ul { opacity: 1; visibility: visible; }
  .top__nav ul a {
    display: inline-block; font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif; font-weight: 900;
    font-size: clamp(30px, 10vw, 44px); letter-spacing: -.04em; transform: skewX(-12deg); border: 0; padding: 4px 0;
  }
  .top.is-open .top__social, .top.is-open .top__home { visibility: hidden; }
}

/* photo credit, bottom left of the photo */
.credit {
  position: absolute; z-index: 4; left: var(--gutter); bottom: 16px; margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.88);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}

/* placeholder pages (About, Achievements, Gallery, Projects, Goals) */
body.page { background: #f2f2f0; color: #111; }
.soon { min-height: 100svh; text-align: center; padding: clamp(96px, 16vh, 170px) var(--gutter) 80px; }   /* starts below the menu; never centred top-to-bottom (long lists pushed the title under the menu) */
.soon__title {
  margin: 0; font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif; font-weight: 900;
  font-size: clamp(44px, 12vw, 160px); letter-spacing: -.05em; line-height: .9; text-transform: uppercase;
  transform: skewX(-12deg);
}
.soon__note { margin: 18px 0 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #777; }

/* ===== v9: menu + titles drawn in the name font (SVG), HOME first, no centre name link ===== */
.top__nav a { display: inline-block; padding: 6px 0 5px; }
.top__nav .lbl { display: block; height: 8px; width: auto; }   /* menu word size (desktop) */
.top__nav ul { gap: 22px; align-items: center; }
.soon__title { transform: none; }              /* the SVG title is already slanted */
.soon__title .ttl { display: block; height: clamp(26px, 4vw, 52px); width: auto; max-width: 88vw; margin: 0 auto; }   /* page title size: same letter height on every page */
.intro { margin: 26px auto 0; max-width: 36ch; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.5; color: #333; }
.goals { list-style: none; margin: 40px auto 0; padding: 0; width: min(640px, 100%); text-align: left;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.goals li { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 14px; align-items: baseline; padding: 16px 0; border-top: 1px solid #d6d6d2; }
.goals li:last-child { border-bottom: 1px solid #d6d6d2; }
.goals__when, .goals__status { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #777; }
.goals__what { font-size: 17px; font-weight: 700; color: #111; }
.goals__what small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: #555; }
@media (max-width: 759px) {
  .top__nav ul a { transform: none; padding: 6px 0; }
  .top__nav ul .lbl { height: clamp(18px, 5.6vw, 24px); }   /* menu word size (phone menu) */
  .top__nav ul { gap: 14px; }
  .goals li { grid-template-columns: 1fr auto; }
  .goals__when { grid-column: 1 / -1; }
}

/* About page text (Charlie's own words) */
.about-text { max-width: 34em; margin: 34px auto 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #222; }
.about-text p { margin: 0 0 1.1em; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.about-text .motto { margin: 1.6em 0 .6em; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.3; font-weight: 700; color: #111; letter-spacing: -.01em; }
.about-text .sign { margin-top: 1.6em; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #777; }

/* small section heading above a list (e.g. EXPERIENCE on About) */
.list-label { margin: 56px auto 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #777; }
.list-label + .goals { margin-top: 14px; }
.soon__note--2 { margin-top: 8px; }

/* ===== Gallery: one row of photos per player, tap to enlarge ===== */
.soon:has(.player) { text-align: left; }
.soon:has(.player) .soon__title, .soon:has(.player) > .soon__note { text-align: center; }
.player { max-width: 980px; margin: 48px auto 0; }
.player__name { margin: 0 0 12px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #777; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.grid li:first-child { grid-column: 1 / -1; }            /* phone: first photo big */
.ph { display: block; width: 100%; padding: 0; border: 0; background: #ddd; cursor: zoom-in; overflow: hidden; }
.ph img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: grayscale(1) contrast(1.05); }
.ph:hover img, .ph:focus-visible img { transform: scale(1.03); filter: none; }
@media (hover: none) { .ph img { filter: none; } }       /* phones: show colour (no hover) */
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(3, 1fr); }   /* 3 photos per player */
  .grid li:first-child { grid-column: auto; }
}
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,10,.94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.lb__close { top: 18px; right: 20px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lb__prev, .lb__next { top: 50%; transform: translateY(-50%); font-size: 44px; padding: 10px 16px; opacity: .8; }
.lb__prev { left: 8px; } .lb__next { right: 8px; }

/* small print: removal offer (Gallery) + "Instagram managed by a parent" (inner pages) */
.small-print { margin: 56px auto 0; text-align: center; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; color: #666; }
.small-print a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot-note { padding: 0 var(--gutter) 28px; text-align: center; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #999; }
.soon { min-height: calc(100svh - 50px); }

/* ===== Gallery v2 (7 Nov 2026): album list -> album -> event ===== */
/* path at the top of every gallery page: GALLERY > APS > VS ALL SAINTS (each step clickable = back to that exact level) */
.crumbs { margin: 18px auto 0; text-align: center; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #999; }
.crumbs a { color: #555; text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: #111; }
.crumbs [aria-current] { color: #111; }
/* album / event rows: same look as Goals and Experience, but each row is a link */
.albums li { display: block; padding: 0; }
.albums a { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 14px; align-items: baseline; padding: 18px 0; color: inherit; text-decoration: none; }
.albums a:hover .goals__what, .albums a:focus-visible .goals__what { text-decoration: underline; text-underline-offset: 4px; }
.albums a:hover .goals__status { color: #111; }
.soon > .crumbs + .albums, .soon__note + .albums { margin-top: 34px; }
@media (max-width: 759px) {
  .albums a { grid-template-columns: 1fr auto; }
  .albums .goals__when { grid-column: 1 / -1; }
}

/* Gallery speed (7 Nov 2026): grey square while a photo loads, then a soft fade-in (only when JS is running — photos always show without it) */
.ph { background: #dcdcd8; }
.js .ph img:not(.is-in) { opacity: 0; }
.ph img { transition: opacity .35s ease, transform .6s var(--ease), filter .4s; }
