/* =========================================================
   DIMARCA — Landing Page Stylesheet
   ========================================================= */

:root {
  --navy-950: #0A0E17;
  --navy-900: #0b0f2b;
  --navy-800: #10163f;
  --navy-700: #171f52;
  --navy-600: #232c6b;
  --ink: #0c1230;
  --ink-soft: #4a5074;
  --white: #ffffff;
  --gray-50: #f6f7fb;
  --gray-100: #eef0f8;
  --gray-200: #dfe2f0;
  --gray-400: #9aa0c2;
  --accent: #C0A36B;
  --accent-2: #ffd166;
  --font-serif: "Playfair Display", "Noto Serif KR", serif;
  --shadow-lg: 0 30px 60px -20px rgba(10, 14, 23, 0.35);
  --shadow-sm: 0 10px 24px -12px rgba(10, 14, 23, 0.25);
  --radius: 18px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
html.has-custom-cursor, html.has-custom-cursor body, html.has-custom-cursor a, html.has-custom-cursor button {
  cursor: none;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.section { padding: 108px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 72px 0; } }

.kicker {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--navy-700);
  margin-bottom: 14px;
}
.kicker--light { color: var(--accent); }

h2 { font-size: clamp(28px, 3.6vw, 42px); color: var(--ink); }
h2.light { color: var(--white); }

.section-lead {
  max-width: 680px;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 48px;
}
.light-lead { color: #c4c8e6; }
.accent { color: var(--accent); }

/* ---------- Reveal base (JS drives actual animation; this is a no-JS safe default) ---------- */
.reveal-fade, .split-lines, .reveal-card { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 14px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--white); color: var(--navy-900); }
.btn-primary:hover { box-shadow: var(--shadow-sm); }

.btn-accent { background: var(--accent); color: var(--navy-950); }
.btn-accent:hover { box-shadow: 0 16px 32px -10px rgba(192, 163, 107, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--white); }

.magnetic { will-change: transform; }
a.magnetic:not(.btn) { display: inline-block; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.preloader-mark { width: 140px; opacity: .95; }
.preloader-bar {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,0.14);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 2500;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(192, 163, 107,0.55);
  transition: width .2s ease, height .2s ease, border-color .2s ease, background-color .2s ease;
}
.cursor-ring.is-active {
  width: 54px; height: 54px;
  background: rgba(192, 163, 107,0.1);
}
.cursor-dot.is-visible,
.cursor-ring.is-visible { opacity: 1; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1500;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 400;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  box-shadow: 0 16px 32px -10px rgba(192, 163, 107,0.6);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.floating-cta.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
a.floating-cta.magnetic { display: flex; }
@media (max-width: 640px) {
  .floating-cta { width: 62px; height: 62px; font-size: 10.5px; right: 14px; bottom: 14px; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(12,18,48,0.06);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
}
.brand { display: inline-flex; align-items: center; justify-self: center; grid-column: 2; }
.brand-mark { height: 26px; width: auto; }
.brand-mark--black { display: none; }
.site-header.is-scrolled .brand-mark--white { display: none; }
.site-header.is-scrolled .brand-mark--black { display: block; }

.nav-side { display: flex; align-items: center; gap: 32px; }
.nav-left { justify-self: end; grid-column: 1; }
.nav-right { justify-self: start; gap: 24px; grid-column: 3; }
.nav-side nav { display: flex; gap: 32px; }

.main-nav { display: none; gap: 32px; }
.main-nav a, .nav-side a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  padding-bottom: 3px;
}
.main-nav a span, .nav-side a span { position: relative; display: inline-block; }
.main-nav a span::after, .nav-side a span::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s ease;
}
.main-nav a:hover span::after, .nav-side a:hover span::after { transform: scaleX(1); transform-origin: left; }
.site-header.is-scrolled .main-nav a, .site-header.is-scrolled .nav-side a { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background-color .2s ease;
}
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }

@media (max-width: 900px) {
  .nav-left, .nav-right nav { display: none; }
  .main-nav {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy-950);
    flex-direction: column;
    padding: 12px 24px 28px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a,
  .site-header.is-scrolled .main-nav a { color: var(--white); display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 112vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: -6% -6%;
  overflow: hidden;
  background-color: var(--navy-950);
  will-change: transform;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.6;
}
.hero-core {
  position: absolute;
  left: 50%; top: 34%;
  width: 320px; height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(214,197,158,0.4) 28%, rgba(192, 163, 107,0.12) 55%, transparent 75%);
  border-radius: 50%;
  filter: blur(8px);
  animation: corePulse 6s ease-in-out infinite alternate;
}
@keyframes corePulse { from { opacity: .65; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-galaxy { animation: none; }
  .hero-core { animation: none; }
}
.hero-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 80% 15%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 60% 65%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 30% 80%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 90% 75%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 45% 40%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 15% 55%, rgba(255,255,255,.6), transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .5; } to { opacity: 1; } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 23,0.28) 0%, rgba(10, 14, 23,0.42) 45%, rgba(10, 14, 23,0.9) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 48px 24px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-wordmark {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 22px;
  line-height: 1;
  white-space: nowrap;
  font-size: clamp(26px, 4vw, 40px);
}
.eyebrow {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(34px, 5.6vw, 64px);
  color: var(--white);
  max-width: 16ch;
}
.hero h1.hero-title-sm {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 200;
  max-width: 36ch;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .hero h1.hero-title-sm { white-space: normal; font-size: clamp(18px, 4.6vw, 24px); }
}
.hero-desc {
  max-width: 620px;
  font-size: 17px;
  color: #d4d7ee;
  margin: 0 auto 24px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-stats > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-stats dt {
  font-size: 13px;
  color: #9ba0cc;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 28px;
  color: var(--white);
}
.hero-stats dd span { font-family: "Inter", sans-serif; font-style: normal; font-size: 12px; font-weight: 600; color: #9ba0cc; margin-left: 4px; }

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #a9aed6;
}
.hero-scroll-cue span {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
}
.hero-scroll-cue i {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--accent), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--white);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 0% { top: -100%; } 60%, 100% { top: 100%; } }

@media (max-width: 640px) {
  .lg-only { display: none; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 28px; }
  .hero-scroll-cue { display: none; }
}

/* ---------- Hero Lead (intro statement, below hero) ---------- */
.hero-lead {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-950);
  min-height: 104vh;
  display: flex;
  align-items: center;
  padding-top: calc(72px + 110px);
  padding-bottom: 72px;
  margin-top: -110px;
  clip-path: polygon(0 110px, 100% 0, 100% 100%, 0 100%);
}
.hero-lead-bg {
  position: absolute; inset: -6% -6%;
  will-change: transform;
}
.hero-lead-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
}
.hero-lead-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,14,23,0.92) 0%, rgba(10,14,23,0.72) 45%, rgba(10,14,23,0.55) 100%);
}
.hero-lead-inner {
  position: relative;
  z-index: 1;
  text-align: left;
  width: 100%;
}
.hero-lead .hero-desc {
  max-width: 780px;
  margin: 0;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
}
.hero-lead .hero-desc + .hero-desc { margin-top: 1.1em; }
.lead-line { display: block; color: var(--white); margin-bottom: 0.35em; white-space: nowrap; }
.lead-line:last-child { margin-bottom: 0; }
.lead-line--nowrap { white-space: nowrap; }
.lead-accent { font-weight: 600; color: var(--accent); }

@media (max-width: 720px) {
  .hero-lead {
    min-height: auto;
    padding-top: calc(96px + 90px);
    padding-bottom: 96px;
    margin-top: -90px;
    clip-path: polygon(0 90px, 100% 0, 100% 100%, 0 100%);
  }
  .hero-lead .hero-desc {
    max-width: none;
    /* scaled to viewport width so the longest line (24 chars) always fits on one row,
       keeping the same line breaks as desktop instead of re-wrapping */
    font-size: clamp(10px, calc((100vw - 48px) / 28), 19px);
  }
}

/* ---------- Concept (WHO WE ARE) ---------- */
.concept--dark { background: var(--navy-950); }

.concept-list { margin-top: 56px; }
.concept-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
}
.concept-list .concept-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.14); }

.concept-row-index {
  flex: 0 0 48px;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}
.concept-row-body { flex: 1; min-width: 0; }
.concept-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.concept-row-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--white);
  margin: 0;
}
.concept-row-title .concept-row-dash { color: rgba(255,255,255,0.5); margin: 0 4px; }
.concept-row-toggle {
  flex-shrink: 0;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: var(--white);
  cursor: pointer;
  transition: transform .3s ease, color .3s ease;
}
.concept-row:hover .concept-row-toggle,
.concept-row:focus-within .concept-row-toggle,
.concept-row.is-open .concept-row-toggle {
  color: var(--accent);
  transform: rotate(45deg);
}
.concept-row-kr {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--white);
  margin: 10px 0 0;
}
.concept-row-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin: 0;
  max-width: 640px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease;
}
.concept-row:hover .concept-row-desc,
.concept-row:focus-within .concept-row-desc,
.concept-row.is-open .concept-row-desc {
  max-height: 200px;
  opacity: 1;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .concept-row { gap: 16px; padding: 28px 0; }
  .concept-row-index { flex: 0 0 32px; font-size: 16px; }
  #concept-title {
    font-size: clamp(15px, calc((100vw - 48px) / 18), 28px);
    white-space: nowrap;
  }
}

/* ---------- GEO / AEO (card grid, reusing WHO WE ARE row typography/interaction) ---------- */
.geo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.geo-card.concept-row {
  display: block;
  position: relative;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 36px 28px;
}
.geo-card.concept-row:hover { border-color: rgba(255,255,255,0.3); }
.geo-card .concept-row-index { display: block; margin-bottom: 14px; }
.geo-card .concept-row-toggle { position: absolute; top: 24px; right: 24px; }
.geo-card .concept-row-desc { max-width: none; }

@media (max-width: 900px) {
  .geo-grid { grid-template-columns: repeat(2, 1fr); }
  .geo-grid .geo-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .geo-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .geo-card.concept-row { padding: 28px 24px; }
}


/* ---------- Marquee ---------- */
.marquee-strip {
  background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  padding: 22px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: #7d83b8;
  padding: 0 18px;
}
.marquee-track span:nth-child(odd) { color: var(--accent); font-style: normal; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .05em; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Services (staggered scroll parallax) ---------- */
.services--dark {
  background-color: var(--navy-950);
  background-image:
    linear-gradient(160deg, rgba(10,14,23,0.94), rgba(16,22,63,0.95));
  background-size: cover;
  background-position: center;
}

.wwd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-bottom: 40px;
}
.wwd-tile {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(175deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  padding: 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background-color .3s ease;
}
.wwd-tile:hover,
.wwd-tile:focus-within,
.wwd-tile.is-open {
  background: linear-gradient(175deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  outline: none;
}

.wwd-tile-badge {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  transition: background-color .3s ease;
}
.wwd-tile-badge svg { width: 15px; height: 15px; fill: none; stroke: rgba(255,255,255,0.6); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.wwd-tile:hover .wwd-tile-badge,
.wwd-tile:focus-within .wwd-tile-badge,
.wwd-tile.is-open .wwd-tile-badge { background: var(--accent); }
.wwd-tile:hover .wwd-tile-badge svg,
.wwd-tile:focus-within .wwd-tile-badge svg,
.wwd-tile.is-open .wwd-tile-badge svg { stroke: var(--navy-950); }

.wwd-tile-visual { position: relative; flex: 1; min-height: 108px; margin: 28px 0 20px; }
.wwd-tile-icon, .wwd-tile-desc { position: absolute; inset: 0; transition: opacity .3s ease, transform .3s ease; }
.wwd-tile-icon { display: flex; align-items: center; opacity: 1; transform: translateY(0); }
.wwd-tile-icon img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(12,18,48,0.5));
}

.wwd-tile-desc {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
  color: #d4d7ee;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.wwd-tile:hover .wwd-tile-icon,
.wwd-tile:focus-within .wwd-tile-icon,
.wwd-tile.is-open .wwd-tile-icon { opacity: 0; transform: translateY(-8px); }
.wwd-tile:hover .wwd-tile-desc,
.wwd-tile:focus-within .wwd-tile-desc,
.wwd-tile.is-open .wwd-tile-desc { opacity: 1; transform: translateY(0); }

.wwd-tile-title { font-size: 23px; font-weight: 700; color: var(--white); margin: 0 0 6px; }
.wwd-tile-sub { font-size: 15px; color: rgba(255,255,255,0.55); margin: 0; }

@media (max-width: 900px) {
  .wwd-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  .wwd-grid { grid-template-columns: 1fr; }
  .wwd-tile { min-height: 220px; }
}


/* ---------- Results ---------- */
.results--dark {
  background-color: var(--navy-950);
  background-image:
    linear-gradient(160deg, rgba(10, 14, 23,0.88), rgba(16,22,63,0.9)),
    url("../img/results-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* ---------- Works grid (fed by Google Sheet, see main.js) ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.work-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.work-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.work-card--featured .work-card-media { min-height: 100%; }
.work-card--featured .work-card-body { display: flex; flex-direction: column; justify-content: center; }

.work-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.05);
}
.work-card-media--placeholder {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(192,163,107,0.25), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.work-card-body { padding: 28px 30px; }
.work-card-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 16px; }
.work-card-tags li { color: #9ba0cc; font-size: 12.5px; }
.work-card-title { color: var(--white); font-size: 19px; margin-bottom: 14px; }
.work-card--featured .work-card-title { font-size: 24px; }
.work-card-meta { color: #b7bbdc; font-size: 13.5px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.work-card-meta span { color: #6b7290; font-weight: 700; letter-spacing: .04em; margin-right: 4px; }
.work-card-meta span:not(:first-child) { margin-left: 10px; }

@media (max-width: 900px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-card--featured { grid-template-columns: 1fr; }
}


/* ---------- Contact ---------- */
.contact--dark {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-950);
}
.contact-bg {
  position: absolute; inset: -6% -6%;
  overflow: hidden;
  will-change: transform;
}
.contact-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
}
.contact-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,14,23,0.82), rgba(10,14,23,0.94));
}
.contact-solo {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact-solo .section-lead { margin-left: auto; margin-right: auto; }
.contact-tagline { font-weight: 700; font-size: 18px; color: var(--white); margin: 0 0 32px; }
.contact-solo #openContactModal { margin-top: 12px; padding-top: 12px; padding-bottom: 12px; }

/* ---------- Contact modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6,8,20,0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.97);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); opacity: 1; }
.modal-title { font-size: 22px; margin-bottom: 24px; }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.modal-close:hover { border-color: var(--navy-700); background: var(--gray-50); }
.modal-close svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.modal .contact-form { padding: 0; box-shadow: none; }

@media (max-width: 520px) {
  .modal { padding: 28px; }
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-row label span.req { color: #e3565f; }
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--gray-50);
  transition: border-color .18s ease, background-color .18s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  background: var(--white);
}
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row--checkbox { margin-bottom: 22px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.checkbox-label input { margin-top: 3px; }
.form-note { font-size: 13px; color: var(--ink-soft); text-align: center; margin: 14px 0 0; min-height: 1em; }

@media (max-width: 520px) {
  .form-row--split { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  padding: 32px 0 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.footer-brand img { height: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: #b7bbdc; font-size: 13px; }
.footer-nav a:hover { color: var(--white); }
.footer-info { text-align: right; }
.footer-info p { color: #8a8fbb; font-size: 12px; margin: 0 0 4px; }
.footer-info a { color: #b7bbdc; }
.footer-info .copyright { margin-top: 8px; color: #5d6291; }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-info { text-align: left; }
}
