/* ==========================================================
   KUULAS - colour salon, Punavuori
   World: Finnish coloured art glass on a daylight shelf.
   Glass colours mix by multiply where they overlap, like real glass.
   ========================================================== */
:root {
  --ground: #F2F5F4;
  --white: #FFFFFF;
  --ink: #101418;
  --ink-2: #4B5459;
  --line: rgba(16, 20, 24, 0.12);
  --cobalt: #1E3A8A;
  --amethyst: #7B4FA0;
  --sea: #2E8B7A;
  --sea-deep: #24715F;
  --amber: #C98A2B;
  --smoke: #6E7779;
  --shelf: #E4EAE9;

  --sans: "Albert Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --head-h: 72px;
  --ring: var(--ink);
}

html[data-lang="fi"] body [lang="en"],
html[data-lang="en"] body [lang="fi"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; caret-color: var(--cobalt);
  scrollbar-color: var(--cobalt) var(--ground);
}
::selection { background: rgba(30, 58, 138, 0.22); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; }
svg { width: 1em; height: 1em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 8px 8px 24px;
  border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 1rem; letter-spacing: -0.005em;
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; transition: transform 0.5s var(--ease); }
.btn__ic svg { width: 18px; height: 18px; }
.btn:hover .btn__ic { transform: translate(2px, -2px) scale(1.06); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink .btn__ic { background: rgba(255, 255, 255, 0.14); }
.btn--ink:hover { background: #1F2830; }
.btn--glass { padding: 8px 24px; color: var(--ink); background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px rgba(16, 20, 24, 0.22); }
.btn--glass:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(16, 20, 24, 0.4); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white .btn__ic { background: var(--sea-deep); color: #fff; }

/* ---------- header ---------- */
.head {
  position: sticky; top: 0; z-index: 20; height: var(--head-h);
  display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter);
  background: var(--ground);
}
.mark { display: flex; align-items: baseline; gap: 12px; text-decoration: none; margin-right: auto; }
.mark__word { font-weight: 600; font-size: 1.6rem; letter-spacing: -0.04em; }
.mark__sub { font-size: 0.8125rem; color: var(--ink-2); letter-spacing: 0.02em; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--ink-2); transition: color 0.3s var(--ease); }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.head__end { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; gap: 2px; }
.lang button {
  border: 0; background: transparent; cursor: pointer; min-width: 40px; height: 36px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-2);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: rgba(30, 58, 138, 0.1); color: var(--cobalt); }
.head__book { min-height: 46px; padding-left: 20px; }
.head__book .btn__ic { width: 32px; height: 32px; }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero {
  --pw: clamp(320px, 39vw, 580px);           /* print width */
  --vw: clamp(300px, 31vw, 470px);           /* vessels width */
  --shelf-b: clamp(28px, 4vw, 52px);
  --shelf-h: 40px;
  position: relative; overflow: hidden;
  min-height: calc(var(--pw) * 1.25 + var(--shelf-b) + var(--shelf-h) + 40px);
  padding: clamp(32px, 4.4vw, 64px) var(--gutter) 0;
}
.hero__copy { position: relative; z-index: 2; max-width: 570px; }
.hero__title { font-size: clamp(2.9rem, 5.6vw, 5.5rem); font-weight: 300; line-height: 0.98; letter-spacing: -0.045em; }
.hero__lead { margin-top: 26px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__print {
  position: absolute; margin: 0; right: var(--gutter);
  bottom: calc(var(--shelf-b) + var(--shelf-h) - 8px);
  width: var(--pw); aspect-ratio: 4 / 5;
  box-shadow: 0 30px 50px -30px rgba(16, 20, 24, 0.45);
}
.hero__print img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.label {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-size: 0.8125rem; color: var(--ink-2); letter-spacing: 0.01em;
}
.label__code { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); letter-spacing: 0.04em; }
.hero__print .label {
  position: absolute; right: 14px; top: 14px; padding: 8px 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.9);
}

.vessels {
  position: absolute; z-index: 1; width: var(--vw); height: auto;
  right: calc(var(--gutter) + var(--pw) - var(--vw) * 0.42);
  bottom: calc(var(--shelf-b) + var(--shelf-h) - 14px - var(--vw) * 0.1);
  mix-blend-mode: multiply; overflow: visible;
}
/* glass is thicker, so darker, at its edges: a heavy stroke of the same colour */
.v { mix-blend-mode: multiply; stroke-width: 7; stroke-linejoin: round; stroke-opacity: 0.55; paint-order: fill; }
.v--cobalt { fill: var(--cobalt); fill-opacity: 0.66; stroke: var(--cobalt); }
.v--amethyst { fill: var(--amethyst); fill-opacity: 0.6; stroke: var(--amethyst); }
.v--amber { fill: var(--amber); fill-opacity: 0.66; stroke: var(--amber); }
.v--sea { fill: var(--sea); fill-opacity: 0.62; stroke: var(--sea); }
.vessels__light { mix-blend-mode: normal; }
.vessels__glass { transform-origin: 50% 90%; }

.shelf {
  position: absolute; left: 0; right: 0; bottom: var(--shelf-b); height: var(--shelf-h);
  background: linear-gradient(180deg, var(--shelf) 0 26px, var(--white) 26px 100%);
  box-shadow: 0 18px 24px -14px rgba(16, 20, 24, 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  .vessels .v { animation: settle 1.6s var(--ease-out) both; }
  .vessels .v--amethyst { animation-delay: 0.08s; }
  .vessels .v--amber { animation-delay: 0.16s; }
  .vessels .v--sea { animation-delay: 0.24s; }
  @keyframes settle { from { fill-opacity: 0; stroke-opacity: 0; } }
}

/* ---------- toning ---------- */
.tone {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 88px); align-items: center;
  padding: clamp(80px, 10vw, 150px) var(--gutter);
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
}
.tone__stage {
  --x: 46%; --y: 42%; --d: 48%;
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 5; max-height: 780px;
  background: #fff; cursor: crosshair;
}
.tone__stage img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.tone__lens {
  position: absolute; left: var(--x); top: var(--y); width: var(--d); aspect-ratio: 1;
  margin-left: calc(var(--d) / -2); margin-top: calc(var(--d) / -2);
  border-radius: 50%; cursor: grab; touch-action: none;
}
.tone__lens:active { cursor: grabbing; }
.tone__tint {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--tone, #7F86B5); mix-blend-mode: color; opacity: 0.68;
  transition: background-color 0.7s var(--ease);
}
.tone__rim {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: end center; padding-bottom: 14%;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9), inset 6px 10px 26px rgba(255, 255, 255, 0.35), inset -8px -12px 24px rgba(16, 20, 24, 0.12), 0 22px 36px -18px rgba(16, 20, 24, 0.4);
  background: radial-gradient(120% 90% at 28% 18%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 38%);
  color: var(--ink);
}
.tone__rim svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.tone__lens:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 50%; }

.tone__panel h2 { font-size: clamp(2.3rem, 4.2vw, 3.9rem); }
.tone__intro { margin-top: 22px; color: var(--ink-2); font-size: 1.125rem; max-width: 44ch; }
.tones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tone-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.tone-btn:hover { box-shadow: inset 0 0 0 1px rgba(16, 20, 24, 0.35); }
.tone-btn:active { transform: scale(0.97); }
.tone-btn[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tone-btn__disc {
  width: 30px; height: 30px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), inset 3px 4px 8px rgba(255, 255, 255, 0.45);
  opacity: 0.85;
}
.tone__result { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.tone__code { font-size: clamp(3rem, 6vw, 5rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--tone-ink, var(--cobalt)); transition: color 0.6s var(--ease); }
.tone__desc { margin-top: 14px; max-width: 44ch; font-size: 1.125rem; }
.tone__price { margin-top: 12px; color: var(--ink-2); }
.tone__price b { color: var(--ink); font-weight: 600; }

/* ---------- services ---------- */
.services { background: var(--white); padding: clamp(80px, 10vw, 150px) var(--gutter); }
.services__head { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.services h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.services__head p { color: var(--ink-2); max-width: 48ch; justify-self: end; }
.panes {
  max-width: var(--max); margin: clamp(48px, 6vw, 80px) auto 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start;
}
.pane {
  position: relative; padding: 30px 26px 28px; margin-right: -14px; min-height: 380px;
  background: color-mix(in srgb, var(--c) 13%, transparent);
  mix-blend-mode: multiply;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), inset 2px 0 0 rgba(255, 255, 255, 0.8);
}
.pane:nth-child(2) { margin-top: 48px; }
.pane:nth-child(3) { margin-top: 18px; }
.pane:nth-child(4) { margin-top: 70px; margin-right: 0; }
.pane--tall { min-height: 460px; }
.pane h3 { font-size: 1.6rem; font-weight: 400; letter-spacing: -0.03em; color: color-mix(in srgb, var(--c) 70%, #000); }
.pane ul { list-style: none; margin: 22px 0 0; padding: 0; }
.pane li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 0; border-top: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.pane li > span { display: grid; }
.pane small { font-size: 0.8125rem; color: var(--ink-2); }
.pane b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- work ---------- */
.work { padding: clamp(80px, 10vw, 150px) var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.work h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); max-width: 14ch; }
.work__grid {
  list-style: none; padding: 0; margin: clamp(40px, 5vw, 72px) 0 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px);
}
.work__item img { width: 100%; object-fit: cover; }
.work__item .label { margin-top: 12px; }
.work__item--a { grid-column: 1 / span 5; grid-row: span 2; }
.work__item--a img { aspect-ratio: 4 / 5.4; }
.work__item--b { grid-column: 6 / span 3; align-self: end; }
.work__item--b img { aspect-ratio: 3 / 4; }
.work__item--c { grid-column: 9 / span 4; margin-top: clamp(0px, 8vw, 120px); }
.work__item--c img { aspect-ratio: 4 / 5; }
.work__item--d { grid-column: 6 / span 7; }
.work__item--d img { aspect-ratio: 16 / 8; object-position: 50% 40%; }

/* ---------- team ---------- */
.team { background: var(--white); padding: clamp(80px, 10vw, 150px) var(--gutter); }
.team h2 { max-width: var(--max); margin: 0 auto; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.team__list { list-style: none; padding: 0; max-width: var(--max); margin: clamp(40px, 5vw, 72px) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 44px); }
.person { position: relative; }
.person:nth-child(2) { margin-top: clamp(0px, 5vw, 80px); }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person:first-child img { object-position: 62% 50%; }
.person::before { /* a pane of the person's colour leaning on the photo */
  content: ""; position: absolute; z-index: 1; right: -12px; top: 22px; width: 34%; aspect-ratio: 3 / 5;
  background: var(--c); opacity: 0.5; mix-blend-mode: multiply; pointer-events: none;
}
.person h3 { margin-top: 20px; font-size: 1.9rem; font-weight: 400; }
.person p { margin-top: 6px; color: var(--ink-2); max-width: 34ch; }

/* ---------- consultation ---------- */
.consult { background: var(--sea-deep); color: #fff; padding: clamp(80px, 10vw, 140px) var(--gutter); --ring: #fff; position: relative; overflow: hidden; }
.consult::before, .consult::after { content: ""; position: absolute; mix-blend-mode: multiply; pointer-events: none; }
.consult::before { right: -6%; top: -30%; width: 38vw; height: 160%; background: var(--cobalt); opacity: 0.45; transform: skewX(-12deg); }
.consult::after { right: 22%; top: -20%; width: 14vw; height: 140%; background: var(--amber); opacity: 0.3; transform: skewX(-12deg); }
.consult__in { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.consult h2 { font-size: clamp(2.6rem, 6vw, 5.5rem); max-width: 12ch; }
.consult p { margin-top: 24px; max-width: 48ch; font-size: 1.1875rem; color: #E1F0EC; }
.consult .btn { margin-top: 34px; }

/* ---------- contact ---------- */
.contact {
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 96px);
}
.contact h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.contact__lead { margin-top: 20px; max-width: 46ch; color: var(--ink-2); font-size: 1.125rem; }
.contact__facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.contact__facts li { display: flex; align-items: center; gap: 12px; }
.contact__facts svg { width: 20px; height: 20px; color: var(--cobalt); }
.contact__facts a { font-weight: 600; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact__hours { align-self: end; }
.contact__hours h3 { font-size: 1.6rem; font-weight: 400; }
.contact__status { margin-top: 8px; font-weight: 600; color: var(--sea-deep); }
.contact__status.is-closed { color: var(--ink-2); }
.hours { width: 100%; border-collapse: collapse; margin-top: 18px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 12px 0; border-top: 1px solid var(--line); font-weight: 400; }
.hours th { text-align: left; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; color: var(--cobalt); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #C9D0D3; padding: clamp(56px, 7vw, 96px) var(--gutter) 32px; --ring: #fff; }
.foot__word { max-width: var(--max); margin: 0 auto; font-weight: 300; font-size: clamp(5rem, 20vw, 18rem); line-height: 0.8; letter-spacing: -0.06em; color: var(--ground); }
.foot__row { max-width: var(--max); margin: 40px auto 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a { color: #fff; }
.foot__demo { max-width: var(--max); margin: 36px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8125rem; color: #8E989D; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .panes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .pane:nth-child(n) { margin-top: 0; margin-right: -14px; }
  .pane:nth-child(2n) { margin-right: 0; margin-top: 36px; }
}
@media (max-width: 960px) {
  .menu-btn {
    display: grid; place-items: center; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer;
  }
  .menu-btn__l { position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease); }
  .menu-btn__l:first-child { transform: translateY(-4px); }
  .menu-btn__l:nth-child(2) { transform: translateY(4px); }
  .menu-btn[aria-expanded="true"] .menu-btn__l:first-child { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__l:nth-child(2) { transform: rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--head-h) 0 0; z-index: 19; flex-direction: column; gap: 4px; padding: 32px var(--gutter);
    background: rgba(242, 245, 244, 0.98); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .nav a { font-size: 2.4rem; font-weight: 300; letter-spacing: -0.04em; color: var(--ink); padding: 6px 0; transform: translateY(20px); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.7s var(--ease); }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease); }
  .nav.is-open a { transform: none; opacity: 1; }
  .nav.is-open a:nth-child(2) { transition-delay: 0.05s; }
  .nav.is-open a:nth-child(3) { transition-delay: 0.1s; }
  .nav.is-open a:nth-child(4) { transition-delay: 0.15s; }

  .hero { --pw: 72vw; --vw: 58vw; min-height: 0; padding-bottom: calc(var(--shelf-b) + var(--shelf-h) - 8px); }
  .hero__print { position: relative; right: auto; bottom: auto; margin: 40px 0 0 auto; }
  .vessels { left: 2vw; right: auto; }
  .tone { grid-template-columns: 1fr; }
  .tone__stage { max-height: none; }
  .services__head { grid-template-columns: 1fr; }
  .services__head p { justify-self: start; }
  .team__list { grid-template-columns: 1fr; max-width: 560px; margin-left: 0; }
  .person:nth-child(2) { margin-top: 0; }
  .person + .person { margin-top: 28px; }
  .contact { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work__item--a, .work__item--b, .work__item--c, .work__item--d { grid-column: auto; grid-row: auto; margin-top: 0; align-self: start; }
  .work__item--a, .work__item--d { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --head-h: 64px; }
  .mark__sub { display: none; }
  .head { gap: 12px; }
  .head__book { display: none; }
  .hero { --pw: 78vw; --vw: 64vw; }
  .hero__print .label { left: 10px; right: auto; top: 10px; padding: 6px 10px; font-size: 0.75rem; max-width: 74%; }
  .panes { grid-template-columns: 1fr; }
  .pane:nth-child(n) { margin: 0 0 -10px; min-height: 0; }
  .work__grid { grid-template-columns: 1fr; }
  .work__item--a img { aspect-ratio: 4 / 5; }
  .work__item--d img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
