/* ==========================================================================
   Jorge Luengo — Landing
   A bespoke single-page design. No framework, no template.
   ========================================================================== */

:root{
  --bg:            #0b0a08;
  --bg-1:          #121110;
  --bg-2:          #17150f;
  --ink:           #f4efe4;
  --ink-dim:       #b9b2a2;
  --ink-faint:     #7d766a;
  --gold:          #cda05c;
  --gold-bright:   #e6c17e;
  --gold-dim:      rgba(205,160,92,.16);
  --line:          rgba(244,239,228,.12);
  --line-soft:     rgba(244,239,228,.07);
  --shadow:        0 30px 80px -30px rgba(0,0,0,.7);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(.16,.8,.28,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
::selection{ background:var(--gold); color:#1a1509; }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}

/* film-grain texture, subtle, layered over dark sections */
.grain{
  position:fixed; inset:0; pointer-events:none; z-index:2;
  opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><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>");
}

.eyebrow{
  display:inline-flex; align-items:center; gap:.55em;
  font-family:var(--sans); font-size:.72rem; font-weight:600;
  letter-spacing:.22em; text-transform:uppercase;
  color:var(--gold-bright);
}
.eyebrow::before{
  content:""; width:1.5em; height:1px; background:var(--gold);
}

.section-head{
  max-width:640px;
  margin-bottom:clamp(2.5rem,5vw,4rem);
}
.section-head h2{
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(2.1rem, 4vw, 3.1rem);
  line-height:1.1;
  margin-top:.6em;
  letter-spacing:-.01em;
}
.section-head p{
  margin-top:1rem;
  color:var(--ink-dim);
  font-size:1.05rem;
  max-width:52ch;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.6em;
  padding:.95em 1.7em;
  border-radius:100px;
  font-size:.9rem; font-weight:600;
  letter-spacing:.01em;
  white-space:nowrap;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn svg{ width:1em; height:1em; transition:transform .35s var(--ease); }
.btn:hover svg{ transform:translateX(3px); }
.btn:active{ transform:scale(.97); }

.btn-gold{
  background:linear-gradient(180deg,var(--gold-bright),var(--gold));
  color:#211705;
  box-shadow:0 8px 24px -8px rgba(205,160,92,.55);
}
.btn-gold:hover{ box-shadow:0 12px 32px -8px rgba(205,160,92,.75); transform:translateY(-2px); }

.btn-ghost{
  border:1px solid var(--line);
  color:var(--ink);
  background:rgba(244,239,228,.03);
}
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold-bright); background:var(--gold-dim); }

.btn-line{
  border-bottom:1px solid var(--line);
  border-radius:0; padding:.2em 0;
  font-weight:600; font-size:.85rem; letter-spacing:.03em;
  color:var(--gold-bright);
}
.btn-line:hover{ border-color:var(--gold); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:1.35rem 0;
  transition:padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom:1px solid transparent;
}
.site-header.is-scrolled{
  padding:.85rem 0;
  background:rgba(11,10,8,.78);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-color:var(--line-soft);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  gap:1.5rem;
}
.brand{
  font-family:var(--serif); font-size:1.3rem; letter-spacing:.02em;
  display:flex; align-items:baseline; gap:.4em;
}
.brand em{ font-style:italic; color:var(--gold-bright); }

.main-nav{ display:flex; align-items:center; gap:2.1rem; }
.main-nav a{
  font-size:.86rem; color:var(--ink-dim); font-weight:500;
  position:relative; padding:.2em 0;
  transition:color .3s var(--ease);
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:1px;
  background:var(--gold); transition:right .35s var(--ease);
}
.main-nav a:hover{ color:var(--ink); }
.main-nav a:hover::after{ right:0; }

.header-cta{ display:flex; align-items:center; gap:1.6rem; }
.header-cta .btn{ padding:.7em 1.4em; font-size:.82rem; }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; padding:.5em;
  z-index:110;
}
.nav-toggle span{ width:22px; height:1.5px; background:var(--ink); transition:transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative;
  min-height:100svh;
  display:flex; align-items:flex-end;
  padding-top:8rem;
  padding-bottom:clamp(3rem,7vw,5.5rem);
  overflow:hidden;
}
.hero-media{ position:absolute; inset:0; z-index:-2; }
.hero-media img{
  width:100%; height:100%; object-fit:cover; object-position:58% 30%;
  transform:scale(1.06);
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(9,8,6,.55) 0%, rgba(9,8,6,.35) 30%, rgba(9,8,6,.85) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(9,8,6,.75) 0%, rgba(9,8,6,.05) 55%);
}
.hero-inner{
  position:relative; z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:flex-end;
  gap:2rem;
  width:100%;
}
.hero-eyebrow{ margin-bottom:1.4rem; }
.hero h1{
  font-family:var(--serif);
  font-weight:460;
  font-size:clamp(3.4rem, 9vw, 7.2rem);
  line-height:.94;
  letter-spacing:-.015em;
  background:linear-gradient(180deg, #fff 10%, var(--ink) 55%, var(--gold-bright) 130%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero h1 em{ font-style:italic; }
.hero-sub{
  margin-top:1.4rem;
  font-size:clamp(1.05rem,1.6vw,1.3rem);
  color:var(--ink-dim);
  max-width:36ch;
}
.hero-cta{ display:flex; gap:1rem; margin-top:2.3rem; flex-wrap:wrap; }

.hero-side{
  display:flex; flex-direction:column; align-items:flex-end; gap:1.4rem;
  padding-bottom:.4rem;
}
.hero-stat{ text-align:right; text-shadow:0 1px 14px rgba(9,8,6,.85), 0 0 3px rgba(9,8,6,.6); }   /* holds up over the smoke */
.hero-stat .num{
  font-family:var(--serif); font-size:2.1rem; color:var(--gold-bright); line-height:1;
}
.hero-stat .cap{ font-size:.72rem; color:var(--ink-faint); letter-spacing:.08em; text-transform:uppercase; margin-top:.35em; }

.scroll-cue{
  position:absolute; left:var(--gutter); bottom:1.6rem; z-index:1;
  display:flex; align-items:center; gap:.7em;
  font-size:.72rem; letter-spacing:.15em; text-transform:uppercase; color:var(--ink-faint);
}
.scroll-cue .line{ width:1px; height:34px; background:linear-gradient(var(--gold), transparent); position:relative; overflow:hidden; }
.scroll-cue .line::after{
  content:""; position:absolute; left:0; top:-100%; width:100%; height:100%;
  background:var(--gold-bright);
  animation:scrollcue 2.2s var(--ease) infinite;
}
@keyframes scrollcue{ 0%{top:-100%;} 60%,100%{top:100%;} }
@media (max-width:680px){ .scroll-cue{ display:none; } }

/* ==========================================================================
   Trust strip: laurels + logos marquee
   ========================================================================== */
.trust{ padding:clamp(3rem,6vw,4.5rem) 0; border-bottom:1px solid var(--line-soft); }
.laurels{
  display:grid; grid-template-columns:repeat(4,1fr); gap:2rem 1.5rem;
  padding-bottom:clamp(2.4rem,5vw,3.4rem);
  margin-bottom:clamp(2.4rem,5vw,3.4rem);
  border-bottom:1px solid var(--line-soft);
}
.laurel{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:1rem; }
.laurel img{ width:clamp(76px,8vw,100px); height:auto; aspect-ratio:1; opacity:.92; filter:saturate(0) brightness(1.6); }
.laurel .t{ font-size:.95rem; line-height:1.35; }
.laurel .t b{ display:block; color:var(--ink); font-weight:600; }
.laurel .t span{ display:block; color:var(--ink-faint); font-size:.85rem; margin-top:.15rem; }

.marquee-label{
  text-align:center; font-size:.72rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--ink-faint); margin-bottom:1.8rem;
}
.marquee{
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.marquee-track{
  display:flex; align-items:center; gap:clamp(2.2rem,5vw,4rem);
  width:max-content;
  animation:marquee 60s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state:paused; }
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
.marquee-track img{
  height:clamp(26px,3vw,30px); width:auto;
  filter:grayscale(1) brightness(0) invert(1); opacity:.45;
  transition:opacity .3s var(--ease);
}
.marquee-track img:hover{ opacity:.9; }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation:none; flex-wrap:wrap; justify-content:center; } }

/* ==========================================================================
   About
   ========================================================================== */
.about{ padding:var(--section-pad) 0; }
.about .container{
  display:grid; grid-template-columns:.85fr 1.15fr; gap:clamp(2.5rem,6vw,5.5rem);
  align-items:center;
}
.about-media{ position:relative; }
/* Gold frame: border-image conic gradient (interior stays empty) with a highlight travelling around all four
   sides; ::before is the same ring, thicker and blurred: the glow that follows it. The photo sits above it. */
@property --fa{ syntax:'<angle>'; inherits:true; initial-value:0deg; }
.about-frame{
  position:absolute; inset:1.1rem -1.1rem -1.1rem 1.1rem; z-index:-1; pointer-events:none;
  border:1px solid transparent;
  border-image:conic-gradient(from var(--fa) at 50% 50%, rgba(205,160,92,.55) 0deg, rgba(205,160,92,.55) 290deg, #fff3d6 332deg, rgba(205,160,92,.55) 360deg) 1;
  animation:frame-sheen 7s linear infinite;
  /* the left line dissolves exactly where the hand crosses it, so the photo reads as coming out of the frame */
  -webkit-mask-image:radial-gradient(46% 36% at 0% 70%, rgba(0,0,0,0) 38%, #000 78%);
  mask-image:radial-gradient(46% 36% at 0% 70%, rgba(0,0,0,0) 38%, #000 78%);
}
.about-frame::before{
  content:""; position:absolute; inset:-5px; pointer-events:none;
  border:5px solid transparent;
  border-image:conic-gradient(from var(--fa) at 50% 50%, transparent 0deg, transparent 298deg, rgba(230,193,126,.8) 332deg, transparent 360deg) 1;
  filter:blur(5px); opacity:.75;
  -webkit-mask-image:radial-gradient(46% 36% at 0% 70%, rgba(0,0,0,0) 38%, #000 78%);
  mask-image:radial-gradient(46% 36% at 0% 70%, rgba(0,0,0,0) 38%, #000 78%);
}
@keyframes frame-sheen{ to{ --fa:360deg; } }
@media (prefers-reduced-motion:reduce){ .about-frame{ animation:none; } }
.about-media img{
  border-radius:6px; width:100%; aspect-ratio:4/5; object-fit:cover;
  box-shadow:var(--shadow);
}
.about-badge{
  position:absolute; left:-1.4rem; bottom:-1.4rem;
  background:var(--bg-1); border:1px solid var(--line);
  border-radius:6px; padding:1rem 1.2rem;
  box-shadow:var(--shadow);
  max-width:190px;
}
.about-badge .num{ font-family:var(--serif); font-size:1.6rem; color:var(--gold-bright); }
.about-badge .cap{ font-size:.72rem; color:var(--ink-dim); margin-top:.2rem; line-height:1.3; }

.about-body h2{
  font-family:var(--serif); font-weight:500;
  font-size:clamp(2rem,3.6vw,2.9rem); line-height:1.12; margin-top:.5em;
}
.about-body p{ color:var(--ink-dim); margin-top:1.2rem; font-size:1.02rem; }
.about-body p b{ color:var(--ink); font-weight:600; }

.pull-quote{
  margin:2.2rem 0 0; padding:1.6rem 0 0 1.7rem;
  border-left:2px solid var(--gold);
  font-family:var(--serif); font-style:italic;
  font-size:clamp(1.35rem,2.4vw,1.75rem);
  color:var(--ink);
  line-height:1.35;
}

.tag-row{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.8rem; }
.tag{
  font-size:.76rem; letter-spacing:.04em; padding:.5em 1em;
  border:1px solid var(--line); border-radius:100px; color:var(--ink-dim);
}

/* ==========================================================================
   Services
   ========================================================================== */
.services{ padding:var(--section-pad) 0; background:var(--bg-1); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.service-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1.4rem;
}
.service-card{
  position:relative; border-radius:10px; overflow:hidden;
  aspect-ratio:3/4.1;
  isolation:isolate;
  box-shadow:var(--shadow);
}
.service-card img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  z-index:-2; transition:transform .8s var(--ease);
}
.service-card::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg, rgba(11,10,8,.05) 0%, rgba(11,10,8,.55) 55%, rgba(11,10,8,.96) 100%);
}
.service-card:hover img{ transform:scale(1.1) translate3d(calc(var(--px,0) * -7px), calc(var(--py,0) * -7px), 0); }
.service-card-body{
  position:absolute; left:0; right:0; bottom:0; padding:1.5rem;
  transform:translate3d(calc(var(--px,0) * 5px), calc(var(--py,0) * 5px), 0);
  transition:transform .8s var(--ease);
}

/* Tilt + depth. main.js sets the --rx/--ry/--px/--py/--lift vars on pointer move;
   image and body shift in opposite directions to the tilt, which is what reads as depth. */
.service-grid{ perspective:1200px; }
.js .service-card.reveal.is-visible{
  transform:translateY(var(--fy,0px)) rotate(var(--fan,0deg)) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(var(--lift,1));
  transition:transform .9s var(--ease), box-shadow .9s var(--ease);
}
/* the four cards sit in a loose fan, like a hand of cards: pivot below the row, outer cards lower and tilted out.
   They fan open on reveal (the transition runs from the flat reveal state). */
@media (min-width:981px){
  .service-grid{ padding:1rem 1.2rem .6rem; }
  .service-card{ transform-origin:50% 130%; }
  .service-card:nth-child(1){ --fan:-7deg; --fy:16px; }
  .service-card:nth-child(2){ --fan:-2.3deg; --fy:3px; z-index:1; }
  .service-card:nth-child(3){ --fan:2.3deg; --fy:3px; z-index:1; }
  .service-card:nth-child(4){ --fan:7deg; --fy:16px; }
}
.service-card.is-tilting{ z-index:3; }
.js .service-card.reveal.is-visible.is-tilting{
  transition:transform .12s ease-out, box-shadow .3s ease-out;
  box-shadow:calc(var(--px,0) * -14px) calc(var(--py,0) * -14px + 24px) 44px -12px rgba(0,0,0,.65), 0 0 0 1px rgba(205,160,92,.28);
}
.service-card.is-tilting img{ transition:transform .25s ease-out; }
.service-card.is-tilting .service-card-body{ transition:transform .25s ease-out; }
.service-num{ font-size:.72rem; color:var(--gold-bright); letter-spacing:.15em; }
.service-card h3{
  font-family:var(--serif); font-size:1.5rem; margin-top:.5rem; font-weight:500;
}
.service-desc{
  color:var(--ink-dim); font-size:.87rem; margin-top:.65rem; line-height:1.5;
  max-height:0; opacity:0; overflow:hidden;
  transition:max-height .5s var(--ease), opacity .4s var(--ease), margin-top .5s var(--ease);
}
.service-card:hover .service-desc,
.service-card:focus-within .service-desc{
  max-height:9rem; opacity:1;
}
@media (hover:none){
  .service-desc{ max-height:9rem; opacity:1; margin-top:.65rem; }
}

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline-section{ padding:var(--section-pad) 0; }
/* The dot column geometry is in whole pixels (88 + 24 gap + 20) so the line, the dots, the rings and the
   travelling light all share the exact same centre (--tl-x + .5px) and never land on half pixels. */
.timeline{ position:relative; margin-top:1rem; --tl-x:122px; --tl-progress:0; --tl-head:0; }
.timeline::before, .timeline::after{
  content:""; position:absolute; left:var(--tl-x); top:0; width:1px; height:100%;
}
.timeline::before{ background:var(--line-soft); }
.timeline::after{                                   /* the gold "ink" that main.js draws with the scroll; brightest near the tip */
  background:linear-gradient(180deg, var(--gold-dim), var(--gold) 3%, var(--gold) 70%, var(--gold-bright) 92%, #fff3d6);
  box-shadow:0 0 8px rgba(230,193,126,.28);
  transform-origin:top; transform:scaleY(var(--tl-progress));
}
.tl-head{                                           /* light travelling at the tip of the ink */
  position:absolute; left:calc(var(--tl-x) - 3px); top:calc(var(--tl-progress) * 100%);
  width:7px; height:7px; margin-top:-3.5px; border-radius:50%;
  background:#fff6e0; box-shadow:0 0 10px 3px rgba(230,193,126,.75), 0 0 28px 8px rgba(205,160,92,.35);
  opacity:var(--tl-head); transition:opacity .35s var(--ease); pointer-events:none;
}
.tl-sparks{ position:absolute; left:0; top:0; width:100%; height:100%; pointer-events:none; z-index:2; }
.tl-item{
  position:relative; overflow:hidden;
  display:grid; grid-template-columns:88px 20px 1fr;
  gap:0 24px;
  padding:1.4rem 0;
  border-bottom:1px solid var(--line-soft);
}
.tl-item:last-child{ border-bottom:0; }
.tl-item::after{                                    /* glint that sweeps across the text when the milestone lights up */
  content:""; position:absolute; top:0; bottom:0; left:var(--tl-x); width:45%; pointer-events:none; opacity:0;
  background:linear-gradient(100deg, transparent 0%, rgba(230,193,126,.10) 40%, rgba(255,246,224,.16) 50%, rgba(230,193,126,.10) 60%, transparent 100%);
}
.tl-year{
  font-family:var(--serif); font-size:1.15rem; color:var(--ink-faint); text-align:right; padding-top:.1rem;
  transform:translateX(6px);
  transition:color .5s var(--ease), text-shadow .6s var(--ease), transform .7s var(--ease);
}
.tl-dot{ position:relative; }
.tl-dot::before, .tl-dot::after{
  content:""; position:absolute; left:calc(50% - 4px); top:.5rem; width:9px; height:9px; border-radius:50%;
}
.tl-dot::before{
  background:var(--bg); border:2px solid var(--gold);
  transition:background .4s var(--ease), border-color .4s var(--ease), box-shadow .6s var(--ease);
}
.tl-dot::after{ border:1px solid var(--gold-bright); opacity:0; pointer-events:none; }
.tl-text{ color:var(--ink-dim); font-size:.98rem; padding-top:.05rem; opacity:.72; transition:opacity .6s var(--ease); }

/* lit state: the ink has reached this milestone */
.tl-item.is-lit .tl-year{ color:var(--gold-bright); text-shadow:0 0 14px rgba(230,193,126,.35); transform:none; }
.tl-item.is-lit .tl-text{ opacity:1; }
.tl-item.is-lit::after{ animation:tl-sweep 1.4s var(--ease) .1s forwards; }
.tl-item.is-lit .tl-dot::before{ animation:tl-ignite 1.1s var(--ease) forwards; }
.tl-item.is-lit .tl-dot::after{ animation:tl-pulse 1.1s var(--ease) forwards; }
.tl-item.is-peak.is-lit .tl-dot::before{ animation:tl-ignite-peak 1.4s var(--ease) forwards; }
.tl-item.is-peak.is-lit .tl-dot::after{ animation:tl-pulse 1.6s var(--ease) forwards; }
@keyframes tl-ignite{
  0%{ background:#fff6e0; border-color:#fff6e0; box-shadow:0 0 0 2px rgba(255,246,224,.6), 0 0 22px 8px rgba(255,240,210,.85); }
  100%{ background:var(--gold); border-color:var(--gold-bright); box-shadow:0 0 0 3px var(--gold-dim), 0 0 12px rgba(230,193,126,.45); }
}
@keyframes tl-ignite-peak{
  0%{ background:#fff; border-color:#fff; box-shadow:0 0 0 3px rgba(255,246,224,.7), 0 0 34px 12px rgba(255,240,210,.95); }
  100%{ background:var(--gold-bright); border-color:var(--gold-bright); box-shadow:0 0 0 4px var(--gold-dim), 0 0 22px 2px rgba(230,193,126,.7); }
}
@keyframes tl-pulse{
  0%{ opacity:.9; transform:scale(1); }
  100%{ opacity:0; transform:scale(4); }
}
@keyframes tl-sweep{
  0%{ transform:translateX(-30%); opacity:0; }
  15%{ opacity:1; }
  100%{ transform:translateX(230%); opacity:0; }
}
@media (prefers-reduced-motion:reduce){
  .timeline{ --tl-progress:1; }
  .tl-head, .tl-sparks{ display:none; }
  .tl-item.is-lit::after, .tl-item.is-lit .tl-dot::before, .tl-item.is-lit .tl-dot::after{ animation:none; }
  .tl-item.is-lit .tl-dot::before{ background:var(--gold); border-color:var(--gold-bright); }
}
.tl-text b{ color:var(--ink); font-weight:600; }
.tl-highlight{
  display:flex; align-items:center; gap:1rem; margin-top:.9rem;
  padding:.7rem; border:1px solid var(--line); border-radius:8px; max-width:340px;
}
.tl-highlight img{ width:64px; height:64px; object-fit:cover; border-radius:5px; }
.tl-highlight span{ font-size:.82rem; color:var(--ink-faint); }

@media (max-width:640px){
  .timeline{ --tl-x:66px; }                          /* 32 + 24 gap + 10 */
  .tl-item{ grid-template-columns:32px 20px 1fr; }
  .tl-year{ text-align:left; font-size:.95rem; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials{ padding:var(--section-pad) 0; background:var(--bg-1); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); position:relative; }
.tst-wrap{ max-width:840px; margin:0 auto; text-align:center; position:relative; }
.tst-mark{ font-family:var(--serif); font-size:4.5rem; color:var(--gold); opacity:.5; line-height:1; }
.tst-track{ position:relative; min-height:9rem; }
.tst-slide{
  position:absolute; inset:0;
  opacity:0; transform:translateY(10px);
  transition:opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events:none;
}
.tst-slide.is-active{ opacity:1; transform:translateY(0); pointer-events:auto; position:relative; }
.tst-slide p{
  font-family:var(--serif); font-style:italic; font-weight:400;
  font-size:clamp(1.4rem,3vw,2.1rem); line-height:1.35; color:var(--ink);
}
.tst-slide cite{
  display:block; margin-top:1.4rem; font-style:normal;
  font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color:var(--gold-bright);
}
.tst-dots{ display:flex; justify-content:center; gap:.6rem; margin-top:2.2rem; }
.tst-dots button{
  flex:0 0 8px; width:8px; height:8px; padding:0; line-height:0; border-radius:50%;
  background:var(--line); transition:background .3s, transform .3s;
  outline:none;
}
.tst-dots button:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }
.tst-dots button.is-active{ background:var(--gold); transform:scale(1.3); }

/* ==========================================================================
   Media mosaic
   ========================================================================== */
.media-section{ padding:var(--section-pad) 0; }
.media-grid{
  display:grid; grid-template-columns:repeat(6,1fr); grid-auto-rows:9rem; gap:.9rem;
}
.media-grid{ perspective:1200px; }
.media-grid a{
  position:relative; border-radius:8px; overflow:hidden; display:block;
  transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(var(--lift,1));
  transition:transform .9s var(--ease), box-shadow .9s var(--ease);
}
.media-grid a.is-tilting{
  z-index:2; transition:transform .12s ease-out, box-shadow .3s ease-out;
  box-shadow:calc(var(--px,0) * -10px) calc(var(--py,0) * -10px + 16px) 32px -10px rgba(0,0,0,.6), 0 0 0 1px rgba(205,160,92,.22);
}
.media-grid img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease), filter .4s; filter:grayscale(.25) brightness(.9); }
.media-grid a:hover img{ transform:scale(1.1) translate3d(calc(var(--px,0) * -6px), calc(var(--py,0) * -6px), 0); filter:grayscale(0) brightness(1); }
.media-grid a.is-tilting img{ transition:transform .25s ease-out, filter .4s; }
.media-grid a:nth-child(1){ grid-column:span 2; grid-row:span 2; }
.media-grid a:nth-child(4){ grid-column:span 2; grid-row:span 2; }
@media (max-width:820px){
  .media-grid{ grid-template-columns:repeat(3,1fr); grid-auto-rows:6rem; }
  .media-grid a:nth-child(1),.media-grid a:nth-child(4){ grid-column:span 2; grid-row:span 2; }
}

/* ==========================================================================
   Dates / entradas
   ========================================================================== */
.dates-section{ padding:var(--section-pad) 0; background:var(--bg-1); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.dates-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:2rem; flex-wrap:wrap; margin-bottom:2.4rem; }
.date-row{
  display:grid; grid-template-columns:1fr auto auto;
  align-items:center; gap:1.5rem;
  padding:1.35rem 0; border-bottom:1px solid var(--line-soft);
}
.date-row:first-of-type{ border-top:1px solid var(--line-soft); }
.date-main b{ font-family:var(--serif); font-size:1.2rem; font-weight:500; }
.date-main span{ display:block; color:var(--ink-faint); font-size:.85rem; margin-top:.25rem; }
.date-status{ font-size:.76rem; color:var(--ink-faint); letter-spacing:.04em; white-space:nowrap; }
.date-row .btn{ padding:.65em 1.3em; font-size:.78rem; }

/* ==========================================================================
   Contact CTA
   ========================================================================== */
.contact{
  position:relative; padding:clamp(6rem,12vw,9rem) 0; text-align:center; overflow:hidden;
  background:radial-gradient(120% 100% at 50% 100%, rgba(205,160,92,.10), transparent 60%), var(--bg);
}
.contact > .container{ position:relative; z-index:1; }
.smoke-canvas, .hero-cards{                           /* three.js canvases mounted by assets/js/smoke.js and hero-cards.js */
  position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none;
  opacity:0; transition:opacity 1.6s var(--ease);
}
.fx-canvas{ position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:90; }
/* light sweep across the ticket buttons on hover */
.date-row .btn-gold, .hero-cta .btn-gold, .link-card--primary .btn-gold{ position:relative; overflow:hidden; }
.date-row .btn-gold::after, .hero-cta .btn-gold::after, .link-card--primary .btn-gold::after{
  content:""; position:absolute; top:-20%; bottom:-20%; left:-40%; width:40%; pointer-events:none;
  background:linear-gradient(100deg, transparent 0%, rgba(255,250,235,.0) 35%, rgba(255,250,235,.55) 50%, rgba(255,250,235,0) 65%, transparent 100%);
  transform:skewX(-12deg) translateX(-120%); opacity:0;
}
.date-row .btn-gold:hover::after, .hero-cta .btn-gold:hover::after, .link-card--primary .btn-gold:hover::after{ animation:btn-sweep 1.1s var(--ease) forwards; }
@keyframes btn-sweep{ 0%{ transform:skewX(-12deg) translateX(-120%); opacity:0; } 15%{ opacity:1; } 100%{ transform:skewX(-12deg) translateX(420%); opacity:0; } }
.contact h2{
  font-family:var(--serif); font-weight:500;
  font-size:clamp(2.6rem,7vw,5rem); line-height:1.02; letter-spacing:-.01em;
}
.contact p{ color:var(--ink-dim); margin:1.4rem auto 0; max-width:46ch; font-size:1.08rem; }
.contact-email{
  display:inline-block; margin-top:2.2rem; font-family:var(--serif); font-style:italic;
  font-size:clamp(1.3rem,2.6vw,1.7rem); color:var(--gold-bright);
  border-bottom:1px solid var(--gold); padding-bottom:.15em;
}
.social-row{ display:flex; justify-content:center; gap:1.4rem; margin-top:2.6rem; }
.social-row a{
  width:44px; height:44px; border:1px solid var(--line); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition:border-color .3s, color .3s, transform .3s;
  color:var(--ink-dim);
}
.social-row a:hover{ border-color:var(--gold); color:var(--gold-bright); transform:translateY(-3px); }
.social-row svg{ width:18px; height:18px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ padding:2.4rem 0; border-top:1px solid var(--line-soft); }
.site-footer .container{
  display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap;
}
.site-footer p{ color:var(--ink-faint); font-size:.82rem; }
.to-top{ display:flex; align-items:center; gap:.5em; font-size:.78rem; color:var(--ink-dim); }
.to-top:hover{ color:var(--gold-bright); }

/* ==========================================================================
   Reveal-on-scroll (progressive enhancement — visible by default)
   ========================================================================== */
.reveal{ opacity:1; transform:none; }
.js .reveal{
  opacity:0; transform:translateY(28px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible{ opacity:1; transform:none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:980px){
  .about .container{ grid-template-columns:1fr; }
  .about-media{ max-width:380px; margin:0 auto; }
  .service-grid{ grid-template-columns:repeat(2,1fr); }
  .hero-inner{ grid-template-columns:1fr; }
  .hero-side{ display:none; }
}

/* mobile nav is off-canvas (fixed + translated out of view) at ALL widths by
   default — only its type scale changes under the mobile breakpoint below.
   The nav-toggle button that opens it is already display:none above 760px. */
.mobile-nav{
  position:fixed; inset:0; z-index:99;
  background:var(--bg);
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:1.6rem;
  padding:2rem var(--gutter);
  transform:translateY(-100%);
  transition:transform .5s var(--ease);
}
.mobile-nav.is-open{ transform:translateY(0); }
.mobile-nav .btn{ margin-top:1rem; font-family:var(--sans); font-size:.95rem; align-self:flex-start; }

@media (max-width:760px){
  .main-nav, .header-cta .btn-ghost{ display:none; }
  .nav-toggle{ display:flex; }
  .header-cta{ gap:0; }

  .mobile-nav a{ font-family:var(--serif); font-size:2rem; font-weight:400; }
  .mobile-nav a.btn{ font-family:var(--sans); font-size:.95rem; font-weight:600; }
  .nav-toggle{ outline:none; }
  .nav-toggle:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

  .service-grid{ grid-template-columns:1fr; }
  .service-card{ aspect-ratio:16/11; }
  .service-desc{ max-height:none !important; opacity:1 !important; margin-top:.65rem !important; }

  .date-row{ grid-template-columns:1fr; align-items:flex-start; gap:.6rem; }
  .date-row .btn{ width:100%; justify-content:center; }

  .laurels{ grid-template-columns:repeat(2,1fr); gap:1.6rem 1rem; }
  .marquee-track img{ height:32px; }
}

@media (max-width:480px){
  .hero{ padding-top:6.5rem; }
  .about-badge{ position:static; margin-top:1rem; max-width:none; }
  .about-frame{ display:none; }
}

.main-nav .nav-icon{ display:inline-flex; align-items:center; padding:.2rem; margin-left:-.2rem; }
.main-nav .nav-icon svg{ width:17px; height:17px; }

/* ==========================================================================
   Hero photo: slow Ken Burns on the wrapper, pointer + scroll parallax on the image (vars set by main.js)
   ========================================================================== */
.hero-media{ animation:hero-kenburns 28s ease-in-out infinite alternate; will-change:transform; }
@keyframes hero-kenburns{ from{ transform:scale(1); } to{ transform:scale(1.05); } }
.hero-media img{ transform:translate3d(var(--hpx,0px), calc(var(--hpy,0px) + var(--hsy,0px)), 0) scale(1.08); }
.is-dragging-card, .is-dragging-card *{ user-select:none !important; -webkit-user-select:none !important; }
.is-dragging-card .hero-inner, .is-dragging-card .scroll-cue{ pointer-events:none; }   /* while a card is dragged, no text under the pointer */
.hero-light{                                        /* warm follow-spot on the photo, driven by the pointer (main.js) */
  position:absolute; inset:0; pointer-events:none; mix-blend-mode:soft-light;
  background:radial-gradient(38vmin 38vmin at var(--lx,34%) var(--ly,30%), rgba(255,232,190,.95), rgba(255,232,190,.35) 40%, transparent 70%);
}
@media (prefers-reduced-motion:reduce){ .hero-media{ animation:none; } }

/* ==========================================================================
   About photo: unmasks on reveal, tilts with the pointer (frame shifts the other way), drifts with the scroll
   ========================================================================== */
.about-media{ perspective:1000px; }
.about-media img{
  transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--apy,0px));
  transition:transform .9s var(--ease), filter .6s var(--ease), clip-path 1.3s var(--ease);
  filter:grayscale(.2);
  /* the portrait is a hard-cropped PNG: fade its left, bottom and top edges into the page so the cut hands dissolve */
  -webkit-mask-image:linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 24%), linear-gradient(0deg, rgba(0,0,0,0) 0%, #000 20%), linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 10%);
  -webkit-mask-composite:source-in, source-in;
  mask-image:linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 24%), linear-gradient(0deg, rgba(0,0,0,0) 0%, #000 20%), linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 10%);
  mask-composite:intersect;
}
.js .about-media img{ clip-path:inset(100% 0 0 0 round 6px); }
.js .about-media.is-visible img{ clip-path:inset(0 0 0 0 round 6px); }
.about-media.is-tilting img{ transition:transform .15s ease-out, filter .6s var(--ease), clip-path 1.3s var(--ease); filter:grayscale(0); }
.about-frame{ transform:translate3d(calc(var(--px,0) * 10px), calc(var(--py,0) * 10px + var(--afy,0px)), 0); transition:transform .9s var(--ease); }
.about-media.is-tilting .about-frame{ transition:transform .25s ease-out; }

/* ==========================================================================
   Links page (/links)
   ========================================================================== */
.links-page{
  position:relative; padding:6rem 0 5rem; min-height:100svh;
  background:radial-gradient(70% 45% at 50% 0%, rgba(205,160,92,.13), transparent 70%), var(--bg);
}
.links-wrap{ max-width:640px; margin:0 auto; padding:0 var(--gutter); position:relative; z-index:1; }
.links-page .smoke-canvas{                             /* the smoke thins out into the footer instead of stopping at the main's edge */
  -webkit-mask-image:linear-gradient(#000 calc(100% - 260px), transparent); mask-image:linear-gradient(#000 calc(100% - 260px), transparent);
}
.links-page::before{                                  /* soft spotlight following the pointer (vars from main.js) */
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background:radial-gradient(42vmin 42vmin at var(--sx,50%) var(--sy,20%), rgba(205,160,92,.11), transparent 70%);
}
/* avatar: slowly turning gold ring with a travelling highlight */
.avatar-wrap{
  display:inline-block; position:relative; padding:2px; border-radius:50%; margin-bottom:1.2rem;
  background:conic-gradient(from var(--fa) at 50% 50%, rgba(205,160,92,.45) 0deg, rgba(205,160,92,.45) 280deg, #fff3d6 325deg, rgba(205,160,92,.45) 360deg);
  box-shadow:0 14px 30px -12px rgba(0,0,0,.8);
  animation:frame-sheen 6s linear infinite;
}
.links-head .avatar-wrap .avatar{ display:block; margin:0; border:2px solid var(--bg); box-shadow:none; background:radial-gradient(circle at 50% 35%, #26201a, #0e0c0a 72%); }   /* opaque: the portrait PNG is transparent */
.links-top{ position:absolute; top:1.4rem; left:var(--gutter); color:var(--ink-faint); font-size:.82rem; letter-spacing:.02em; z-index:2; }
.links-top:hover{ color:var(--gold-bright); }
.links-head{ text-align:center; margin-bottom:2.4rem; }
.links-head .avatar{
  width:96px; height:96px; border-radius:50%; object-fit:cover; object-position:50% 15%;
  border:2px solid var(--gold); box-shadow:0 0 0 6px var(--gold-dim), var(--shadow); margin-bottom:1.2rem;
}
.links-head h1{ font-family:var(--serif); font-weight:500; font-size:clamp(2.2rem,6vw,3rem); line-height:1; }
.links-head h1 em{ font-style:italic; color:var(--gold-bright); }
.links-head .eyebrow{ justify-content:center; margin-top:1rem; }
.link-card{ border:1px solid var(--line); border-radius:14px; padding:1.6rem; background:rgba(255,255,255,.025); }
.link-card--primary{
  text-align:center; padding:2.2rem 1.6rem;
  background:linear-gradient(180deg, rgba(205,160,92,.14), rgba(205,160,92,.04)); border-color:rgba(205,160,92,.4);
  -webkit-backdrop-filter:blur(18px) saturate(1.3); backdrop-filter:blur(18px) saturate(1.3);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1), 0 24px 50px -28px rgba(0,0,0,.9);
}
.link-card--primary .eyebrow{ justify-content:center; }
.link-card--primary h2{ font-family:var(--serif); font-weight:500; font-size:clamp(1.5rem,4vw,2rem); line-height:1.15; }
.link-card--primary p{ color:var(--ink-dim); margin-top:.8rem; }
.link-card--primary .btn{ margin-top:1.5rem; }
.links-note{ text-align:center; color:var(--ink-faint); font-size:.9rem; margin:2.2rem 0 1.2rem; line-height:1.55; }
.link-list{ display:flex; flex-direction:column; gap:.8rem; perspective:1100px; }
.link-row{
  display:grid; grid-template-columns:84px 1fr auto; align-items:center; gap:1rem;
  padding:.9rem 1.1rem .9rem .9rem; border:1px solid rgba(255,255,255,.12); border-radius:12px;
  color:inherit; text-decoration:none; position:relative; isolation:isolate;
  /* frosted glass over the smoke */
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.22));
  -webkit-backdrop-filter:blur(18px) saturate(1.2) brightness(.82); backdrop-filter:blur(18px) saturate(1.2) brightness(.82);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09), 0 18px 40px -24px rgba(0,0,0,.9);
  transition:border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.link-row:hover{ border-color:rgba(205,160,92,.55); background:linear-gradient(180deg, rgba(205,160,92,.12), rgba(205,160,92,.04)); --ty:-2px; }
/* tilt with the pointer (vars from main.js) + staggered entrance (delay only applies to the reveal, hover resets it) */
.js .link-row.reveal.is-visible{ transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--ty,0px)); transition-delay:var(--d,0s); }
.js .link-row.reveal.is-visible:hover, .link-row.is-tilting{ transition-delay:0s; }
.link-row.is-tilting{ transition:transform .12s ease-out, border-color .3s var(--ease), background .3s var(--ease); }
.link-list .link-row:nth-child(1){ --d:0s; } .link-list .link-row:nth-child(2){ --d:.08s; } .link-list .link-row:nth-child(3){ --d:.16s; }
.link-list .link-row:nth-child(4){ --d:.24s; }
/* light sweep across the row on hover */
.link-row::after{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; opacity:0; z-index:-1;
  background:linear-gradient(100deg, transparent 32%, rgba(230,193,126,.14) 50%, transparent 68%);
  background-size:250% 100%; background-position:200% 0;
}
.link-row:hover::after{ animation:row-glint 1.1s var(--ease) forwards; }
@keyframes row-glint{ 0%{ opacity:0; background-position:200% 0; } 15%{ opacity:1; } 100%{ opacity:0; background-position:-100% 0; } }
.link-row:hover .thumb--book img, .link-row:hover .thumb--box3d img{ transform:translateY(-3px) scale(1.04); }
/* the main call to action breathes */
.link-card--primary{ position:relative; }
.js .link-card--primary.reveal.is-visible{ transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); }
.link-card--primary.is-tilting{ transition:transform .12s ease-out; }
.link-card--primary .btn-gold{ animation:cta-breathe 3.4s ease-in-out infinite; }
@keyframes cta-breathe{ 0%,100%{ box-shadow:0 0 0 0 rgba(205,160,92,0); } 50%{ box-shadow:0 0 30px 8px rgba(205,160,92,.32); } }
@media (prefers-reduced-motion:reduce){ .avatar-wrap, .link-card--primary .btn-gold{ animation:none; } .link-row:hover::after{ animation:none; } }
.link-row .thumb{ width:64px; height:64px; border-radius:8px; object-fit:cover; background:#1a1612; justify-self:center; }
.link-row .thumb--icon{ display:grid; place-items:center; color:var(--gold-bright); border:1px solid var(--line); }
/* books: the real cover, flat and upright, with a soft shadow (no faked perspective) */
.link-row .thumb--book{ width:58px; height:82px; border-radius:0; background:none; position:relative; justify-self:center; overflow:visible; }
.link-row .thumb--book img{
  display:block; width:58px; height:82px; object-fit:cover; border-radius:2px 4px 4px 2px;
  box-shadow:0 10px 18px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  transition:transform .4s var(--ease);
}
.link-row:hover .thumb--book img{ transform:translateY(-2px); }
/* products: real packshots with the background removed (box, tin, tube), nothing simulated */
.link-row .thumb--box3d{ width:84px; height:84px; border-radius:0; background:none; display:grid; place-items:center; overflow:visible; }
.link-row .thumb--box3d img{ width:auto; height:auto; max-width:84px; max-height:84px; filter:drop-shadow(0 10px 14px rgba(0,0,0,.65)); transition:transform .4s var(--ease); }
.link-row:hover .thumb--box3d img{ transform:translateY(-2px) scale(1.03); }
.link-row .thumb--icon svg{ width:26px; height:26px; }
.link-row b{ display:block; font-family:var(--serif); font-weight:500; font-size:1.1rem; line-height:1.2; }
.link-row .d{ display:block; color:var(--ink-dim); font-size:.84rem; margin-top:.25rem; line-height:1.4; }
.link-row .go{ font-size:.76rem; letter-spacing:.06em; text-transform:uppercase; color:var(--gold-bright); white-space:nowrap; }
.links-footer{ text-align:center; margin-top:2.6rem; display:flex; flex-direction:column; align-items:center; gap:1.2rem; }
.links-back{ color:var(--ink-faint); font-size:.85rem; }
.links-back:hover{ color:var(--gold-bright); }
@media (max-width:480px){
  .links-head .eyebrow{ font-size:.62rem; letter-spacing:.16em; }
  .links-head .eyebrow::before{ display:none; }   /* the dash would wrap onto its own line */
  .link-row{ grid-template-columns:84px 1fr; }
  .link-row .thumb{ width:56px; height:56px; }
  .link-row .go{ grid-column:2; justify-self:start; }
}
