/* ============================================================
   PETRO LYSYY — Personal Brand Design System
   Calm · Confident · Reliable · Timeless
   ------------------------------------------------------------
   Typography : Space Grotesk (headings) / Inter (body)
   Palette    : Deep Forest, Midnight Navy, Warm Sand,
                Copper, Titanium, Muted Ukrainian Blue & Gold
   ============================================================ */

/* ------------------------------------------------------------
   1. FONTS (self-hosted, variable)
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-var-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-var-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-var-italic-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-var-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-var-italic-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

/* ------------------------------------------------------------
   2. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Primary */
  --forest:       #1C3A2D;   /* deep forest green  */
  --forest-deep:  #12281E;
  --forest-soft:  #2A4A3A;
  --navy:         #101B2B;   /* midnight navy      */
  --navy-soft:    #1A2A3F;
  --sand:         #E8E0D0;   /* warm sand          */
  --sand-soft:    #F3EEE3;
  --paper:        #FAF7F1;   /* page background    */

  /* Secondary */
  --copper:       #A96E3F;
  --copper-deep:  #8F5A30;
  --titanium:     #8B9299;

  /* Accent — muted Ukrainian blue & gold */
  --ua-blue:      #40608C;
  --ua-gold:      #C3A24F;

  /* Text */
  --ink:          #1A2024;
  --ink-soft:     #47525A;
  --ink-faint:    #79838B;
  --cream:        #F4EFE5;   /* text on dark       */
  --cream-soft:   rgba(244, 239, 229, 0.72);

  /* Lines & surfaces */
  --line:         rgba(26, 32, 36, 0.12);
  --line-dark:    rgba(244, 239, 229, 0.16);
  --card:         #FFFFFF;

  /* Typography */
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Seal-derived accents */
  --gold-ink: #96712A;   /* gold accent legible on paper  */
  --seal-navy: #1F2A47;

  /* Fluid type scale */
  --text-xs:   0.8125rem;
  --text-sm:   0.9375rem;
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl:   clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --text-2xl:  clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --text-3xl:  clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);
  --text-hero: clamp(2.75rem, 1.9rem + 4vw, 5.25rem);

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4.5rem, 3.5rem + 4vw, 8rem);
  --space-7: clamp(6rem, 4.5rem + 6vw, 11rem);

  /* Shape & elevation */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 27, 43, 0.05), 0 4px 12px rgba(16, 27, 43, 0.06);
  --shadow:    0 2px 6px rgba(16, 27, 43, 0.06), 0 16px 40px -8px rgba(16, 27, 43, 0.14);
  --shadow-lg: 0 4px 12px rgba(16, 27, 43, 0.08), 0 32px 72px -16px rgba(16, 27, 43, 0.24);

  /* Motion */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur:        0.6s;

  /* Layout */
  --container:      1200px;
  --container-wide: 1400px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 76px;
}

/* ------------------------------------------------------------
   3. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

ul[role="list"], ol[role="list"] { list-style: none; }

::selection { background: var(--forest); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--cream);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------
   4. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

/* Display headings carry the seal's classical serif */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 650;
  letter-spacing: -0.005em;
  line-height: 1.08;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

/* The signature italic accent word inside display headings */
.accent-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 520;
  color: var(--gold-ink);
}
.section--dark .accent-word,
.hero .accent-word { color: var(--ua-gold); }

p { max-width: 68ch; }

.lede {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--copper);
  opacity: 0.6;
}

/* Subtle Ukrainian accent — a hairline of muted blue over gold */
.ua-rule {
  width: 64px;
  border: 0;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--ua-blue) 50%, var(--ua-gold) 50%);
  opacity: 0.85;
}

/* ------------------------------------------------------------
   5. LAYOUT PRIMITIVES
   ------------------------------------------------------------ */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.container--wide { width: min(var(--container-wide), 100% - var(--gutter) * 2); }
.container--narrow { width: min(820px, 100% - var(--gutter) * 2); }

.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }
.section--hero { padding-block: var(--space-7); }

.section-head { max-width: 760px; margin-bottom: var(--space-5); }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: 1.1rem; }

/* Dark sections (forest / navy) */
.section--dark {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(64, 96, 140, 0.14), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--forest-deep) 100%);
  color: var(--cream-soft);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream); }
.section--dark .eyebrow { color: var(--ua-gold); }
.section--dark .eyebrow::before { background: var(--ua-gold); }
.section--dark .lede { color: var(--cream-soft); }

.section--sand { background: var(--sand-soft); }

/* Topographic contour texture — used sparingly on dark bands */
.has-topo { position: relative; isolation: isolate; }
.has-topo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('../icons/topo.svg');
  background-size: 900px;
  opacity: 0.05;
  pointer-events: none;
}

.grid-2 {
  display: grid;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.grid-3 { display: grid; gap: var(--space-3); }
@media (min-width: 800px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------------------
   6. HEADER & NAVIGATION
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft),
              backdrop-filter 0.35s var(--ease-soft);
}
.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .container--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.1875rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand svg, .brand img.brand-seal { width: 46px; height: 46px; flex: none; }
.brand .brand-name { line-height: 1.1; white-space: nowrap; }
.brand .brand-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 520;
  color: var(--gold-ink);
}
.header-on-dark:not(.is-scrolled) .brand .brand-serif,
.site-footer .brand .brand-serif { color: var(--ua-gold); }
.brand .brand-role {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Header over dark hero */
.header-on-dark:not(.is-scrolled) .brand { color: var(--cream); }
.header-on-dark:not(.is-scrolled) .brand .brand-role { color: var(--cream-soft); }
.header-on-dark:not(.is-scrolled) .nav-list a { color: var(--cream-soft); }
.header-on-dark:not(.is-scrolled) .nav-list a:hover,
.header-on-dark:not(.is-scrolled) .nav-list a[aria-current="page"] { color: var(--cream); }
.header-on-dark:not(.is-scrolled) .nav-toggle span { background: var(--cream); }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
  list-style: none;
}
.nav-list a {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease-soft);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  padding: 0.55rem 1.15rem !important;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream) !important;
  font-weight: 600;
  transition: background 0.25s var(--ease-soft), transform 0.25s var(--ease-out);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--forest-soft); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: grid;
    place-items: center;
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-soft), visibility 0.35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: 1.4rem; text-align: center; }
  .nav-list a { font-size: var(--text-xl); font-family: var(--font-display); color: var(--cream-soft); }
  .nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--cream); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--cream); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--cream); }
  body.nav-open .brand { color: var(--cream); }
  body.nav-open .brand .brand-role { color: var(--cream-soft); }
}

/* ------------------------------------------------------------
   7. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
              background 0.25s var(--ease-soft), color 0.25s var(--ease-soft),
              border-color 0.25s var(--ease-soft);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--seal-navy);
  color: var(--cream);
  box-shadow: 0 8px 24px -8px rgba(31, 42, 71, 0.6);
}
.btn--primary:hover {
  background: #2A3A63;
  box-shadow: 0 14px 36px -10px rgba(195, 162, 79, 0.45);
}

.btn--copper {
  background: var(--copper);
  color: #FFF7EC;
  box-shadow: 0 8px 24px -8px rgba(169, 110, 63, 0.55);
}
.btn--copper:hover { background: var(--copper-deep); }

.btn--gold {
  background: linear-gradient(150deg, #CFA954 0%, #A57E28 100%);
  color: #17223E;
  box-shadow: 0 8px 24px -8px rgba(165, 126, 40, 0.6);
}
.btn--gold:hover { box-shadow: 0 14px 36px -10px rgba(195, 162, 79, 0.7); filter: brightness(1.05); }

.btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--copper); color: var(--copper-deep); }

.btn--ghost-light {
  border: 1.5px solid var(--line-dark);
  color: var(--cream);
  background: transparent;
}
.btn--ghost-light:hover { border-color: var(--ua-gold); color: var(--ua-gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--copper-deep);
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------
   8. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 65% 30%;
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(16, 27, 43, 0.92) 0%, rgba(16, 27, 43, 0.55) 34%, rgba(16, 27, 43, 0.18) 62%, rgba(16, 27, 43, 0.30) 100%);
}
.hero-inner {
  width: min(var(--container-wide), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-block: clamp(5rem, 10vh, 8rem) clamp(3.5rem, 8vh, 6.5rem);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ua-gold);
  margin-bottom: 1.4rem;
}
.hero-eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: var(--ua-gold); }
.hero h1 { color: #FFFFFF; margin-bottom: 1rem; max-width: 14ch; }
.hero .hero-statement {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: rgba(244, 239, 229, 0.88);
  max-width: 52ch;
  margin-bottom: 2.2rem;
}
.hero .btn-row { margin-bottom: 0; }

.hero-scroll {
  position: absolute;
  right: clamp(1.25rem, 4vw, 2.5rem);
  bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(244, 239, 229, 0.6);
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(244, 239, 229, 0.7), transparent);
  animation: scroll-pulse 2.4s var(--ease-soft) infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}
@media (max-width: 700px) { .hero-scroll { display: none; } }

/* Interior page hero (short) */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.page-hero .eyebrow { margin-bottom: 1.2rem; }
.page-hero h1 { max-width: 16ch; margin-bottom: 1.4rem; }
.page-hero .lede { max-width: 58ch; }

/* ------------------------------------------------------------
   9. CARDS & SURFACES
   ------------------------------------------------------------ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card .card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--sand-soft), var(--sand));
  color: var(--forest);
}
.card .card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.75; }

/* Glass surface — used sparingly */
.glass {
  background: rgba(250, 247, 241, 0.08);
  border: 1px solid rgba(244, 239, 229, 0.14);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
}

/* Glass quote panel — oversized serif quote mark behind aphoristic copy */
.glass-quote {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(1.9rem, 4vw, 3.25rem);
  background: rgba(250, 247, 241, 0.06);
  border: 1px solid rgba(244, 239, 229, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.glass-quote::before {
  content: "\201C";
  position: absolute;
  top: -0.28em;
  right: 0.05em;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(7rem, 14vw, 11rem);
  line-height: 1;
  color: rgba(244, 239, 229, 0.06);
  pointer-events: none;
  user-select: none;
}
.section:not(.section--dark) .glass-quote {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.section:not(.section--dark) .glass-quote::before { color: rgba(31, 42, 71, 0.06); }
.glass-quote p { position: relative; max-width: none; }
.glass-quote .aphorism {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 520;
  line-height: 1.45;
  color: var(--cream);
  margin-bottom: 1rem;
}
.section:not(.section--dark) .glass-quote .aphorism { color: var(--ink); }

/* Bento grid — asymmetric expertise cards */
.bento { display: grid; gap: var(--space-3); }
@media (min-width: 800px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento-8 { grid-column: span 8; }
  .bento-4 { grid-column: span 4; }
}
.bento .card { position: relative; overflow: hidden; height: 100%; }
.bento .card .glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(70px);
  background: rgba(195, 162, 79, 0.13);
  top: -60px;
  right: -60px;
  transition: background 0.5s var(--ease-soft);
  pointer-events: none;
}
.bento .card:hover .glow { background: rgba(195, 162, 79, 0.22); }
.bento .card h3 { position: relative; }
.bento .card p { position: relative; }

/* Metric columns — left border with gradient tick (achievement style) */
.metrics {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .metrics { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric {
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(195, 162, 79, 0.3);
}
.metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1.5px;
  width: 2.5px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--ua-gold), transparent);
}
.metric-value {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 650;
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.metric-label {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ua-gold);
}
.metric p {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  color: var(--cream-soft);
  line-height: 1.7;
}

/* Oversized email link (contact focal point) */
.email-display {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
  color: var(--cream);
  transition: color 0.3s var(--ease-soft);
  overflow-wrap: anywhere;
}
.email-display:hover { color: var(--ua-gold); }
.section:not(.section--dark) .email-display { color: var(--ink); }
.section:not(.section--dark) .email-display:hover { color: var(--gold-ink); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: left; }
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 650;
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.stat-value .stat-suffix { color: var(--ua-gold); }
.stat-label {
  margin-top: 0.6rem;
  font-size: var(--text-sm);
  color: var(--cream-soft);
  max-width: 22ch;
}

/* Value strip — large typographic principles */
.values-strip { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.values-strip .value-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: baseline;
  padding: clamp(1.4rem, 3vw, 2.1rem) 0;
  border-bottom: 1px solid var(--line-dark);
}
.value-row .value-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ua-gold);
  letter-spacing: 0.1em;
}
.value-row h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--cream);
}
.value-row p { color: var(--cream-soft); font-size: var(--text-sm); max-width: 52ch; margin-top: 0.4rem; }

/* ------------------------------------------------------------
   10. IMAGERY
   ------------------------------------------------------------ */
.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.photo-frame:hover img { transform: scale(1.035); }

.photo-frame--tall { aspect-ratio: 3 / 4; }
.photo-frame--portrait { aspect-ratio: 2 / 3; }
.photo-frame--wide { aspect-ratio: 16 / 10; }

.photo-caption {
  margin-top: 0.9rem;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* Image reveal (curtain wipe) */
.img-reveal { position: relative; overflow: hidden; }
.img-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sand);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 1s var(--ease-out) 0.15s;
  z-index: 2;
}
.img-reveal.is-visible::after { transform: scaleX(0); }
.img-reveal img { transform: scale(1.12); transition: transform 1.4s var(--ease-out) 0.1s; }
.img-reveal.is-visible img { transform: scale(1); }
.section--dark .img-reveal::after,
.hero .img-reveal::after { background: var(--forest-deep); }

/* Full-bleed parallax quote band */
.band {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  text-align: center;
  padding: var(--space-6) var(--gutter);
}
.band-media { position: absolute; inset: 0; z-index: -2; }
.band-media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(16, 27, 43, 0.58);
}
.band blockquote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 550;
  line-height: 1.35;
  max-width: 26ch;
  color: #FFFFFF;
  text-wrap: balance;
}
.band cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ua-gold);
}

/* ------------------------------------------------------------
   11. TIMELINE (Experience)
   ------------------------------------------------------------ */
.timeline { position: relative; display: grid; gap: var(--space-3); }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(to bottom, var(--copper), var(--line) 85%);
  opacity: 0.5;
}
.tl-item { position: relative; padding-left: 3.25rem; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 2.4rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--copper);
  box-shadow: 0 0 0 5px var(--paper);
}
@media (max-width: 640px) {
  .tl-item { padding-left: 2.4rem; }
}

.tl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.tl-card:hover { box-shadow: var(--shadow); }
.tl-card[open] { border-color: rgba(169, 110, 63, 0.4); box-shadow: var(--shadow); }

.tl-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.4rem, 3vw, 1.9rem) clamp(1.4rem, 3vw, 2.1rem);
  cursor: pointer;
  list-style: none;
}
.tl-summary::-webkit-details-marker { display: none; }

.tl-logo {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  background: var(--forest);
}
.tl-logo--navy { background: var(--navy); }
.tl-logo--copper { background: var(--copper); }
.tl-logo--blue { background: var(--ua-blue); }

.tl-head h3 { font-size: var(--text-lg); margin-bottom: 0.15rem; }
.tl-head .tl-org { font-size: var(--text-sm); color: var(--ink-soft); }
.tl-head .tl-org strong { color: var(--copper-deep); font-weight: 600; }

.tl-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.tl-date {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.tl-chevron {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  transition: transform 0.35s var(--ease-out), border-color 0.3s, color 0.3s;
}
.tl-chevron svg { width: 14px; height: 14px; }
.tl-card[open] .tl-chevron { transform: rotate(180deg); border-color: var(--copper); color: var(--copper-deep); }

.tl-body {
  padding: 0 clamp(1.4rem, 3vw, 2.1rem) clamp(1.5rem, 3vw, 2rem);
  border-top: 1px dashed var(--line);
}
.tl-body > p { padding-top: 1.4rem; color: var(--ink-soft); font-size: var(--text-sm); }
.tl-achievements {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.85rem;
  list-style: none;
}
.tl-achievements li {
  position: relative;
  padding-left: 1.75rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.7;
}
.tl-achievements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--ua-gold);
}
.tl-tags { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--sand-soft);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .tl-summary { grid-template-columns: 1fr auto; }
  .tl-logo { display: none; }
}

/* ------------------------------------------------------------
   12. GALLERY & LIGHTBOX
   ------------------------------------------------------------ */
.masonry {
  columns: 1;
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 680px)  { .masonry { columns: 2; } }
.masonry > figure {
  break-inside: avoid;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}
.masonry .photo-frame { border-radius: var(--radius-lg); }
.masonry figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.masonry figcaption .cap-place {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  white-space: nowrap;
}
.gallery-item { cursor: zoom-in; }
.gallery-item .photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 27, 43, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
}
.gallery-item:hover .photo-frame::after { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(13, 20, 30, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-soft), visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox figcaption {
  margin-top: 1rem;
  text-align: center;
  color: var(--cream-soft);
  font-size: var(--text-sm);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 229, 0.25);
  color: var(--cream);
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(244, 239, 229, 0.12);
  transform: scale(1.06);
}
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1.25rem; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 1.25rem; top: 50%; translate: 0 -50%; }
.lightbox svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------
   13. FORMS (Contact)
   ------------------------------------------------------------ */
.form-grid { display: grid; gap: 1.4rem; }
.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field textarea {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--card);
  font: inherit;
  font-size: var(--text-sm);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(169, 110, 63, 0.12);
}
.field textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: var(--text-xs); color: var(--ink-faint); }

.contact-line {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-line:first-of-type { border-top: 1px solid var(--line); }
.contact-line .ci {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sand-soft);
  color: var(--forest);
}
.contact-line .ci svg { width: 20px; height: 20px; }
.contact-line .cl-label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-line .cl-value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.contact-line a.cl-value:hover { color: var(--copper-deep); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  filter: saturate(0.55) contrast(1.02);
}
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background: var(--navy);
  color: var(--cream-soft);
  padding: var(--space-6) 0 var(--space-4);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand { color: var(--cream); margin-bottom: 1.1rem; }
.footer-brand p { font-size: var(--text-sm); max-width: 34ch; }
.footer-col h4 {
  color: var(--cream);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.7rem; }
.footer-col a { font-size: var(--text-sm); color: var(--cream-soft); transition: color 0.25s; }
.footer-col a:hover { color: var(--ua-gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(244, 239, 229, 0.45);
}
.footer-bottom .ua-rule { width: 40px; height: 3px; }

/* ------------------------------------------------------------
   15. SCROLL REVEAL & MOTION
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal="left"]  { transform: translateX(-36px); }
.reveal[data-reveal="right"] { transform: translateX(36px); }
.reveal[data-reveal="left"].is-visible,
.reveal[data-reveal="right"].is-visible { transform: none; }

/* Word-by-word text reveal for display headings */
.split-reveal .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split-reveal .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--word-i) * 70ms);
}
.split-reveal.is-visible .word > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .img-reveal img, .split-reveal .word > span { opacity: 1 !important; transform: none !important; }
  .img-reveal::after { display: none; }
}

/* ------------------------------------------------------------
   16. UTILITIES
   ------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Language / detail chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }

/* Print base — resume page refines this */
@media print {
  .site-header, .site-footer, .hero-scroll, .skip-link, .btn-row, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
