/* ============================================================
   FOTO PALOSAARI — global styles
   Brand: Vetelin syksy (paletti A)
   Style: Vintage Analog + Editorial Magazine
   See design-system/foto-palosaari/MASTER.md
   ============================================================ */

:root {
  /* Palette */
  --bg: #f7f1e8;
  --bg-card: #fbf6ec;
  --bg-dark: #2d2520;
  --ink: #2d2520;
  --muted: #5a4d40;
  --accent: #a87856;
  --accent-deep: #8e6444;
  --rose: #c89a7e;
  --info: #4a7b7c;
  --line: rgba(58, 46, 34, 0.10);
  --line-2: rgba(58, 46, 34, 0.20);

  /* Type scale */
  --fs-hero: clamp(3rem, 9vw, 7.5rem);
  --fs-h1: clamp(2rem, 4.5vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 2.6vw, 2.25rem);
  --fs-h3: 1.375rem;
  --fs-body: 1rem;
  --fs-meta: 0.8125rem;
  --fs-tag: 0.75rem;
  --fs-dropcap: 4em;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 120px;

  /* Shadows (warm-toned) */
  --shadow-paper: 0 1px 2px rgba(58,46,34,0.05), 0 4px 12px rgba(58,46,34,0.04);
  --shadow-card: 0 6px 20px rgba(58,46,34,0.08);
  --shadow-card-hover: 0 14px 32px rgba(58,46,34,0.16);
  --shadow-polaroid: 0 4px 14px rgba(58,46,34,0.12), 0 2px 4px rgba(58,46,34,0.08);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
@media (max-width: 640px) { body { font-size: 1.0625rem; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--ink); color: var(--bg); padding: 12px 18px;
  font-weight: 500;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Film grain overlay (global) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Layout */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  position: relative;
  z-index: 2;
}

/* Typography */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: var(--fs-tag);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}
.h-display, h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.5px;
}
h1 { font-size: var(--fs-h1); line-height: 1.15; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
.signature {
  font-family: 'Caveat', cursive;
  font-size: 1.75rem;
  color: var(--accent);
  font-weight: 400;
}

/* Sepia rule divider */
.rule {
  width: 56px; height: 1px;
  background: var(--accent);
  margin: var(--space-md) 0;
  border: none;
}
.rule-center { margin-left: auto; margin-right: auto; }

/* Link with expanding underline */
.link {
  color: var(--accent);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 300ms ease, color 200ms ease;
  padding-bottom: 2px;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }

/* Focus state */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  padding: var(--space-md) 0;
  position: relative;
  z-index: 10;
  background: rgba(251, 246, 236, 0.86);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.nav-brand {
  display: flex; align-items: center; gap: var(--space-md);
  text-decoration: none; color: inherit;
}
.nav-brand img {
  width: auto; height: 84px;
  object-fit: contain;
  display: block;
}
@media (max-width: 768px) {
  .nav-brand img { height: 64px; }
}
.nav-links {
  display: flex; align-items: center; gap: var(--space-xl);
  list-style: none;
}
.nav-links a {
  font-size: 0.9375rem;
  letter-spacing: 0.4px;
  padding: 8px 4px;
  transition: color 200ms ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ============================================================
   Hero (asymmetric editorial)
   ============================================================ */
.hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-4xl);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-2xl);
  align-items: end;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}
.hero-text { position: relative; z-index: 2; padding-top: var(--space-3xl); }
.hero-title {
  font-size: var(--fs-hero);
  line-height: 1;
  letter-spacing: -2px;
  margin: var(--space-md) 0 var(--space-lg);
  color: var(--ink);
}
.hero-title .word { display: block; }
.hero-logo {
  display: block;
  width: clamp(220px, 32vw, 380px);
  height: auto;
  margin-left: -8px;
}
@media (max-width: 768px) {
  .hero-logo { margin: 0 auto; }
}

/* "Developing photo" reveal — runs once on load */
.develop-step {
  opacity: 0;
  filter: blur(6px) sepia(0.7) brightness(0.75);
  transform: translateY(8px);
  animation: develop-text 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.develop-step-1 { animation-delay: 0.05s; }
.develop-step-2 { animation-delay: 0.20s; }
.develop-step-3 { animation-delay: 0.40s; }
.develop-step-4 { animation-delay: 0.65s; }
.develop-step-5 { animation-delay: 0.85s; }

@keyframes develop-text {
  0%   { opacity: 0; filter: blur(6px) sepia(0.7) brightness(0.75); transform: translateY(8px); }
  60%  { opacity: 0.92; filter: blur(0.6px) sepia(0.3) brightness(0.95); transform: translateY(2px); }
  100% { opacity: 1; filter: blur(0) sepia(0) brightness(1); transform: translateY(0); }
}

@keyframes develop-image {
  0%   { opacity: 0; filter: blur(10px) sepia(1) brightness(0.55) saturate(0.5) contrast(0.9); }
  55%  { opacity: 0.85; filter: blur(2px) sepia(0.5) brightness(0.92) saturate(0.85) contrast(1.0); }
  100% { opacity: 1; filter: blur(0) sepia(0) brightness(1) saturate(1) contrast(1); }
}

@keyframes ken-burns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.07) translate(-1.5%, -2%); }
}

@keyframes light-leak-drift {
  0%   { transform: translate(-3%, -2%); opacity: 0.95; }
  50%  { opacity: 1; }
  100% { transform: translate(3%, 2%); opacity: 0.85; }
}
.hero-tag {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 32ch;
  margin-bottom: var(--space-xl);
}
.hero-meta {
  display: flex; align-items: center; gap: var(--space-md);
  flex-wrap: wrap;
  font-size: var(--fs-meta);
  color: var(--muted);
}
.hero-meta .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* Hero image card with light leak + Ken Burns */
.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transform: rotate(-1deg);
  /* Photo-developing fade-in, played once on load */
  animation: develop-image 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}
.hero-image {
  position: absolute; inset: -4%;
  background: linear-gradient(140deg, #d4b89a 0%, #a87856 50%, #5a4d40 100%);
  z-index: 1;
  /* Slow Ken Burns — paused until develop animation done */
  animation: ken-burns 14s ease-in-out 2.0s infinite alternate both;
  transform-origin: center;
  will-change: transform;
}
.hero-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.18) contrast(1.04) saturate(0.92);
}
.hero-image-label {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 2rem;
  color: rgba(255,245,228,0.55);
  letter-spacing: 1px;
  pointer-events: none;
}
.hero-frame::after {
  content: "";
  position: absolute; inset: -8%;
  background: linear-gradient(115deg, transparent 38%, rgba(255,200,100,0.22) 60%, transparent 82%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
  animation: light-leak-drift 12s ease-in-out 1.5s infinite alternate both;
  will-change: transform;
}
.hero-frame .frame-caption {
  position: absolute; bottom: 14px; left: 18px;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: rgba(255,245,228,0.94);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  z-index: 4;
}

/* ============================================================
   Section primitives
   ============================================================ */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}
.section-head {
  max-width: 720px;
  margin-bottom: var(--space-3xl);
}
.section-head .eyebrow { margin-bottom: var(--space-md); }
.section-head .lead {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
  margin-top: var(--space-lg);
  max-width: 56ch;
  letter-spacing: -0.1px;
}

/* ============================================================
   Service strip — polaroids
   ============================================================ */
.services {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-2xl) var(--space-xl);
  margin-top: var(--space-2xl);
}
.polaroid {
  --tilt: 0deg;
  background: #fff;
  padding: 12px 12px 56px;
  box-shadow: var(--shadow-polaroid);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  /* Initial state — JS adds .is-revealed when grid enters viewport */
  opacity: 0;
  transform: translateY(-30px) rotate(var(--tilt));
  transition: transform 400ms ease, box-shadow 400ms ease;
  will-change: transform, opacity;
}
.polaroid:nth-child(1) { --tilt: -1.5deg; }
.polaroid:nth-child(2) { --tilt: 0.8deg; }
.polaroid:nth-child(3) { --tilt: -0.6deg; }
.polaroid:nth-child(4) { --tilt: 1.2deg; }
.polaroid:nth-child(5) { --tilt: -1deg; }
.polaroid:nth-child(6) { --tilt: 0.5deg; }
.polaroid:nth-child(7) { --tilt: -1.2deg; }
/* Solemn (Hautajaiset) — no tilt, defined AFTER nth-child to win cascade */
.polaroid.solemn { --tilt: 0deg; }

.polaroid.is-revealed {
  animation: polaroid-drop 750ms cubic-bezier(0.2, 0.85, 0.3, 1.15) both;
}
.polaroid:nth-child(1).is-revealed { animation-delay: 0ms; }
.polaroid:nth-child(2).is-revealed { animation-delay: 90ms; }
.polaroid:nth-child(3).is-revealed { animation-delay: 180ms; }
.polaroid:nth-child(4).is-revealed { animation-delay: 270ms; }
.polaroid:nth-child(5).is-revealed { animation-delay: 360ms; }
.polaroid:nth-child(6).is-revealed { animation-delay: 450ms; }
.polaroid:nth-child(7).is-revealed { animation-delay: 540ms; }

@keyframes polaroid-drop {
  0% {
    opacity: 0;
    transform: translateY(-40px) rotate(calc(var(--tilt) * -2));
  }
  70% {
    opacity: 1;
    transform: translateY(4px) rotate(calc(var(--tilt) * 1.4));
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(var(--tilt));
  }
}

.polaroid:hover, .polaroid:focus-visible {
  transform: rotate(0) translateY(-6px) !important;
  box-shadow: 0 18px 38px rgba(58,46,34,0.18), 0 4px 8px rgba(58,46,34,0.10);
}
.polaroid .photo {
  aspect-ratio: 1;
  background: linear-gradient(140deg, var(--rose) 0%, var(--accent) 60%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
}
.polaroid .photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.2) contrast(1.04) saturate(0.92);
  transition: filter 600ms ease;
}
.polaroid:hover .photo img {
  filter: sepia(0.04) contrast(1.0) saturate(1.0);
}
.polaroid .photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 50%, rgba(255,200,100,0.14) 70%, transparent 88%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.polaroid .placeholder-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: rgba(255,245,228,0.6);
}
.polaroid .caption {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.2px;
}
/* Hautajaiset — solemn, no tilt */
.polaroid.solemn,
.polaroid.solemn:nth-child(n) {
  transform: rotate(0deg);
}
.polaroid.solemn:hover,
.polaroid.solemn:focus-visible {
  transform: translateY(-4px);
}
.polaroid.solemn .photo {
  background: linear-gradient(160deg, #88766b 0%, #5a4d40 60%, #2d2520 100%);
}

/* ============================================================
   About — editorial spread with drop cap
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-3xl);
  align-items: start;
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-portrait {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transform: rotate(0.5deg);
  margin: 0;
}
.about-portrait picture,
.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
}
.about-portrait img {
  object-fit: cover;
}
.about-text { padding-top: var(--space-md); }
.about-text p { margin-bottom: var(--space-lg); max-width: 60ch; }
.about-text p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-dropcap);
  line-height: 0.85;
  float: left;
  margin: 6px 12px -2px 0;
  color: var(--accent);
}
.pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-2xl) 0;
  max-width: 36ch;
}

/* ============================================================
   Contact CTA
   ============================================================ */
.contact-cta {
  background: var(--bg-dark);
  color: var(--bg);
  text-align: center;
}
.contact-cta .eyebrow { color: var(--rose); }
.contact-cta h2 { color: var(--bg); margin: var(--space-md) 0 var(--space-lg); }
.contact-cta p { color: rgba(247,241,232,0.7); max-width: 36ch; margin: 0 auto var(--space-xl); }
.contact-cta .btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 16px 40px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  border: none;
  transition: background 200ms ease, transform 200ms ease;
}
.contact-cta .btn:hover, .contact-cta .btn:focus-visible {
  background: var(--accent-deep);
}
.contact-cta .signature { color: var(--rose); display: block; margin-top: var(--space-xl); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}
.footer h4 {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: var(--fs-tag);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-md);
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer ul a { font-size: 0.9375rem; transition: color 200ms ease; }
.footer ul a:hover { color: var(--accent); }
.footer-brand { display: flex; flex-direction: column; gap: var(--space-md); }
.footer-brand .name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.75rem;
}
.footer-brand p { font-size: 0.9375rem; color: var(--muted); max-width: 30ch; }
.footer-base {
  border-top: 1px solid var(--line);
  padding-top: var(--space-md);
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--fs-meta);
  color: var(--muted);
  flex-wrap: wrap; gap: var(--space-md);
}

/* ============================================================
   Cinematic film leader (first session visit only)
   ============================================================ */
.film-leader {
  position: fixed; inset: 0; z-index: 9999;
  background: #1a1410;
  display: flex; align-items: center; justify-content: center;
  animation: leader-out 700ms cubic-bezier(0.6, 0, 0.4, 1) 3.4s forwards;
  overflow: hidden;
}
.film-leader::before {
  /* film grain on the leader itself */
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.0' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: leader-grain 0.18s steps(2) infinite;
}
@keyframes leader-grain {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-3px, 4px); }
  100% { transform: translate(2px, -2px); }
}
.film-leader-circle {
  width: 280px; height: 280px;
  border: 2px solid rgba(247,241,232,0.55);
  border-radius: 50%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.film-leader-circle::before,
.film-leader-circle::after {
  /* crosshair lines through the circle */
  content: ""; position: absolute;
  background: rgba(247,241,232,0.35);
}
.film-leader-circle::before { top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -0.5px; }
.film-leader-circle::after  { left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; }

.film-leader-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 8rem;
  font-weight: 500;
  color: #f7f1e8;
  opacity: 0;
}
.film-leader-num.n3 { animation: leader-num 1.05s 0.0s; }
.film-leader-num.n2 { animation: leader-num 1.05s 1.1s; }
.film-leader-num.n1 { animation: leader-num 1.05s 2.2s; }
@keyframes leader-num {
  0%   { opacity: 0; transform: scale(1.18); }
  10%  { opacity: 1; transform: scale(1.02); }
  85%  { opacity: 1; transform: scale(1.0); }
  100% { opacity: 0; transform: scale(0.94); }
}
.film-leader-sweep {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from -90deg, transparent 0%, rgba(247,241,232,0.2) 8%, transparent 18%);
  animation: leader-sweep 3.3s linear forwards;
}
@keyframes leader-sweep {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(1080deg); }
}
.film-leader-skip {
  position: absolute; bottom: 24px; right: 28px;
  background: transparent; border: 1px solid rgba(247,241,232,0.35);
  color: rgba(247,241,232,0.7);
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}
.film-leader-skip:hover, .film-leader-skip:focus-visible {
  color: #f7f1e8;
  border-color: rgba(247,241,232,0.7);
}
@keyframes leader-out {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); visibility: hidden; }
}
.film-leader.is-skipped {
  animation: leader-out 350ms cubic-bezier(0.6, 0, 0.4, 1) forwards;
}

/* ============================================================
   Vinyl ambient toggle
   ============================================================ */
.ambient-toggle {
  position: fixed; bottom: 22px; right: 22px;
  width: 46px; height: 46px;
  background: rgba(45,37,32,0.86);
  color: #f7f1e8;
  border: 1px solid rgba(247,241,232,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 50;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 220ms ease, transform 220ms ease, border-color 220ms ease;
  opacity: 0;
  animation: ambient-toggle-in 600ms ease-out 4.0s forwards;
}
@keyframes ambient-toggle-in {
  to { opacity: 1; }
}
.ambient-toggle:hover, .ambient-toggle:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}
.ambient-toggle .wave {
  opacity: 0;
  transform-origin: 8px 12px;
  transition: opacity 350ms ease;
}
.ambient-toggle[aria-pressed="true"] .wave { opacity: 1; }
.ambient-toggle[aria-pressed="true"] .wave-1 {
  animation: wave-pulse 1.6s ease-in-out infinite;
}
.ambient-toggle[aria-pressed="true"] .wave-2 {
  animation: wave-pulse 1.6s ease-in-out 0.4s infinite;
}
@keyframes wave-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* ============================================================
   Scroll-driven sepia → color (Tier 2)
   When polaroid passes through viewport center, sepia fades out.
   ============================================================ */
.polaroid .photo {
  filter: sepia(0.35) contrast(1.04) saturate(0.86);
  transition: filter 900ms ease;
}
.polaroid.in-focus .photo {
  filter: sepia(0.05) contrast(1.0) saturate(1.0);
}
.polaroid:hover .photo,
.polaroid:focus-visible .photo {
  filter: sepia(0.0) contrast(1.0) saturate(1.05);
}

.about-portrait {
  filter: sepia(0.25) contrast(1.04) saturate(0.9);
  transition: filter 900ms ease;
}
.about-portrait.in-focus {
  filter: sepia(0.05) contrast(1.0) saturate(1.0);
}

/* ============================================================
   Reveal animation (fade in once)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 800ms ease-out, transform 800ms ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Reduced motion — disable hero develop, Ken Burns, light leak,
   polaroid drop-in, polaroid tilts. Keep static, accessible.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  body::before { opacity: 0.06; }

  /* Skip the cinematic intro for reduced-motion users */
  .film-leader { display: none; }
  .film-leader-num, .film-leader-sweep { animation: none !important; }

  .ambient-toggle { animation: none; opacity: 1; }
  .ambient-toggle .wave-1, .ambient-toggle .wave-2 { animation: none !important; }

  .polaroid .photo { transition: none; filter: sepia(0.05) contrast(1.0) saturate(1.0); }
  .polaroid.in-focus .photo { filter: sepia(0.05) contrast(1.0) saturate(1.0); }
  .about-portrait, .about-portrait.in-focus { filter: sepia(0.05) contrast(1.0) saturate(1.0); transition: none; }

  .reveal { opacity: 1; transform: none; transition: none; }

  .develop-step,
  .develop-step-1, .develop-step-2, .develop-step-3, .develop-step-4, .develop-step-5 {
    opacity: 1; filter: none; transform: none; animation: none;
  }

  .hero-frame { transform: none; animation: none; }
  .hero-image { animation: none; }
  .hero-frame::after { animation: none; transform: none; }

  .polaroid {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .polaroid.is-revealed { animation: none; }
  .polaroid:hover, .polaroid:focus-visible { transform: translateY(-4px) !important; }

  .about-portrait { transform: none; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 100ms !important;
  }
}

/* ============================================================
   Lenis smooth scroll integration
   ============================================================ */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Magnetic buttons need a stable transform origin and will-change for smoothness.
   GSAP sets inline transform — overrides any existing CSS transitions on transform. */
.btn,
.magnetic {
  will-change: transform;
}

/* Don't apply magnetic on touch devices — relies on mouse precision */
@media (hover: none) {
  .btn,
  .magnetic {
    will-change: auto;
  }
}

/* ============================================================
   Custom cursor — terracotta dot + lagging ring (desktop only)
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 10000;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  display: none; /* opt-in via media query below */
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent);
  transition: opacity 200ms ease;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid var(--accent);
  background: transparent;
  transition:
    width 320ms ease,
    height 320ms ease,
    margin 320ms ease,
    background 320ms ease,
    border-color 320ms ease,
    opacity 200ms ease;
}

body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(168, 120, 86, 0.10);
}
body.cursor-hover .cursor-dot {
  opacity: 0;
}
body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-ring {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot,
  .cursor-ring {
    display: block;
  }
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button {
    cursor: none;
  }
  body.has-custom-cursor input,
  body.has-custom-cursor textarea {
    cursor: text;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
  body {
    cursor: auto !important;
  }
}

/* ============================================================
   Sub-page hero (e.g. /haat) — full-bleed 16:9
   ============================================================ */
.haat-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-dark);
}
.haat-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.haat-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  filter: sepia(0.18) contrast(1.04) saturate(0.92);
  transform: scale(1.04);
  transform-origin: 58% 50%;
  animation: ken-burns 22s ease-in-out infinite alternate;
  will-change: transform;
}
.haat-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(20,15,10,0.10) 0%,
      rgba(20,15,10,0) 32%,
      rgba(20,15,10,0) 55%,
      rgba(20,15,10,0.65) 100%);
}
.haat-hero-content {
  position: absolute;
  bottom: clamp(28px, 7vh, 96px);
  left: 0;
  right: 0;
  z-index: 2;
  color: #fdf6e8;
}
.haat-hero-content .eyebrow {
  color: rgba(253, 246, 232, 0.82);
}
.haat-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.25rem, 5.6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: var(--space-md) 0 var(--space-md);
  color: #fdf6e8;
  max-width: 18ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.haat-hero-tag {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  line-height: 1.5;
  color: rgba(253, 246, 232, 0.92);
  max-width: 44ch;
  text-shadow: 0 2px 20px rgba(0,0,0,0.30);
  letter-spacing: -0.1px;
}

@media (max-width: 768px) {
  .haat-hero {
    aspect-ratio: auto;
    min-height: 78vh;
  }
  .haat-hero-content {
    bottom: clamp(24px, 5vh, 56px);
  }
}

/* /haat sections — extra breathing room between editorial blocks */
.haat-process,
.haat-mita-saat,
.haat-faq,
.haat-cta {
  padding: var(--space-4xl) 0;
}

/* Process narrative — drop cap + tighter prose */
.haat-process-text {
  max-width: 62ch;
  margin: var(--space-2xl) 0 0;
}
.haat-process-text p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin: var(--space-lg) 0;
  color: var(--ink);
}
.haat-process-text p:first-of-type {
  margin-top: 0;
}
.dropcap {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 4em;
  line-height: 0.85;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--accent);
}

/* "Mitä saat" -lista — editorial, ei bullettia */
.haat-list {
  list-style: none;
  padding: 0;
  margin: var(--space-2xl) 0 0;
  display: grid;
  gap: var(--space-xl);
  max-width: 65ch;
}
.haat-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: var(--space-md) 0 var(--space-md) var(--space-lg);
  border-left: 1px solid var(--accent);
  position: relative;
}
.haat-list li strong {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.375rem;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.haat-list li span {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

/* FAQ — native details/summary */
.faq-list {
  margin-top: var(--space-2xl);
  max-width: 72ch;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: var(--space-lg) 0;
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.2px;
  transition: color 200ms ease;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 300ms ease;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item summary:hover {
  color: var(--accent);
}
.faq-item p {
  margin: var(--space-md) 0 0;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 60ch;
  color: var(--muted);
}

/* /haat CTA */
.haat-cta {
  text-align: center;
}
.haat-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: var(--space-md);
  color: var(--ink);
}
.haat-cta-tag {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto var(--space-xl);
  letter-spacing: -0.1px;
}
.haat-cta .btn {
  margin-top: var(--space-md);
}
.haat-cta .signature {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  margin-top: var(--space-2xl);
  color: var(--muted);
}

/* aria-current="page" — active nav link */
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

/* ============================================================
   /hautajaiset — solemn page styling
   ============================================================ */
.solemn-page .page-hero {
  padding-top: clamp(80px, 14vh, 168px);
  padding-bottom: var(--space-3xl);
}
.solemn-page .page-hero-title {
  max-width: 26ch;
}
.solemn-page .page-hero-tag {
  max-width: 56ch;
  color: var(--ink);
}
.solemn-page .haat-process .haat-process-text p {
  font-size: 1rem;
  line-height: 1.75;
}
.solemn-prose p:first-of-type {
  /* No drop cap on hautajaiset — straight, factual prose */
}
.solemn-prose p:first-of-type::first-letter {
  font-size: inherit;
  float: none;
  margin: 0;
  color: inherit;
  font-style: inherit;
}

/* Hautajaiset gallery — deeper sepia, less color recovery on hover */
.solemn-page .muotokuvat-gallery-item img {
  filter: sepia(0.32) contrast(0.96) saturate(0.78);
}
.solemn-page .muotokuvat-gallery-item:hover img {
  filter: sepia(0.20) contrast(0.98) saturate(0.90);
  transform: scale(1.0);
}

/* SEO landing pages — text-heavy editorial */
.seo-content {
  padding: var(--space-2xl) 0 var(--space-3xl);
}
.seo-content-text {
  max-width: 64ch;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.seo-content-text p {
  margin: 0 0 var(--space-lg);
  color: var(--ink);
}
.seo-content-text p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-dropcap);
  line-height: 0.85;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--accent);
}
.seo-content .seo-links {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0;
}
.error-content {
  max-width: 50ch;
}
.error-content .eyebrow {
  letter-spacing: 0.5em;
  font-size: 0.75rem;
}
.error-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: var(--space-md) 0 var(--space-md);
  color: var(--ink);
}
.error-tag {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--muted);
  margin: var(--space-lg) 0 var(--space-2xl);
  max-width: 45ch;
}
.error-back {
  display: inline-block;
  font-size: 0.9375rem;
}

/* /minusta — editorial spread (portrait + Tommin tarina) */
.minusta-spread {
  padding: var(--space-2xl) 0 var(--space-4xl);
}
.minusta-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 880px) {
  .minusta-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
}
.minusta-portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  /* Spec: straight frames (suora kunnioitus), no tilt */
  transform: none;
  position: sticky;
  top: clamp(80px, 10vh, 120px);
}
.minusta-portrait picture,
.minusta-portrait img {
  display: block;
  width: 100%;
  height: 100%;
}
.minusta-portrait img {
  object-fit: cover;
  filter: sepia(0.10) contrast(1.02) saturate(0.95);
  transition: filter 800ms ease;
}
@media (max-width: 880px) {
  .minusta-portrait { position: static; }
}

.minusta-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 60ch;
}
.minusta-text p {
  margin: 0 0 var(--space-lg);
  color: var(--ink);
}
.minusta-text p:first-of-type {
  margin-top: 0;
}
.minusta-text .dropcap {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 4em;
  line-height: 0.85;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--accent);
}
.minusta-text .pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-2xl) 0;
  max-width: 36ch;
}
.minusta-text .signature {
  font-family: 'Caveat', cursive;
  font-size: 1.75rem;
  color: var(--muted);
  margin-top: var(--space-xl);
}

/* /video — gallery with YouTube embeds + placeholders */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  align-items: start;
}
@media (max-width: 800px) {
  .video-gallery { grid-template-columns: 1fr; }
}

.video-gallery-item {
  margin: 0;
}
.video-embed-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--bg-dark);
}
.video-embed-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-gallery-item figcaption {
  margin-top: var(--space-md);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.1px;
}
.video-gallery-item figcaption em {
  font-weight: 400;
  color: var(--muted);
}

/* Placeholder variant for upcoming videos */
.video-embed-wrapper.video-placeholder {
  background: linear-gradient(140deg, #ebe1d2 0%, #c89a7e 60%, #5a4d40 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-embed-wrapper.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='28' fill='none' stroke='rgba(255,245,228,0.45)' stroke-width='1.2'/><polygon points='44,38 44,62 64,50' fill='rgba(255,245,228,0.55)'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 110px 110px;
  opacity: 0.85;
}
.video-placeholder-label {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: rgba(255, 245, 228, 0.82);
  letter-spacing: 0.3px;
}

/* Solemn CTA — no big button, just text channels */
.solemn-cta {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-4xl);
}
.solemn-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  margin-bottom: var(--space-md);
  color: var(--ink);
}
.solemn-cta-channels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
}
.solemn-cta-channels .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  display: inline-block;
}

/* ============================================================
   /muotokuvat — gallery
   ============================================================ */
.muotokuvat-gallery-section {
  padding: var(--space-2xl) 0 var(--space-4xl);
}
.muotokuvat-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  align-items: start;
}
/* Portrait — 3 per row */
.muotokuvat-gallery-item {
  grid-column: span 2;
}
/* Landscape — 2 per row */
.muotokuvat-gallery-item.wide {
  grid-column: span 3;
}
@media (max-width: 900px) {
  .muotokuvat-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
  .muotokuvat-gallery-item {
    grid-column: span 2;     /* 2 portraits per row */
  }
  .muotokuvat-gallery-item.wide {
    grid-column: span 4;     /* 1 landscape per row */
  }
}
@media (max-width: 540px) {
  .muotokuvat-gallery {
    grid-template-columns: 1fr;
  }
  .muotokuvat-gallery-item,
  .muotokuvat-gallery-item.wide {
    grid-column: span 1;
  }
}
.muotokuvat-gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transform: translateY(0);
  transition: transform 400ms ease, box-shadow 400ms ease;
}
.muotokuvat-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.18) contrast(1.04) saturate(0.92);
  transition: filter 600ms ease, transform 1200ms ease;
}
.muotokuvat-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.muotokuvat-gallery-item:hover img {
  filter: sepia(0.04) contrast(1.0) saturate(1.0);
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .muotokuvat-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}
@media (max-width: 540px) {
  .muotokuvat-gallery {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .muotokuvat-gallery-item img {
    transition: none;
    transform: none;
    filter: sepia(0.05);
  }
  .muotokuvat-gallery-item:hover img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .haat-hero-image img {
    animation: none;
    transform: none;
    filter: sepia(0.10) contrast(1.0) saturate(0.95);
  }
}

/* ============================================================
   Home hero — clean paper background, centered wordmark
   ============================================================ */
.home-hero {
  position: relative;
  width: 100%;
  min-height: 88vh;
  display: flex;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.home-hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  padding: var(--space-3xl) var(--space-md);
}
.home-hero-content .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-hero-content .eyebrow {
  color: var(--muted);
  margin-bottom: var(--space-lg);
}
.home-hero-title {
  margin: 0;
  line-height: 1;
}
.home-hero-logo {
  display: block;
  width: clamp(240px, 32vw, 400px);
  height: auto;
  margin: 0 auto;
}
.home-hero-tag {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.1875rem, 1.55vw, 1.4375rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 52ch;
  margin: var(--space-xl) auto 0;
  letter-spacing: -0.1px;
}
.home-hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-xl);
  font-size: var(--fs-meta);
  color: var(--muted);
  letter-spacing: 0.4px;
}
.home-hero-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  display: inline-block;
}

@media (max-width: 768px) {
  .home-hero {
    min-height: 80vh;
  }
  .home-hero-logo {
    width: clamp(220px, 60vw, 320px);
  }
}

/* ============================================================
   Sub-page text-only hero (e.g. /yhteystiedot)
   ============================================================ */
.page-hero {
  padding-top: clamp(64px, 12vh, 144px);
  padding-bottom: var(--space-2xl);
}
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -1px;
  margin: var(--space-md) 0 var(--space-md);
  color: var(--ink);
  max-width: 22ch;
}
.page-hero-tag {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 50ch;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.1px;
}

/* ============================================================
   /yhteystiedot — kontaktilomake + suorat kanavat
   ============================================================ */
.yhteys-grid {
  padding: var(--space-2xl) 0 var(--space-4xl);
}
.yhteys-cols {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) {
  .yhteys-cols {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }
}

.yhteys-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  margin: 0 0 var(--space-xl);
  color: var(--ink);
  letter-spacing: -0.3px;
}

/* Lomake */
.yhteys-form {
  display: grid;
  gap: var(--space-xl);
}
.form-row {
  display: grid;
  gap: 6px;
}
.form-row label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-row label .optional {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.8;
  margin-left: 6px;
}

/* Filmic input — paper-feel border-bottom only */
.input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(58, 46, 34, 0.30);
  padding: 12px 4px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
  border-radius: 0;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder {
  color: var(--muted);
  opacity: 0.55;
}
.input:hover {
  border-bottom-color: rgba(58, 46, 34, 0.55);
}
.input:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}
.input:invalid:not(:placeholder-shown) {
  border-bottom-color: #b35a3a;
}
.textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.55;
}

/* Select — match input but add custom arrow */
.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23a87856' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 28px;
  cursor: pointer;
}

/* Date input — compact for desktop, full-width for mobile */
input[type="date"].input {
  font-family: 'Inter', sans-serif;
  color-scheme: light;
  cursor: pointer;
}
input[type="date"].input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: sepia(0.3);
  opacity: 0.6;
}

/* Honeypot — hidden visually but rendered for bots to fill */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tab-index: -1;
}

.form-gdpr {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.55;
}
.yhteys-form .btn {
  justify-self: start;
  margin-top: var(--space-sm);
}

/* Suorat kanavat */
.yhteys-direct {
  display: grid;
  gap: var(--space-2xl);
}
.yhteys-channel {
  display: grid;
  gap: 4px;
}
.yhteys-channel .eyebrow {
  margin-bottom: 4px;
}
.yhteys-link {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.375rem;
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 320ms ease, color 200ms ease;
  letter-spacing: -0.2px;
  display: inline-block;
}
.yhteys-link:hover {
  background-size: 100% 1px;
  color: var(--accent);
}
.yhteys-link.as-text {
  cursor: default;
}
.yhteys-link.as-text:hover {
  background-size: 0 1px;
  color: var(--ink);
}
.yhteys-channel .yhteys-link + .yhteys-link {
  margin-top: 4px;
}
.yhteys-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ============================================================
   /yhteystiedot/kiitos
   ============================================================ */
.kiitos-main {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0;
}
.kiitos-content {
  max-width: 50ch;
}
.kiitos-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: var(--space-md) 0 var(--space-md);
  color: var(--ink);
}
.kiitos-tag {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  margin: var(--space-lg) 0 var(--space-xl);
  max-width: 45ch;
}
.kiitos-signature {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--muted);
  margin: 0 0 var(--space-2xl);
}
.kiitos-back {
  font-size: 0.9375rem;
  display: inline-block;
}
