/* ===========================================================
   Wäinölä — shared styles
   "well-kept family scrapbook": warm paper, literary serif,
   handwritten captions, taped & tilted photos, Alfa-red accent
   =========================================================== */

:root{
  --paper:        #f3ece0;
  --paper-2:      #ece2d1;
  --card:         #fbf7ef;
  --ink:          #2b2620;
  --ink-soft:     #6a6053;
  --ink-faint:    #9a9084;
  --line:         rgba(43,38,32,0.16);
  --line-soft:    rgba(43,38,32,0.09);

  --alfa:         #9c2a21;
  --alfa-deep:    #7c2019;
  --green:        #445a45;
  --gold:         #b07d2a;

  --serif:  'Spectral', Georgia, 'Times New Roman', serif;
  --hand:   'Caveat', 'Segoe Script', cursive;
  --label:  'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1100px;
  --shadow-photo: 0 1px 2px rgba(43,38,32,.12), 0 14px 30px -16px rgba(43,38,32,.45);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--serif);
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.55), transparent 38%),
    radial-gradient(circle at 85% 78%, rgba(176,125,42,.06), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  line-height:1.6;
  font-size:18px;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:var(--alfa); text-decoration-thickness:1px; text-underline-offset:2px; }

/* ---------- shared layout ---------- */
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }
.narrow{ max-width:760px; }

.eyebrow{
  font-family:var(--label);
  text-transform:uppercase;
  letter-spacing:.22em;
  font-size:12px;
  font-weight:600;
  color:var(--alfa);
}
.eyebrow.green{ color:var(--green); }

h1,h2,h3{ font-weight:600; line-height:1.1; letter-spacing:-.01em; margin:0; }
h1{ font-size:clamp(40px,6vw,68px); font-weight:500; }
h2{ font-size:clamp(28px,3.6vw,40px); }
h3{ font-size:22px; }

p{ margin:0 0 1.1em; }
.lead{ font-size:1.22em; color:#3c352c; }
.muted{ color:var(--ink-soft); }
em.cap{ font-style:italic; }

/* ---------- top bar / nav ---------- */
.topbar{
  border-bottom:1px solid var(--line);
  background:linear-gradient(var(--paper),var(--paper));
  position:sticky; top:0; z-index:40;
  backdrop-filter:blur(3px);
}
.topbar .wrap{
  display:flex; align-items:center; justify-content:space-between;
  gap:18px; padding-top:16px; padding-bottom:16px;
}
.brand{ display:flex; align-items:baseline; gap:12px; text-decoration:none; color:var(--ink); }
.brand .mark{
  font-family:var(--serif); font-weight:600; font-size:25px; letter-spacing:.01em;
}
.brand .mark b{ color:var(--alfa); font-weight:600; }
.brand .sub{
  font-family:var(--label); font-size:10.5px; letter-spacing:.24em;
  text-transform:uppercase; color:var(--ink-faint);
}
.nav{ display:flex; gap:6px; align-items:center; }
.nav a{
  font-family:var(--label); font-size:13px; font-weight:600;
  letter-spacing:.06em; text-transform:uppercase;
  color:var(--ink-soft); text-decoration:none;
  padding:8px 14px; border-radius:999px; transition:.18s;
}
.nav a:hover{ color:var(--ink); background:rgba(43,38,32,.06); }
.nav a.active{ color:var(--alfa); }
.nav a.active::after{
  content:""; display:block; height:2px; background:var(--alfa);
  margin:5px 6px 0; border-radius:2px;
}

/* ---------- breadcrumb ---------- */
.crumb{
  font-family:var(--label); font-size:12px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--ink-faint); padding:22px 0 0;
}
.crumb a{ color:var(--ink-soft); text-decoration:none; }
.crumb a:hover{ color:var(--alfa); }

/* ---------- scrapbook photo frame ---------- */
.photo{
  background:#fff;
  padding:11px 11px 14px;
  box-shadow:var(--shadow-photo);
  position:relative;
  border-radius:2px;
}
.photo img,
.photo .ph{ display:block; width:100%; }
.photo img{ height:auto; object-fit:cover; }
.photo figcaption,
.caption{
  font-family:var(--hand);
  font-size:22px;
  line-height:1.15;
  color:#4a4136;
  text-align:center;
  padding:10px 6px 2px;
}
.photo.tilt-l{ transform:rotate(-1.7deg); }
.photo.tilt-r{ transform:rotate(1.6deg); }
.photo.tilt-l2{ transform:rotate(-.8deg); }

/* inside a .photo frame, the .ph fills the frame's content area */
.photo .ph{ min-height:0; }

/* tape strip */
.tape{
  position:absolute; top:-12px; left:50%; transform:translateX(-50%) rotate(-2deg);
  width:104px; height:28px;
  background:linear-gradient(135deg, rgba(214,196,150,.55), rgba(224,210,170,.32));
  border-left:1px dashed rgba(255,255,255,.4);
  border-right:1px dashed rgba(255,255,255,.4);
  box-shadow:0 1px 1px rgba(0,0,0,.05);
  z-index:5;
}
.tape.r{ left:auto; right:18px; transform:rotate(7deg); width:84px; }
.tape.l{ left:18px; transform:rotate(-7deg); width:84px; }

/* ---------- image placeholder ---------- */
.ph{
  background:rgba(43,38,32,.06);
  border:1.5px dashed rgba(43,38,32,.18);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:var(--ink-faint);
  font-family:var(--label);
  font-size:12px;
  letter-spacing:.05em;
  line-height:1.4;
  text-align:center;
  padding:30px 20px;
  min-height:120px;
  width:100%;
}
.ph::before{
  content:'';
  display:block;
  width:34px;
  height:34px;
  flex-shrink:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9084' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
}

/* ---------- buttons / pills ---------- */
.btn{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--label); font-size:13px; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase;
  padding:12px 22px; border-radius:999px; cursor:pointer;
  text-decoration:none; border:1px solid var(--alfa);
  color:#fff; background:var(--alfa); transition:.18s;
}
.btn:hover{ background:var(--alfa-deep); border-color:var(--alfa-deep); }
.btn.ghost{ background:transparent; color:var(--alfa); }
.btn.ghost:hover{ background:rgba(156,42,33,.08); }
.btn .arr{ transition:transform .18s; }
.btn:hover .arr{ transform:translateX(3px); }

/* ---------- dividers & rule ---------- */
.rule{ height:1px; background:var(--line); border:0; margin:0; }
.rule.dash{ height:0; border-top:1px dashed var(--line); }
.section{ padding:72px 0; }
.section.tight{ padding:48px 0; }

/* ---------- footer ---------- */
.foot{
  border-top:1px solid var(--line);
  background:var(--paper-2);
  margin-top:40px;
}
.foot .wrap{
  display:flex; flex-wrap:wrap; gap:30px; justify-content:space-between;
  padding-top:46px; padding-bottom:46px;
}
.foot .col h4{
  font-family:var(--label); font-size:11px; letter-spacing:.2em;
  text-transform:uppercase; color:var(--ink-faint); margin:0 0 12px; font-weight:700;
}
.foot a{ color:var(--ink-soft); text-decoration:none; display:block; padding:3px 0; }
.foot a:hover{ color:var(--alfa); }
.foot .mark{ font-size:24px; font-weight:600; }
.foot .mark b{ color:var(--alfa); }
.foot small{ color:var(--ink-faint); font-family:var(--label); letter-spacing:.04em; }

/* ---------- misc helpers ---------- */
.kicker-hand{ font-family:var(--hand); font-size:30px; color:var(--alfa); transform:rotate(-2deg); display:inline-block; }
.stamp{
  font-family:var(--label); font-size:11px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--alfa);
  border:2px solid var(--alfa); border-radius:6px; padding:5px 10px;
  transform:rotate(-5deg); display:inline-block; opacity:.85;
}
.divider-orn{ text-align:center; color:var(--ink-faint); letter-spacing:.6em; font-size:16px; }

/* ============================================================
   HOME PAGE
   ============================================================ */
.hero{ padding:64px 0 56px; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.hero-copy .kicker-hand{ margin-bottom:2px; }
.hero-copy h1{ margin:2px 0 18px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-top:26px; }
.hero-photo{ max-width:460px; justify-self:end; width:100%; }

.name-grid{ display:grid; grid-template-columns:1.4fr .9fr; gap:54px; align-items:start; }
.quote-card{
  background:var(--card); border:1px solid var(--line-soft);
  border-radius:4px; padding:30px 32px 28px; position:relative;
  box-shadow:0 14px 30px -22px rgba(43,38,32,.5);
}
.quote-mark{ font-family:var(--serif); font-size:64px; line-height:.5; color:var(--alfa); opacity:.4; }
.quote{ font-style:italic; font-size:1.18em; color:#3c352c; margin:14px 0 16px; }
.quote-by{ font-family:var(--label); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-faint); }

.strip-bg{ background:var(--paper-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.strip-head{ margin-bottom:34px; }
.strip-head .eyebrow{ display:block; margin-bottom:8px; }
.strip{ display:grid; grid-template-columns:repeat(4,1fr); gap:30px; }

.teasers{ display:grid; grid-template-columns:1fr 1fr; gap:44px; }
.teaser{ text-decoration:none; color:inherit; display:block; transition:transform .2s; }
.teaser:hover{ transform:translateY(-4px); }
.teaser-photo{ margin-bottom:22px; }
.teaser-body .eyebrow{ display:block; margin-bottom:8px; }
.teaser-body h3{ font-size:27px; margin-bottom:8px; }
.teaser-go{ font-family:var(--label); font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--alfa); display:inline-block; margin-top:6px; }

/* ============================================================
   CARS PAGE (AUTOT)
   ============================================================ */
.auto-intro .kicker-hand{ display:block; margin-bottom:2px; }
.auto-intro h1{ margin:0 0 16px; }
.legend{ display:flex; gap:22px; align-items:center; font-family:var(--label); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); margin-top:24px; }
.legend-dot{ width:11px; height:11px; border-radius:50%; background:var(--c); display:inline-block; margin-right:7px; margin-left:14px; vertical-align:-1px; }
.legend-dot:first-child{ margin-left:0; }

.feature{ background:var(--paper-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:64px 0; }
.feature-head{ text-align:center; margin-bottom:34px; }
.feature-head .stamp{ margin-bottom:14px; }
.feature-head h2{ margin-top:6px; }
.hand-inline{ font-family:var(--hand); color:var(--alfa); font-size:1.05em; }
.feature-sub{ font-family:var(--label); letter-spacing:.06em; text-transform:uppercase; font-size:13px; margin-top:10px; }
.feature-hero{ max-width:820px; margin:0 auto 40px; cursor:zoom-in; }
.feature-grid{ display:grid; grid-template-columns:1.2fr .8fr; gap:46px; align-items:start; max-width:920px; margin:0 auto 56px; }

.spec{ width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line-soft); border-radius:4px; overflow:hidden; }
.spec th,.spec td{ text-align:left; padding:13px 18px; border-bottom:1px solid var(--line-soft); font-size:15px; vertical-align:top; }
.spec tr:last-child th,.spec tr:last-child td{ border-bottom:0; }
.spec th{ font-family:var(--label); font-weight:600; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-faint); width:42%; white-space:nowrap; }
.spec td{ color:var(--ink); }

.gallery-head{ text-align:center; margin:0 auto 26px; }
.gallery-head .eyebrow{ display:block; margin-bottom:8px; }
.gallery-head h3{ margin-bottom:6px; }
.gallery{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.g-cell{ background:#fff; padding:7px; box-shadow:var(--shadow-photo); border-radius:2px; cursor:zoom-in; transition:transform .15s; }
.g-cell:hover{ transform:translateY(-3px) rotate(-.6deg); }
.g-cell img{ display:block; width:100%; aspect-ratio:3/2; object-fit:cover; }
.g-cell .ph{ aspect-ratio:3/2; min-height:0; padding:12px 8px; }
.g-cell .ph::before{ width:22px; height:22px; }

.stable-head{ margin-bottom:36px; }
.stable-head .eyebrow{ display:block; margin-bottom:8px; }
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:40px; }
.card-photo{ margin-bottom:22px; }
.decade{ font-family:var(--label); font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--c); display:inline-block; margin-bottom:8px; }
.car-body h3{ font-size:23px; margin-bottom:10px; }
.muted-inline{ color:var(--ink-faint); font-weight:400; font-size:.8em; }
.mini-spec{ margin:18px 0 0; display:grid; grid-template-columns:1fr 1fr; gap:0; border-top:1px solid var(--line-soft); }
.mini-spec div{ padding:11px 0; border-bottom:1px solid var(--line-soft); }
.mini-spec div:nth-child(odd){ padding-right:14px; }
.mini-spec dt{ font-family:var(--label); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-faint); margin:0 0 3px; }
.mini-spec dd{ margin:0; font-size:15px; }

/* Lightbox */
.lightbox{ position:fixed; inset:0; z-index:100; background:rgba(28,24,20,.92); display:flex; align-items:center; justify-content:center; }
.lightbox[hidden]{ display:none !important; }
.lb-stage{ max-width:86vw; max-height:84vh; display:flex; align-items:center; justify-content:center; }
.lb-img{ max-width:86vw; max-height:84vh; border:9px solid #fff; box-shadow:0 30px 80px rgba(0,0,0,.6); border-radius:2px; }
.lb-empty{ background:#fff; color:var(--ink-soft); padding:60px 80px; border-radius:3px; text-align:center; font-family:var(--label); }
.lb-empty span{ display:block; font-size:18px; margin-bottom:8px; color:var(--ink); }
.lb-close{ position:absolute; top:22px; right:26px; background:none; border:0; color:#fff; font-size:30px; cursor:pointer; opacity:.85; line-height:1; }
.lb-nav{ position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.12); border:0; color:#fff; width:54px; height:54px; border-radius:50%; font-size:34px; cursor:pointer; transition:.15s; }
.lb-nav:hover{ background:rgba(255,255,255,.24); }
.lb-prev{ left:24px; }
.lb-next{ right:24px; }

/* ============================================================
   GTV-2 PAGE
   ============================================================ */
.work-list{
  margin:18px 0 0;
  padding:0 0 0 0;
  list-style:none;
  border-top:1px solid var(--line-soft);
}
.work-list li{
  padding:10px 0 10px 22px;
  border-bottom:1px solid var(--line-soft);
  font-size:15px;
  color:var(--ink);
  position:relative;
}
.work-list li::before{
  content:"—";
  position:absolute;
  left:0;
  color:var(--alfa);
  font-weight:600;
}

/* ============================================================
   SAMMATTI PAGE
   ============================================================ */
.sammatti{ --accent:var(--green); }
.sam-hero{ display:grid; grid-template-columns:1.25fr .75fr; gap:54px; align-items:center; }
.sam-hero-copy .kicker-hand{ display:block; margin-bottom:2px; }
.sam-hero-copy h1{ margin:0 0 18px; }
.sam-hero-photo{ max-width:360px; justify-self:end; width:100%; }
.sam-jump{ display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.sam-jump a{
  font-family:var(--label); font-size:12px; font-weight:600; letter-spacing:.06em;
  text-transform:uppercase; text-decoration:none; color:var(--green);
  border:1px solid rgba(68,90,69,.4); border-radius:999px; padding:8px 16px; transition:.16s;
}
.sam-jump a:hover{ background:rgba(68,90,69,.1); }

.tl-bg{ background:var(--paper-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.tl{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; padding:34px 28px; }
.tl-item{ text-align:center; position:relative; }
.tl-item:not(:last-child)::after{ content:"·····"; position:absolute; right:-16px; top:6px; color:var(--ink-faint); letter-spacing:2px; }
.tl-year{ display:block; font-family:var(--serif); font-weight:600; font-size:34px; color:var(--green); line-height:1; margin-bottom:8px; }
.tl-txt{ font-size:14px; color:var(--ink-soft); }

.land-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:center; }
.land-grid.reverse .land-photo{ order:2; }
.land-photo{ width:100%; }
.land-copy .eyebrow{ display:block; margin-bottom:10px; }
.land-copy h2{ margin-bottom:16px; }
.note{ font-family:var(--label); font-size:13px; color:var(--green); background:rgba(68,90,69,.07); border-left:3px solid var(--green); padding:12px 16px; border-radius:0 4px 4px 0; }

.visit{ background:var(--green); color:#f3ece0; text-align:center; padding:70px 0; margin-top:30px; }
.visit-in{ max-width:660px; }
.visit .divider-orn{ color:rgba(243,236,224,.5); margin-bottom:18px; }
.visit h2{ color:#fff; margin-bottom:14px; }
.visit .muted{ color:rgba(243,236,224,.82); margin-bottom:28px; }
.visit .btn.ghost{ color:#fff; border-color:rgba(255,255,255,.6); }
.visit .btn.ghost:hover{ background:rgba(255,255,255,.12); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:860px){
  .hero-grid,.name-grid,.teasers{ grid-template-columns:1fr; gap:34px; }
  .hero-photo{ justify-self:center; }
  .strip{ grid-template-columns:1fr 1fr; gap:22px; }

  .feature-grid{ grid-template-columns:1fr; gap:28px; }
  .gallery{ grid-template-columns:repeat(3,1fr); }
  .cards{ grid-template-columns:1fr; gap:34px; }

  .sam-hero{ grid-template-columns:1fr; gap:34px; }
  .sam-hero-photo{ justify-self:center; max-width:320px; }
  .land-grid,.land-grid.reverse{ grid-template-columns:1fr; gap:30px; }
  .land-grid.reverse .land-photo{ order:0; }
  .tl{ grid-template-columns:1fr 1fr; gap:28px 24px; }
  .tl-item::after{ display:none; }
}
@media (max-width:720px){
  body{ font-size:17px; }
  .nav{ gap:0; }
  .nav a{ padding:7px 9px; font-size:11.5px; letter-spacing:.03em; }
  .brand .sub{ display:none; }
  .section{ padding:52px 0; }
}
@media (max-width:520px){
  .gallery{ grid-template-columns:repeat(2,1fr); }
  .lb-nav{ width:44px; height:44px; }
}
