/*
 * ═══════════════════════════════════════════════════════════════════
 *  STYLES.CSS — Main look & feel for the whole site
 * ═══════════════════════════════════════════════════════════════════
 *
 *  COLORS — edit the :root block below:
 *    --white, --off-white     → page backgrounds
 *    --grey-100 … --grey-500  → borders, muted text
 *    --black                  → buttons, headings
 *    --chrome-liquid          → silver “liquid chrome” accents (gradient)
 *
 *  FONTS — edit these variables, then update the Google Fonts <link>
 *  in each HTML file (index.html, work.html, etc.):
 *    --font-display  → headlines (currently Syne)
 *    --font-body     → body copy (currently Inter)
 *    --font-cjk      → Korean / Japanese / Thai (Noto Sans family)
 *
 *  SPACING — work/portfolio section:
 *    --section-pad, .work-gallery, .portfolio-meta (search “Work / Portfolio”)
 *
 *  LOGO IMAGE — .logo-img height is in the Navigation section
 */

/* ─── Design tokens — CHANGE COLORS HERE ─── */
:root {
  --white: #fafafa;
  --off-white: #f0f0f2;
  --grey-100: #e8e8ec;
  --grey-200: #c4c4cc;
  --grey-300: #8e8e96;
  --grey-400: #5a5a62;
  --grey-500: #3a3a42;
  --black: #0a0a0c;
  --chrome-light: linear-gradient(
    135deg,
    #ffffff 0%,
    #e8e8f0 18%,
    #ffffff 35%,
    #b8b8c4 52%,
    #f4f4f8 68%,
    #d0d0dc 82%,
    #ffffff 100%
  );
  --chrome-dark: linear-gradient(
    135deg,
    #2a2a32 0%,
    #5a5a68 25%,
    #1a1a22 50%,
    #6a6a78 75%,
    #2a2a32 100%
  );
  --chrome-liquid: linear-gradient(
    120deg,
    #f8f8fc 0%,
    #c8c8d4 15%,
    #ffffff 30%,
    #a0a0b0 45%,
    #e0e0ec 60%,
    #b0b0c0 75%,
    #f4f4f8 90%,
    #d8d8e4 100%
  );
  /* HEADLINE FONT — swap "Syne" for another name from Google Fonts */
  --font-display: "Syne", system-ui, sans-serif;
  /* BODY FONT — swap "Inter" for e.g. "DM Sans", "Helvetica Neue" */
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  /* CJK / Thai — used on [lang="ko"], [lang="ja"], [lang="th"] */
  --font-cjk: "Noto Sans KR", "Noto Sans JP", "Noto Sans Thai", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-height: 72px;
  --max-width: 1400px;
  --section-pad: clamp(3rem, 8vw, 7rem);
}

/* ─── Reset & base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--grey-500);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

/* ─── Typography ─── */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-300);
}

/* ─── Chrome accent bar ─── */
.chrome-bar {
  height: 2px;
  background: var(--chrome-liquid);
  background-size: 200% 100%;
  animation: chrome-shift 8s ease infinite;
}

@keyframes chrome-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ─── Navigation ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.site-header.on-hero {
  color: var(--white);
}

.site-header.on-hero .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.site-header.on-hero .nav-link:hover,
.site-header.on-hero .nav-link.active {
  color: var(--white);
}

.site-header.on-hero .logo,
.site-header.on-hero .logo-text {
  color: var(--white);
}

/* Logo image on dark hero — tweak brightness if hard to see */
.site-header.on-hero .logo-img {
  filter: brightness(0) invert(1);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
}

/* LOGO IMAGE — set height to resize; file path in js/site-config.js */
.logo-img {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.logo--hidden,
.logo-text--hidden {
  display: none !important;
}

/* Optional second line in another language under headings */
.lang-sub {
  display: block;
  font-family: var(--font-cjk);
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--grey-300);
  margin-top: 0.4em;
  line-height: 1.4;
}

[lang="ko"],
[lang="ja"],
[lang="th"] {
  font-family: var(--font-cjk);
}

.hero-title .lang-sub {
  color: rgba(255, 255, 255, 0.55);
}

.nav-links {
  display: flex;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  list-style: none;
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-400);
  position: relative;
  transition: color 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--chrome-liquid);
  background-size: 200% 100%;
  transition: width 0.35s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--black);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── Main layout ─── */
main {
  min-height: 100vh;
}

.page-content {
  padding-top: var(--nav-height);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section {
  padding: var(--section-pad) 0;
}

/* ─── Hero (Home) ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--black) center / cover no-repeat;
  /* HERO IMAGE: add assets/images/hero.jpg (falls back to hero.svg placeholder) */
  background-image: url("../assets/images/SiteJLeagueWarmup.jpg"), url("../assets/images/hero.svg");
  transform: scale(1.02);
  transition: transform 12s var(--ease-out);
}

.hero:hover .hero-bg {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 12, 0.75) 0%,
    rgba(10, 10, 12, 0.2) 45%,
    rgba(10, 10, 12, 0.35) 100%
  );
}

.hero-chrome-edge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--chrome-liquid);
  background-size: 200% 100%;
  animation: chrome-shift 6s ease infinite;
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 10vh, 6rem);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  max-width: 420px;
  letter-spacing: 0.02em;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scroll-pulse 2s ease infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ─── About page ─── */
.about-page {
  padding-top: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid var(--grey-100);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-portrait--empty {
  display: none;
}

.about-portrait:not(.about-portrait--empty) {
  display: block;
}

.about-copy h2 {
  margin-bottom: 1.5rem;
}

.about-copy p {
  color: var(--grey-400);
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.about-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin-top: 2rem;
}

.about-copy .btn {
  display: inline-flex;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-copy .btn-primary {
    margin-left: 0 !important;
    margin-top: 0.75rem !important;
  }
}

/* ─── Home intro strip ─── */
.intro-strip {
  background: var(--off-white);
  border-bottom: 1px solid var(--grey-100);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.intro-text p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--grey-400);
  max-width: 520px;
}

.chrome-text {
  background: var(--chrome-liquid);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chrome-shift 10s ease infinite;
}

/* ─── Featured work preview ─── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-100);
}

.featured-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--grey-100);
}

.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.5s;
  filter: grayscale(20%);
}

.featured-item:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.featured-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(10, 10, 12, 0.6));
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}

.featured-item:hover .featured-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Page header (inner pages) ─── */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 2.5rem;
  border-bottom: 1px solid var(--grey-100);
}

.page-hero .label {
  margin-bottom: 0.5rem;
  display: block;
}

.page-hero h1 {
  margin-top: 0.25rem;
}

.page-hero p {
  margin-top: 1.25rem;
  max-width: 480px;
  color: var(--grey-300);
  line-height: 1.65;
}

/* Work page: space between page title block and image grid */
.work-gallery {
  padding-top: 2.5rem;
  padding-bottom: var(--section-pad);
}

.work-gallery .container > .portfolio-filters {
  margin-top: 0;
}

/* ─── Work / Portfolio — spacing between images & captions ─── */
.portfolio-filters {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--grey-100);
}

.filter-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-300);
  cursor: pointer;
  padding: 0;
  transition: color 0.25s;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--black);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.25rem 1.75rem;
  align-items: start;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  background: transparent;
  cursor: pointer;
}

.portfolio-media {
  overflow: hidden;
  background: var(--off-white);
}

.portfolio-item.wide {
  grid-column: span 2;
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.portfolio-item.tall img {
  aspect-ratio: 2 / 3;
}

.portfolio-item:hover img {
  transform: scale(1.03);
}

.portfolio-meta {
  padding: 1.125rem 0 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.portfolio-meta h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.portfolio-meta span {
  font-size: 11px;
  color: var(--grey-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

/* PDF download block */
.pdf-block {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--off-white);
  border: 1px solid var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.pdf-block p {
  color: var(--grey-400);
  max-width: 400px;
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ─── Contact ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--grey-400);
  margin-bottom: 2rem;
}

.contact-detail {
  margin-bottom: 1.25rem;
}

.contact-detail .label {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-detail a {
  font-size: 1.05rem;
  color: var(--black);
  transition: opacity 0.2s;
}

.contact-detail a:hover {
  opacity: 0.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-300);
}

.form-group input,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--grey-100);
  background: var(--white);
  border-radius: 0;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--grey-300);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

/* Hidden honeypot for spam bots */
.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  font-size: 13px;
  padding: 0.75rem 1rem;
  display: none;
}

.form-status.success {
  display: block;
  background: var(--off-white);
  color: var(--grey-500);
  border-left: 2px solid var(--grey-300);
}

.form-status.error {
  display: block;
  background: #faf0f0;
  color: #6a3030;
  border-left: 2px solid #c08080;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, opacity 0.25s;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-chrome {
  background: var(--chrome-liquid);
  background-size: 200% 100%;
  color: var(--black);
  animation: chrome-shift 8s ease infinite;
  border: 1px solid var(--grey-100);
}

.btn-chrome:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--grey-200);
}

.btn-outline:hover {
  border-color: var(--black);
}

/* ─── Shop (coming soon) ─── */
.coming-soon {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-pad) 1.5rem;
}

.coming-soon-visual {
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  border-radius: 50%;
  background: var(--chrome-liquid);
  background-size: 300% 300%;
  animation: chrome-shift 12s ease infinite, float 6s ease-in-out infinite;
  margin-bottom: 3rem;
  position: relative;
}

.coming-soon-visual::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--white);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.coming-soon h1 {
  margin-bottom: 1rem;
}

.coming-soon p {
  color: var(--grey-300);
  max-width: 360px;
  margin-bottom: 2rem;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--grey-100);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 12px;
  color: var(--grey-300);
  letter-spacing: 0.04em;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--grey-100);
  border-radius: 50%;
  color: var(--grey-400);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.social-link:hover {
  border-color: var(--grey-300);
  color: var(--black);
  background: var(--off-white);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-item.wide {
    grid-column: span 1;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s var(--ease-out), opacity 0.4s;
    border-bottom: 1px solid var(--grey-100);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .site-header.on-hero .nav-links {
    background: rgba(10, 10, 12, 0.95);
  }

  .site-header.on-hero .nav-links .nav-link {
    color: rgba(255, 255, 255, 0.85);
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
