/* ============================================================
   LEON SCHELL — CREW PROFILE
   Concept: editorial yacht-brokerage site (Burgess/Fraser
   register) — deep charcoal ground, brass accent, large
   photography doing the visual work. No candy gradients,
   no stamps, no rotation gimmicks. Asymmetry comes from
   offsets and scale, not tilt.
   ============================================================ */

:root {
  /* Dark tokens — used only in the hero, photo break, nav, mobile
     CTA bar and footer. Deliberate dark accents, not the page theme. */
  --base-deep:  #120D16;

  --glow-indigo: #533A7B;  /* soft, low-opacity blur accents only */
  --glow-plum:   #4B244A;

  --gold:    #CDA463;      /* brass, bright — for text on dark bg */
  --gold-hi: #E2C08A;

  --cream:      #F1EAE0;   /* text-on-dark */
  --cream-dim:  rgba(241, 234, 224, 0.68);
  --cream-faint:rgba(241, 234, 224, 0.42);

  --line:        rgba(241, 234, 224, 0.13);
  --line-strong: rgba(241, 234, 224, 0.22);

  /* Light tokens — the actual page theme. Bright, high-contrast,
     legible on a phone in direct sun. */
  --paper:      #F7F1E8;
  --paper-card: #FDFBF7;
  --ink:        #241B29;
  --ink-dim:    rgba(36, 27, 41, 0.72);
  --ink-faint:  rgba(36, 27, 41, 0.48);
  --gold-text:  #8F5F26;   /* deep brass — for text on light bg */
  --line-light:        rgba(36, 27, 41, 0.11);
  --line-light-strong: rgba(36, 27, 41, 0.22);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1040px;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 64px;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-text); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--ink); }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--base-deep); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.05; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 20px 0 34px; }

.section { padding: 76px 0; position: relative; overflow: hidden; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 16px;
}
.eyebrow-center { text-align: center; }

/* Soft atmospheric glow — the only "colour" beyond gold/cream,
   used sparingly per section, never as a flat banded gradient */
.section-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-indigo) 0%, transparent 72%);
  opacity: 0.09; filter: blur(50px); mix-blend-mode: multiply;
  top: -140px; right: -180px;
}
.section-glow-alt { background: radial-gradient(circle, var(--glow-plum) 0%, transparent 72%); left: -200px; right: auto; top: auto; bottom: -180px; }
.section > .container { position: relative; z-index: 1; }

/* Fine grain — subtle photographic tactility over flat colour */
.grain-overlay {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* Generic surface card — replaces the old "glass panel" */
.card {
  background: var(--paper-card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 1px 3px rgba(36, 27, 41, 0.05);
}

/* ==========================================
   VOYAGE RAIL — simple scroll-progress line
   ========================================== */
.voyage-rail { position: fixed; left: 10px; top: 76px; bottom: 20px; z-index: 60; width: 10px; pointer-events: none; }
.voyage-track { width: 2px; height: 100%; margin: 0 auto; background: rgba(36,27,41,0.14); border-radius: 2px; position: relative; }
.voyage-marker {
  position: absolute; left: 50%; top: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-text); box-shadow: 0 0 6px 1px rgba(143,95,38,0.45);
  transform: translate(-50%, -50%);
}
@media (max-width: 480px) { .voyage-rail { left: 4px; } }

/* ==========================================
   NAVIGATION
   ========================================== */
.sticky-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(18, 13, 22, 0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); height: 60px;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--container-max); margin: 0 auto; padding: 0 20px 0 34px; height: 100%; }
.nav-logo { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--cream); }
.nav-logo:hover { color: var(--gold); }

.nav-toggle { display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; width: 40px; height: 40px; position: relative; }
.hamburger, .hamburger::before, .hamburger::after { display: block; width: 18px; height: 1.5px; background: var(--cream); transition: transform 0.25s var(--ease), background 0.25s var(--ease); }
.hamburger::before, .hamburger::after { content: ''; position: absolute; }
.hamburger::before { transform: translateY(-6px); }
.hamburger::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); background: var(--gold); }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); background: var(--gold); }

.nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: rgba(18,13,22,0.97); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 20px 8px 34px; gap: 2px; }
.nav-links.open { display: flex; }
.nav-links a { display: block; padding: 12px 0; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--cream-dim); border-bottom: 1px solid var(--line); }
.nav-links li:last-child a { border-bottom: none; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* ==========================================
   MOBILE STICKY CTA
   ========================================== */
.mobile-cta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99; background: rgba(18,13,22,0.95); border-top: 1px solid var(--line); padding: 10px 16px 10px 30px; gap: 10px; justify-content: center; align-items: center; }
.mobile-cta .btn-sm { padding: 10px 14px; font-size: 0.78rem; flex: 1; max-width: 180px; }
@media (min-width: 768px) { .mobile-cta { display: none !important; } }
.mobile-cta.hidden { display: none; }

/* ==========================================
   BUTTONS
   ========================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; font-family: var(--font-body); font-size: 0.86rem; font-weight: 600; border-radius: 2px; border: 1.5px solid transparent; cursor: pointer; transition: all 0.2s var(--ease); min-height: 46px; letter-spacing: 0.01em; }
.btn-icon { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary { background: var(--gold); color: var(--base-deep); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
/* Default: light context (contact section) */
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-light-strong); }
.btn-secondary:hover { border-color: var(--gold-text); color: var(--gold-text); }
/* Dark-zone override: the mobile sticky bar sits on a dark background */
.mobile-cta .btn-secondary {
  color: var(--cream); border-color: var(--line-strong);
}
.mobile-cta .btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ==========================================
   BEACON
   ========================================== */
.beacon-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 8px; flex-shrink: 0; animation: beacon-pulse 2.6s ease-in-out infinite; }
.beacon-dot-lg { width: 9px; height: 9px; margin-right: 10px; }
@keyframes beacon-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(205,164,99,0.45); } 50% { box-shadow: 0 0 0 7px rgba(205,164,99,0); } }

/* ==========================================
   SCROLL REVEALS — offsets only, no rotation
   ========================================== */
[data-reveal] { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal="rise"]  { opacity: 0; transform: translateY(26px); }
[data-reveal="left"]  { opacity: 0; transform: translateX(-30px); }
[data-reveal="right"] { opacity: 0; transform: translateX(30px); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================
   HERO — full-bleed photo
   ========================================== */
.hero { padding-top: 96px; padding-bottom: 60px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }

.hero-photo-frame { width: 190px; flex-shrink: 0; }
.hero-photo-frame img {
  width: 100%; height: auto; display: block;
  border: 2px solid var(--gold-text);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(36, 27, 41, 0.14);
}

.hero-content { display: flex; flex-direction: column; align-items: center; }

.hero-name { font-size: clamp(2.4rem, 9vw, 3.6rem); font-weight: 600; letter-spacing: -0.01em; margin: 6px 0 16px; }
.hero-tagline { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.1rem; color: var(--ink-dim); margin-bottom: 22px; }

.hero-meta { display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; color: var(--ink-dim); padding: 16px 0; margin-bottom: 24px; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); max-width: 380px; align-items: center; }
.hero-meta .beacon-dot { background: var(--gold-text); }
.hero-meta-item { display: flex; align-items: center; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ==========================================
   ABOUT
   ========================================== */
.about-inner { display: flex; flex-direction: column; gap: 16px; }
.about-lead { font-size: 1.55rem; font-weight: 500; font-style: italic; line-height: 1.28; color: var(--ink); }
.about-body-panel p { color: var(--ink-dim); font-size: 0.95rem; margin-bottom: 14px; }
.about-body-panel p:last-child { margin-bottom: 0; }

.about-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.step-item { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; }
.step-item strong { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); }
.step-item span { font-size: 0.86rem; color: var(--ink-dim); }

/* ==========================================
   QUALIFICATIONS — spec sheet
   ========================================== */
.spec-sheet { border-top: 1px solid var(--line-light-strong); margin-top: 24px; }
.spec-row {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: baseline;
  gap: 8px 16px; padding: 18px 4px; border-bottom: 1px solid var(--line-light);
}
.spec-check { width: 16px; height: 16px; color: var(--gold-text); align-self: center; }
.spec-name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; grid-column: 2; color: var(--ink); }
.spec-status { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-text); grid-column: 3; grid-row: 1; }
.spec-date { font-size: 0.82rem; color: var(--ink-faint); grid-column: 2 / 4; grid-row: 2; }

/* ==========================================
   EXPERIENCE & SKILLS
   ========================================== */
.exp-timeline { position: relative; margin: 28px 0 44px; padding-left: 22px; }
.exp-timeline::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line-light-strong); }
.exp-item { position: relative; padding: 2px 0 30px 22px; max-width: 460px; }
.exp-item::before { content: ''; position: absolute; left: -27px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-text); }
.exp-even { margin-left: 6%; }
.exp-date { font-size: 0.74rem; color: var(--gold-text); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; display: block; margin-bottom: 6px; }
.exp-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.exp-item p { font-size: 0.88rem; color: var(--ink-dim); }

.skills-wrap { display: flex; flex-direction: column; gap: 26px; }
.skills-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-text); margin-bottom: 12px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.82rem; padding: 7px 14px; border-radius: 2px; border: 1px solid var(--line-light-strong); color: var(--ink-dim); }
.tag-lang { color: var(--ink); border-color: var(--gold-text); }

/* ==========================================
   CONTACT
   ========================================== */
.contact-panel { max-width: 460px; margin: 0 auto; text-align: center; }
.availability-badge { display: inline-flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink); margin: 6px 0 16px; }
.availability-badge .beacon-dot { background: var(--gold-text); }
.availability-detail { font-size: 0.9rem; color: var(--ink-dim); margin-bottom: 26px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 26px; }
.contact-actions .btn { width: 100%; max-width: 280px; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer { padding: 26px 0 26px 34px; background: var(--base-deep); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--cream-faint); position: relative; z-index: 1; }

/* ==========================================
   DESKTOP (≥ 768px)
   ========================================== */
@media (min-width: 768px) {
  .container { padding: 0 40px; }
  .nav-inner { padding: 0 40px; }

  .nav-toggle { display: none; }
  .nav-links { display: flex; position: static; flex-direction: row; padding: 0; gap: 30px; border: none; background: none; }
  .nav-links a { padding: 0; border-bottom: none; font-size: 0.82rem; position: relative; }
  .nav-links a::after { content: ''; position: absolute; bottom: -18px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.25s var(--ease); }
  .nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

  .mobile-cta { display: none !important; }

  .hero { padding-top: 120px; padding-bottom: 80px; }
  .hero-inner { flex-direction: row; align-items: center; justify-content: center; text-align: left; gap: 56px; max-width: none; }
  .hero-photo-frame { width: 260px; }
  .hero-content { align-items: flex-start; flex: 0 1 480px; }
  .hero-meta { align-items: flex-start; }
  .hero-meta-item { justify-content: flex-start; }

  .about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
  .about-lead-panel { grid-column: 1; grid-row: 1; }
  .about-body-panel { grid-column: 2; grid-row: 1 / 3; align-self: start; margin-top: 30px; }
  .about-steps { grid-column: 1; grid-row: 2; }

  .spec-sheet { max-width: 640px; margin-left: auto; margin-right: auto; }
  .spec-row { grid-template-columns: 28px 1fr auto auto; gap: 16px 24px; }
  .spec-date { grid-column: 4; grid-row: 1; text-align: right; }

  .exp-timeline { padding-left: 30px; max-width: 520px; margin-left: auto; margin-right: auto; }
  .exp-even { margin-left: 14%; }

  .skills-wrap { flex-direction: row; gap: 48px; }
  .skills-col { flex: 1; }

  .contact-actions { flex-direction: row; justify-content: center; }
  .contact-actions .btn { width: auto; }
}

/* ==========================================
   ACCESSIBILITY & TOUCH
   ========================================== */
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-links a, .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
@supports (-webkit-touch-callout: none) { body { -webkit-text-size-adjust: 100%; } }
.btn:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .beacon-dot { animation: none; }
}
