/* ── KIRKAS ───────────────────────────────────────────────────────────────
   Direction A. Warm, modern, image-led. Selecta throughout, one weight step
   between headline and body, a scarf-yellow pill as the only loud element.
   Everything sits on a soft sand paper; photographs are the colour.
   ─────────────────────────────────────────────────────────────────────── */

:root {
  --paper:   #F3EFE7;
  --paper-2: #EAE4D8;
  --ink:     #191B1C;
  --ink-60:  #5C5F60;
  --ink-30:  #A5A49F;
  --line:    #D8D2C4;
  --blue:    #12376F;   /* He-Si scarf blue */
  --blue-lt: #E4EAF3;
  --sun:     #F0C33C;   /* the yellow lily on the scarf */
  --red:     #C0392B;   /* the scarf's edge stripe */

  --pad: clamp(20px, 5vw, 72px);
  --r: 18px;
  --shell: 1480px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Selecta', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }

/* ── type ─────────────────────────────────────────────────────────────── */
.h1 { font-size: clamp(38px, 6.6vw, 92px); font-weight: 500; line-height: .98; letter-spacing: -0.035em; }
.h2 { font-size: clamp(28px, 3.4vw, 50px); font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; }
.h3 { font-size: clamp(19px, 1.5vw, 24px); font-weight: 500; line-height: 1.2;  letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 1.5vw, 23px); line-height: 1.45; letter-spacing: -0.015em; font-weight: 300; }
.small { font-size: 14px; line-height: 1.5; }
.eyebrow {
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-60);
}
.muted { color: var(--ink-60); }

/* ── chrome ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  transition: background .35s ease, color .35s, box-shadow .35s, backdrop-filter .35s;
  color: #fff;
}
.nav.solid {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 14.5px; font-weight: 400; opacity: .82;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sun); color: #191B1C;
  padding: 10px 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; text-decoration: none; letter-spacing: -0.01em;
  transition: transform .2s cubic-bezier(.2,.8,.3,1), background .2s;
  white-space: nowrap;
}
.pill:hover { transform: translateY(-1.5px); background: #F5CE58; }
.pill.ghost { background: transparent; border: 1px solid currentColor; color: inherit; }
.pill.ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.burger { display: none; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(94svh, 900px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,12,18,.62) 0%, rgba(8,12,18,.1) 30%, rgba(8,12,18,.2) 55%, rgba(6,10,16,.8) 100%);
}
.hero-body { position: relative; z-index: 2; color: #fff; width: 100%; padding-bottom: clamp(34px, 6vh, 76px); }
.hero .h1 { max-width: 15ch; text-wrap: balance; }
.hero-sub { margin-top: 20px; max-width: 46ch; opacity: .92; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: clamp(32px, 6vh, 56px); padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.28);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 28px;
}
.hero-meta div { font-size: 14px; opacity: .9; }
.hero-meta b { display: block; font-weight: 500; font-size: 17px; opacity: 1; letter-spacing: -0.015em; }

/* ── generic section ──────────────────────────────────────────────────── */
section { padding-block: clamp(64px, 9vw, 132px); }
.sec-head { display: grid; gap: 18px; max-width: 62ch; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── ticker / ajankohtaista ───────────────────────────────────────────── */
.now {
  background: var(--blue); color: #fff;
  padding-block: clamp(26px, 3vw, 40px);
}
.now-in { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 3vw, 46px); align-items: center; }
.now .eyebrow { color: rgba(255,255,255,.65); }
.now p { font-size: clamp(17px, 1.5vw, 22px); font-weight: 300; letter-spacing: -0.015em; line-height: 1.35; }

/* ── age cards ────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--paper-2); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; min-height: 300px;
  transition: transform .4s cubic-bezier(.2,.8,.3,1);
}
.card:hover { transform: translateY(-4px); }
.card-img { position: absolute; inset: 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.3,1); }
.card:hover .card-img img { transform: scale(1.045); }
.card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(178deg, rgba(12,16,20,.14) 20%, rgba(12,16,20,.82) 100%);
}
.card-body { position: relative; z-index: 2; margin-top: auto; padding: 22px; color: #fff; }
.card-age { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.card-body h3 { margin-top: 6px; }
.card-note { margin-top: 8px; font-size: 14px; opacity: .82; }

/* ── age detail (expander) ────────────────────────────────────────────── */
.detail { border-top: 1px solid var(--line); }
.detail summary {
  list-style: none; cursor: pointer; padding-block: 24px;
  display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 20px; align-items: baseline;
}
.detail summary::-webkit-details-marker { display: none; }
.detail summary:hover .d-name { color: var(--blue); }
.d-age { font-variant-numeric: tabular-nums; color: var(--ink-60); font-size: 15px; }
.d-name { font-size: clamp(21px, 2vw, 30px); font-weight: 500; letter-spacing: -0.025em; transition: color .2s; }
.d-plus { color: var(--ink-30); font-size: 22px; line-height: 1; transition: transform .3s; }
.detail[open] .d-plus { transform: rotate(45deg); }
.d-body {
  padding: 0 0 34px; display: grid; gap: 30px;
  grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1fr);
}
.d-body > :first-child { grid-column: 2 / 3; }
.d-ideals li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.d-ideals li:first-child { border-top: 1px solid var(--line); }
.d-promise {
  font-family: 'Selecta', system-ui, sans-serif; font-weight: 400; font-style: normal;
  font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; letter-spacing: -0.01em;
  color: var(--blue);
}
.d-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px;
  background: var(--blue-lt); color: var(--blue);
}

/* ── split feature ────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(24px, 4vw, 70px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 110px); }
.split.flip > figure { order: 2; }
.split figure { position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.split figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-txt { display: grid; gap: 18px; align-content: center; }
.split-txt .h2 { max-width: 16ch; }
.split-txt p { max-width: 46ch; }

/* ── steps ────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; margin-top: 44px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.step { background: var(--paper); padding: 30px 26px 34px; display: grid; gap: 10px; align-content: start; }
.step-n { font-variant-numeric: tabular-nums; color: var(--sun); font-size: 30px; font-weight: 500; letter-spacing: -0.03em; -webkit-text-stroke: .6px var(--ink-30); }
.step p { font-size: 15px; color: var(--ink-60); }

/* ── table ────────────────────────────────────────────────────────────── */
.tbl { width: 100%; margin-top: 34px; font-size: 15.5px; }
.tbl th { text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-60); padding-bottom: 12px; }
.tbl td { padding: 15px 14px 15px 0; border-top: 1px solid var(--line); vertical-align: baseline; }
.tbl td:first-child { font-weight: 500; }
.tbl tr td:last-child { color: var(--ink-60); }

/* ── contacts ─────────────────────────────────────────────────────────── */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 2px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.person { background: var(--paper); padding: 24px; display: grid; gap: 3px; align-content: start; }
.person .eyebrow { margin-bottom: 6px; }
.person a { color: var(--blue); text-decoration: none; font-size: 15px; word-break: break-all; }
.person a:hover { text-decoration: underline; }

/* ── yell ─────────────────────────────────────────────────────────────── */
.yell { background: var(--ink); color: var(--paper); text-align: center; }
.yell-lines { font-size: clamp(30px, 5.6vw, 76px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; }
.yell-lines span { display: block; }
.yell-lines span:nth-child(2n) { color: var(--sun); }

/* ── footer ───────────────────────────────────────────────────────────── */
footer { background: var(--paper-2); padding-block: clamp(46px, 6vw, 78px) 34px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 34px; }
.foot-grid h4 { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-60); font-weight: 500; margin-bottom: 12px; }
.foot-grid li { padding: 4px 0; font-size: 15px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.colophon { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 30px; font-size: 12.5px; color: var(--ink-60); }
.colophon a { color: var(--ink-60); }

/* ── reveal ───────────────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.3,1); }
.rv.in { opacity: 1; transform: none; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: grid; position: fixed; inset: 56px 0 auto 0; gap: 0;
    background: var(--paper); color: var(--ink); padding: 8px var(--pad) 22px;
    box-shadow: 0 20px 40px rgba(0,0,0,.1);
  }
  .nav-links.open a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; opacity: 1; }
  .burger { display: grid; gap: 5px; margin-left: auto; padding: 8px; }
  .burger i { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s; }
  .nav .pill { display: none; }
  .now-in { grid-template-columns: 1fr; }
  .d-body { grid-template-columns: 1fr; }
  .d-body > :first-child { grid-column: 1; }
  .detail summary { grid-template-columns: 4rem 1fr auto; }
  .split.flip > figure { order: 0; }
}
