/* ============================================================
   TheFlyingContent — "Koivu & mänty" (Birch & Pine) theme
   Warm birch base · burnt orange primary · forest green secondary
   Type: Space Grotesk (display) + Inter (body)
   ============================================================ */

:root {
  --bg:        #E7E1D3;   /* warm birch / oat base */
  --surface:   #F4F0E7;   /* cards / panels (warm off-white) */
  --alt:       #DDD6C5;   /* alternating section background */
  --ink:       #2A2E27;   /* headings + strong text (dark olive) */
  --body:      #54584E;   /* body copy */
  --muted:     #7C8073;   /* captions / meta */
  --line:      #D0C7B4;   /* borders / dividers */
  --accent:    #1D3B66;   /* primary — deep navy */
  --accent-dk: #152E52;   /* primary hover */
  --warm:      #274672;   /* brighter navy for pops/accents */
  --green:     #6B4747;   /* secondary — dusty rosewood */

  --shadow:    0 12px 30px -18px rgba(40,32,20,.30);
  --shadow-lg: 0 24px 50px -24px rgba(40,32,20,.38);

  --maxw: 1240px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.05; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

.accent-word { color: var(--accent); }

/* ---------- Overlays ---------- */
.grain { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  letter-spacing: .01em; padding: .85rem 1.5rem; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer; transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 16px 38px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary.is-copied { background: var(--green); box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--green) 60%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.play-dot { font-size: .7em; transform: translateY(.5px); }
.play-dot.big { font-size: 1.6rem; }

/* ============================================================
   NAV  (transparent over hero → solid warm on scroll)
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(26,29,24,.95);
  padding-top: .8rem; padding-bottom: .8rem; border-bottom-color: rgba(255,255,255,.12);
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: #fff; letter-spacing: -.01em; transition: color .35s var(--ease); }
.brand-logo { height: 58px; width: auto; display: block; }
.brand-footer .brand-logo { height: 62px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-family: var(--font-display); font-size: .95rem; color: rgba(255,255,255,.88); position: relative; transition: color .25s; }
.nav-links a:not(.nav-cta):hover { color: #fff; }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { background: var(--accent); color: #fff !important; padding: .55rem 1.2rem; border-radius: 100px; transition: background .25s, transform .25s; }
.nav-cta:hover { background: var(--accent-dk); transform: translateY(-1px); }

/* language switch (FI / EN) */
.lang-switch { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--font-display); font-size: .82rem; }
.lang-switch button { background: none; border: 0; cursor: pointer; font-family: inherit; font-size: inherit; padding: .15rem .2rem; color: rgba(255,255,255,.6); transition: color .2s; }
.lang-switch button.active { color: #fff; font-weight: 600; }
.lang-switch span { color: rgba(255,255,255,.4); }
/* scrolled nav stays dark → light text + white logo carry over from the base nav styles */

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; box-shadow: 0 0 3px rgba(0,0,0,.45); transition: .3s var(--ease); }
.nav-toggle.open span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 7rem var(--pad) 4rem; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; animation: kenburns 24s infinite; filter: saturate(.95) contrast(1.03);
}
.hero-media .slide-1 { animation-delay: 0s; }
.hero-media .slide-2 { animation-delay: 8s; }
.hero-media .slide-3 { animation-delay: 16s; }
@keyframes kenburns {
  0%   { opacity: 0; transform: scale(1.05); }
  8%   { opacity: 1; }
  33%  { opacity: 1; transform: scale(1.14); }
  41%  { opacity: 0; transform: scale(1.16); }
  100% { opacity: 0; }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(20,22,18,.34), transparent 55%),
    linear-gradient(180deg, rgba(20,22,18,.55) 0%, rgba(20,22,18,.30) 40%, rgba(231,225,211,.55) 85%, var(--bg) 100%);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

.flight-line { position: absolute; left: 0; right: 0; bottom: 10%; width: 100%; height: 120px; z-index: 1; pointer-events: none; opacity: .4; }
.flight-line path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 2600; stroke-dashoffset: 2600; }
.flight-line.draw path { animation: draw 5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; }
.hero-title { font-size: clamp(3.2rem, 11vw, 8.5rem); font-weight: 700; letter-spacing: -.03em; color: #fff; }
.hero-title .accent-word { color: var(--warm); }
.hero-sub { max-width: 46ch; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #ece7dc; margin: 1.6rem 0 2.4rem; }
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-cta .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.12); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 1.4rem 0; background: var(--bg); }
.marquee-track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 500; color: transparent; -webkit-text-stroke: 1px var(--accent); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee-track .dot { -webkit-text-stroke: 0; color: var(--accent); font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4.5rem, 9vw, 8rem) var(--pad); }
.section-alt { max-width: none; background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3.2rem; flex-wrap: wrap; }
.section-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -.02em; }
.section-lead { max-width: 38ch; color: var(--muted); font-size: 1.05rem; }

/* ---------- Services (full-bleed image cards, text overlaid) ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.service-card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.1rem; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service-card::before {                       /* the photo — full & clear, always */
  content: ''; position: absolute; inset: 0; z-index: -3;
  background-image: var(--card-img); background-size: cover; background-position: center;
  transition: transform .7s var(--ease), filter .4s var(--ease);
}
.service-card::after {                        /* legibility scrim, bottom-weighted */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18,20,16,.10) 0%, rgba(18,20,16,.42) 46%, rgba(18,20,16,.9) 100%);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.service-card:hover::before { transform: scale(1.06); filter: brightness(1.12); }
.service-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: .7rem; }
.service-card p { color: rgba(255,255,255,.88); font-size: .97rem; max-width: 44ch; }
.service-tag { font-family: var(--font-display); font-size: .74rem; letter-spacing: .06em; color: rgba(255,255,255,.72); text-transform: uppercase; margin-top: 1.1rem; }
.service-link { font-family: var(--font-display); color: #fff; font-size: .92rem; margin-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; transition: gap .3s var(--ease), color .25s; }
.service-card:hover .service-link { color: var(--warm); gap: .7rem; }
.service-body { display: contents; }   /* desktop: wrapper is invisible to layout */

/* ---------- Portfolio "Katso työtäni" ---------- */
#workGrid.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.work-card { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.wc-media { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s var(--ease); }
.wc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s var(--ease); }
.work-card.playing .wc-video { opacity: 1; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.work-card:hover .wc-media { transform: scale(1.05); }
.wc-play { position: absolute; right: .5rem; top: .5rem; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: rgba(18,20,16,.5); backdrop-filter: blur(4px); color: #fff; display: grid; place-items: center; font-size: .48rem; padding-left: 1px; opacity: 0; transition: opacity .3s var(--ease), background .3s var(--ease); }
.work-card:hover .wc-play { opacity: 1; }
.wc-play.is-video { opacity: 1; background: var(--accent); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-media { position: relative; }
.about-photo { aspect-ratio: 4/5; border-radius: var(--radius); background-size: cover; background-position: center; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-copy .section-title { margin-bottom: 1.4rem; }
.about-copy p { margin-bottom: 1.1rem; color: var(--body); }
.about-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 2rem; position: relative; box-shadow: var(--shadow); }
.quote blockquote { color: #33372e; font-size: 1.02rem; margin: 1.4rem 0 1.4rem; position: relative; }
.quote figcaption { display: flex; flex-direction: column; }
.quote figcaption strong { color: var(--ink); font-family: var(--font-display); }
.quote figcaption span { color: var(--green); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Social ("Seuraa / Follow") ---------- */
.social-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; margin-bottom: 2rem; }
.social-card { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: block; }
.sc-media { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s var(--ease); }
.social-card:hover .sc-media { transform: scale(1.08); }
.social-card::after { content: ''; position: absolute; inset: 0; background: rgba(18,20,16,0); transition: background .3s var(--ease); }
.social-card:hover::after { background: rgba(18,20,16,.4); }
.sc-icon { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .3s var(--ease); z-index: 1; }
.social-card:hover .sc-icon { opacity: 1; }
.social-cta { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; }
.social-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.15rem; border-radius: 100px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-family: var(--font-display); font-size: .92rem; font-weight: 500; box-shadow: var(--shadow); transition: transform .25s var(--ease), color .25s, box-shadow .25s; }
.social-btn:hover { transform: translateY(-3px); color: var(--accent); box-shadow: var(--shadow-lg); }
.social-btn svg { flex: 0 0 auto; }
@media (max-width: 980px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .social-grid { grid-template-columns: repeat(2, 1fr); } .social-card:nth-child(n+5) { display: none; } }

/* ---------- Contact (forest-green colour band) ---------- */
.contact { text-align: center; max-width: none; background: #DBE3EF; border-top: 1px solid var(--line); }
.contact .contact-title { color: var(--ink); }
.contact .contact-title .accent-word { color: var(--accent); }
.contact .contact-sub { color: var(--body); }
.contact .contact-meta li { color: var(--body); }
.contact .contact-meta span { color: var(--accent); }
.contact-inner { max-width: 800px; margin: 0 auto; }
.contact-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: -.02em; margin: .6rem 0 1.2rem; }
.contact-sub { font-size: 1.1rem; max-width: 52ch; margin: 0 auto 2.4rem; color: var(--body); }
.contact-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.6rem; }
.contact-meta { list-style: none; display: flex; gap: 2.4rem; justify-content: center; flex-wrap: wrap; }
.contact-meta li { font-size: .92rem; color: var(--body); }
.contact-meta span { display: block; font-family: var(--font-display); color: var(--green); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .25rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); padding: 3.5rem var(--pad) 2rem; }
.footer > * { max-width: var(--maxw); margin-inline: auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-footer { display: inline-flex; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a, .socials a { font-family: var(--font-display); font-size: .92rem; color: rgba(255,255,255,.6); transition: color .25s; }
.footer-links a:hover, .socials a:hover { color: var(--accent); }
.socials { display: flex; gap: 1.4rem; }
.footer-creds { display: flex; flex-wrap: wrap; gap: .7rem; padding: 1.6rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.badge { font-family: var(--font-display); font-size: .82rem; color: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.16); border-radius: 100px; padding: .5rem 1rem; background: rgba(255,255,255,.04); }
a.badge, button.badge { cursor: pointer; transition: border-color .25s, color .25s; }
a.badge:hover, button.badge:hover { border-color: var(--accent); color: var(--accent); }
.badge.is-copied { border-color: var(--green); color: #fff; background: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .85rem; color: rgba(255,255,255,.45); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: var(--pad); }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(24,22,18,.8); backdrop-filter: blur(6px); }
.modal-body { position: relative; z-index: 1; width: min(980px, 100%); max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-lg); animation: pop .4s var(--ease); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal-close { position: absolute; top: .7rem; right: .8rem; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 1rem; cursor: pointer; font-family: var(--font-display); display: grid; place-items: center; transition: border-color .2s, color .2s; }
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.lb-title { font-family: var(--font-display); color: var(--ink); font-size: 1.15rem; font-weight: 600; margin: .1rem 2.6rem 1rem 0; }
.lb-title span { color: var(--green); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-left: .5rem; }
.lb-video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.lb-video video, .lb-video iframe { width: 100%; height: 100%; display: block; border: 0; object-fit: contain; background: #000; }
.lb-gallery { display: flex; flex-direction: column; gap: .8rem; }
.lb-main { background: transparent; text-align: center; border-radius: var(--radius); position: relative; }
.lb-main img { display: inline-block; max-width: 100%; max-height: 72vh; width: auto; height: auto; border-radius: var(--radius); border: 1px solid var(--line); cursor: zoom-in; }
.lb-fs-exit { display: none; }
.lb-main.is-fs { background: #000; display: flex; align-items: center; justify-content: center; }
.lb-main.is-fs img { max-width: 100vw; max-height: 100vh; border: 0; border-radius: 0; cursor: zoom-out; }
.lb-main.is-fs .lb-fs-exit { display: grid; place-items: center; position: fixed; top: 1.1rem; right: 1.1rem; z-index: 10; width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.35); font-size: 1.25rem; cursor: pointer; transition: background .2s; }
.lb-main.is-fs .lb-fs-exit:hover { background: rgba(0,0,0,.85); }
.lb-nav { display: none; }
.lb-main.is-fs .lb-nav { display: grid; place-items: center; position: fixed; top: 50%; transform: translateY(-50%); z-index: 10; width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.35); font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lb-main.is-fs .lb-prev { left: 1.1rem; }
.lb-main.is-fs .lb-next { right: 1.1rem; }
.lb-main.is-fs .lb-nav:hover { background: rgba(0,0,0,.85); }
/* touch devices (iOS can't fullscreen a non-video element): show the arrows on the photo itself */
/* phones: arrows stay in fullscreen (smaller), hidden in the normal lightbox; you can also tap the photo's sides */
@media (pointer: coarse) {
  .lb-main.is-fs .lb-nav { width: 34px; height: 34px; font-size: 1.2rem; }
}
.lb-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.lb-thumb { width: 88px; aspect-ratio: 16 / 9; border-radius: 8px; border: 2px solid transparent; background-size: cover; background-position: center; cursor: pointer; opacity: .62; transition: opacity .2s, border-color .2s; padding: 0; }
.lb-thumb:hover { opacity: 1; }
.lb-thumb.is-active { opacity: 1; border-color: var(--accent); }
.modal-placeholder { aspect-ratio: 16 / 9; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--alt); border-radius: var(--radius); }
.modal-placeholder .play-dot { color: var(--accent); }
.modal-placeholder p { color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; }
.modal-placeholder code { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: .3rem .7rem; border-radius: 6px; font-size: .85rem; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
  .about-media { width: 420px; max-width: 100%; }
  .quotes { grid-template-columns: 1fr; }
  #workGrid.grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav .brand-logo { height: 42px; }
  .nav-links {
    position: absolute; top: calc(100% + .4rem); right: var(--pad);
    width: auto; min-width: 210px; flex-direction: column; align-items: stretch; gap: 0;
    padding: .45rem .7rem; background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow-lg);
    transform: translateY(-8px) scale(.97); transform-origin: top right;
    opacity: 0; visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    z-index: 1001;
  }
  .nav-links.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
  .nav-links a { font-size: 1rem; color: var(--ink); padding: .42rem 1rem; border-radius: 8px; }
  .nav-links a:not(.nav-cta):hover { color: var(--accent); }
  .nav-links a:not(.nav-cta)::after { display: none; }   /* no active-underline in the dropdown */
  .nav-links .nav-cta { text-align: center; margin-top: .3rem; }
  .nav-links .lang-switch { justify-content: center; margin-top: .3rem; padding-top: .4rem; border-top: 1px solid var(--line); }
  .nav-toggle { display: flex; z-index: 1002; }
  .services { grid-template-columns: 1fr; }
  /* phone: compact horizontal row — small photo left, short text right */
  .service-card { aspect-ratio: auto; display: flex; flex-direction: row; align-items: stretch; min-height: 110px; padding: 0; isolation: auto; background: var(--surface); }
  .service-card::before { position: relative; inset: auto; display: block; flex: 0 0 45%; min-height: 100px; align-self: stretch; aspect-ratio: auto; z-index: 0; }
  .service-card::after { display: none; }
  .service-body { display: flex; flex-direction: column; justify-content: center; flex: 1 1 auto; min-width: 0; padding: .65rem .8rem; }
  .service-card h3 { color: var(--ink); font-size: .92rem; margin-bottom: .2rem; padding: 0; line-height: 1.15; }
  .service-card p { color: var(--body); font-size: .76rem; padding: 0; max-width: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .service-tag { color: var(--muted); font-size: .6rem; padding: 0; margin-top: .4rem; }
  .service-link { display: none; }
  .about-media { width: 190px; max-width: 100%; margin: 0 auto 1.2rem; }
  #workGrid.grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .hero { min-height: 68svh; }                 /* shorter on mobile → ~30% more of the video shows */
  .hero-title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .lang-switch button { color: var(--body); }
  .lang-switch button.active { color: var(--ink); }
  .lang-switch span { color: var(--muted); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .contact-meta { gap: 1.4rem; }
  /* reviews: swipe sideways, one row */
  .quotes { display: flex; overflow-x: auto; gap: 1rem; scroll-snap-type: x mandatory; padding-bottom: .6rem; -webkit-overflow-scrolling: touch; }
  .quote { flex: 0 0 82%; scroll-snap-align: start; }
  /* a touch tighter on phones */
  .section { padding-top: 3.3rem; padding-bottom: 3.3rem; }
  .section-head { margin-bottom: 2.1rem; }
  /* footer: centered & compact so links + badges fit */
  .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 1.4rem; }
  .footer-links { width: 100%; justify-content: center; gap: .5rem .7rem; }
  .footer-links a { font-size: .78rem; }
  .socials { width: 100%; justify-content: center; gap: 1.3rem; }
  .socials a { font-size: .82rem; }
  .footer-creds { width: 100%; justify-content: center; }
  .footer-creds .badge { font-size: .76rem; padding: .42rem .8rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  /* mobile-only fixes */
  html { scroll-padding-top: 80px; }              /* clear the fixed nav on anchor jumps */
  .hover-hint { display: none; }                  /* "hover the card" makes no sense on touch */
  .modal-close { width: 42px; height: 42px; top: .55rem; right: .6rem; font-size: 1.15rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-media .slide { opacity: 1; }
  .hero-media .slide-2, .hero-media .slide-3 { opacity: 0; }
  .reveal { opacity: 1; transform: none; }
  .flight-line path { stroke-dashoffset: 0; }
}
