/* ==========================================================================
   EpyStudio — shared styles
   One identity (black & white, big grotesk type, handwritten notes),
   two tones: .tone-photo (warm, serif, soft) and .tone-brand (grid, sharp).
   ========================================================================== */

:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --soft: #f3f3f3;

  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 999px;
}

/* Photography tone: warmer paper, serif accents */
/* Photography uses the same white paper as the rest of the site;
   its softer tone comes from the serif type, not from the background colour */
.tone-photo {
  --paper: #ffffff;
  --soft: #f3f3f3;
  --line: #e4e4e4;
  --muted: #6b6b6b;
}

/* Brand tone: crisp white with a faint grid, like engineering paper */
.tone-brand {
  --paper: #ffffff;
  --soft: #f4f4f4;
}
/* The grid only lives in "grid zones" (brand hero + page ending) and fades out
   around them, so it never fights with dense content in the middle of the page. */
.grid-zone { position: relative; }
.grid-zone::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background-image:
    linear-gradient(to right, rgba(0,0,0,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top;
  pointer-events: none;
}
.grid-zone--out::before {
  bottom: -200px; /* let the fade run a little past the hero */
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}
.grid-zone--in::before {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; } /* never allow sideways scrolling on phones */
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 160px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.border-top { border-top: 1px solid var(--line); }

/* ---------- Type ---------- */
/* Tracking scale: the bigger the text, the tighter it may be, but letters must never touch.
   Inter Tight is already a narrow font, so we stay well above -0.04em. */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.028em; line-height: 1.02; margin: 0; }
/* extra room after "r" in big headings (see kernDisplayType in main.js) */
.kr { letter-spacing: -0.012em; }
.kr-t { letter-spacing: 0.02em; }
.outline .kr { letter-spacing: 0.02em; } /* the outline stroke adds width, so outlined "r" needs a bit more */
.mega { font-size: clamp(56px, 13vw, 220px); line-height: .92; letter-spacing: -0.035em; }
.h1 { font-size: clamp(44px, 8vw, 128px); }
.h2 { font-size: clamp(36px, 5.6vw, 84px); }
.h3 { font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.02em; line-height: 1.12; }
/* Outlined display type: fill with the page colour and paint the stroke underneath,
   so overlapping letter shapes don't show as stray lines inside letters */
.outline { color: var(--paper); -webkit-text-stroke: 2.4px var(--ink); paint-order: stroke fill; letter-spacing: -0.012em; }
@media (max-width: 860px) { .outline { -webkit-text-stroke-width: 1.6px; } }
/* Section-size headings (.h2): thinner stroke and a touch more spacing so the outline stays crisp */
.h2 .outline { -webkit-text-stroke-width: 1.5px; letter-spacing: 0.005em; display: inline-block; margin-top: .1em; }
.title-mixed .outline { margin-top: 0; } /* outlined words mixed with solid ones on the same line */
.title-mixed { text-wrap: wrap; } /* "balance" was splitting "or | marathon." onto two lines */
.title-mixed > span:last-child, .title-mixed .nw { white-space: nowrap; } /* keep "or the long run." together */
/* Contact headline: same size and two-line rhythm as the home headline */
.contact-title { font-size: clamp(48px, 10.4vw, 168px); }
.contact-title > span { display: block; }
.contact-title > .outline { margin-bottom: .12em; } /* "Say"/"Säg" have descenders that would touch the line below */
.grey { color: #b3b3b3; }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.hand { font-family: var(--font-hand); font-weight: 600; letter-spacing: 0; line-height: 1.05; }
.eyebrow {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 20px;
}
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; max-width: 52ch; }
.muted { color: var(--muted); }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: var(--radius);
  font: 500 16px/1 var(--font-body); text-decoration: none;
  border: 1.5px solid var(--ink); cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  background: transparent; color: var(--ink);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: #2a2a2a; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; text-decoration: none; display: flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.logo span { color: var(--paper); -webkit-text-stroke: 1.6px var(--ink); paint-order: stroke fill; letter-spacing: 0.03em; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px; background: var(--ink); transition: right .25s; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 10px; font-size: 13px; font-weight: 500; }
.lang button { background: none; border: 0; padding: 2px 0; cursor: pointer; color: #9a9a9a; font: inherit; border-bottom: 1.5px solid transparent; }
.lang button.active { color: var(--ink); border-bottom-color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; padding: 0; margin-right: -8px; width: 48px; height: 48px; cursor: pointer; color: var(--ink); -webkit-tap-highlight-color: transparent; }

.menu-toggle svg { width: 32px; height: 32px; }
/* Material Symbols icons (menu / close, weight 200), filled with the text colour */
.menu-toggle path, .menu-close path { fill: currentColor; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- Full-screen mobile menu ---------- */
/* White page, black type: same colours and headline font as the rest of the site */
.menu-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh; overflow-y: auto;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.menu-overlay.is-open { opacity: 1; transform: none; }
.menu-overlay[hidden] { display: none; }
body.menu-open { overflow: hidden; }
.menu-overlay__top { display: flex; align-items: center; justify-content: space-between; height: 76px; flex: none; }
.menu-close { background: none; border: 0; padding: 0; margin-right: -8px; color: var(--ink); cursor: pointer; width: 48px; height: 48px; display: grid; place-items: center; }
.menu-close svg { width: 32px; height: 32px; } /* icon 32px, tap area 48px */
.menu-toggle:focus-visible, .menu-close:focus-visible, .menu-overlay a:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.menu-overlay__links { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: clamp(14px, 3.5vh, 28px); padding-block: 32px; }
.menu-overlay__links a {
  font-family: var(--font-display); font-weight: 800; text-decoration: none; color: var(--ink);
  font-size: clamp(32px, 9.2vw, 84px); line-height: 1.12; padding-block: 6px; /* taller tap area per item */ letter-spacing: -0.03em; white-space: nowrap; /* sized so "Varumärke & Design" fits on one line */
  opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease;
}
/* other pages: outlined; current page: solid black */
.menu-overlay__links a:not([aria-current="page"]) { color: var(--paper); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; letter-spacing: -0.015em; }
.menu-overlay.is-open .menu-overlay__links a { opacity: 1; transform: none; }
.menu-overlay.is-open .menu-overlay__links a:nth-child(2) { transition-delay: .05s; }
.menu-overlay.is-open .menu-overlay__links a:nth-child(3) { transition-delay: .1s; }
.menu-overlay.is-open .menu-overlay__links a:nth-child(4) { transition-delay: .15s; }
.menu-overlay.is-open .menu-overlay__links a:nth-child(5) { transition-delay: .2s; }
/* email left, tap-to-call phone right, in the normal body text style */
/* same type as the email/phone in the footer */
.menu-overlay__bottom { flex: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; padding-top: 22px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.menu-overlay__bottom a { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 40px); letter-spacing: -0.02em; }
@media (prefers-reduced-motion: reduce) {
  .menu-overlay, .menu-overlay__links a { transition: none; transform: none; }
}

/* ---------- Photo placeholders (swap for real <img> later) ---------- */
.ph {
  position: relative; overflow: hidden; background: var(--soft);
  background-image: linear-gradient(135deg, rgba(0,0,0,.02), rgba(0,0,0,.10));
  aspect-ratio: 4 / 5; border-radius: 4px;
}
.ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0); }
.ph[data-label]::after {
  content: attr(data-label);
  position: absolute; left: 18px; bottom: 14px;
  font-family: var(--font-hand); font-size: 22px; color: rgba(0,0,0,.45);
}
.ph--wide { aspect-ratio: 16 / 10; }
.ph--square { aspect-ratio: 1; }
.ph--tall { aspect-ratio: 3 / 4; }
.bw img { filter: grayscale(1); }

/* ---------- Home hero (split, Bazil-style) ---------- */
.home-hero { text-align: center; padding-top: clamp(48px, 8vw, 110px); }
.home-hero .mega { display: block; font-size: clamp(48px, 10.4vw, 168px); }
.home-hero .mega.outline {
  letter-spacing: -0.012em;
  /* fill with the page colour and paint the stroke underneath, so the font's
     overlapping shapes (inside t, e, g…) don't show as stray lines */
  color: var(--paper); -webkit-text-stroke: 2.4px var(--ink); paint-order: stroke fill;
}
/* Swedish headlines have descenders on the first line ("partner", "jag"), so give the second line more room */
/* "Varumärkespartner" is one long word: scale the Swedish home headline so it stays on one line */
html[lang="sv"] .home-hero .mega { font-size: clamp(30px, 8.4vw, 136px); }
html[lang="sv"] .home-hero .mega.outline,
html[lang="sv"] .about-teaser__title .outline { margin-top: 0.14em; }
.door-col { display: flex; flex-direction: column; min-width: 0; }
.door-col .note { font-size: clamp(22px, 2.2vw, 30px); display: block; margin: 0 0 12px clamp(8px, 3vw, 44px); transform: rotate(-4deg); transform-origin: left bottom; align-self: flex-start; }
.door-col--note-end .note { margin: 0 clamp(8px, 3vw, 44px) 12px 0; transform: rotate(4deg); transform-origin: right bottom; align-self: flex-end; text-align: right; }
.door-col .door { flex: 1; }

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(96px, 13vw, 190px); }
.door {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: clamp(460px, 62vw, 720px); padding: clamp(24px, 3vw, 44px);
  text-decoration: none; border-radius: 6px; overflow: hidden; isolation: isolate;
}
.door h2 { font-size: clamp(40px, 6vw, 92px); }
.door .door-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.door .door-foot p { max-width: 30ch; margin: 0; }
.door .circle {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-size: 24px;
  transition: transform .3s ease;
}
.door:hover .circle { transform: rotate(-45deg) scale(1.08); }
.door--photo { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); } /* outlined, like "& Photographer" */
.door--photo .ph { position: absolute; inset: 0; aspect-ratio: auto; z-index: -1; border-radius: 0; background: none; }
.door--photo .circle { background: var(--ink); color: #fff; }
.door--photo h2 { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; }
.door--brand { background: var(--ink); color: #fff; border: 1.5px solid var(--ink); } /* same border width as the photo card, so both line up */
.door--brand::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.door--brand .circle { background: #fff; color: var(--ink); }
.door .tag { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
@media (max-width: 800px) { .doors { grid-template-columns: 1fr; gap: 32px; } .door { min-height: 440px; } }

/* ---------- Home: about teaser (portrait over headline, text underneath) ---------- */
.about-teaser { --title-size: clamp(56px, 11.5vw, 184px); display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.about-teaser__title { margin-top: 24px; position: relative; z-index: 0; font-size: var(--title-size); line-height: .94; letter-spacing: -0.035em; }
.about-teaser__title > span { display: block; }
.about-teaser__title .outline { color: var(--paper); -webkit-text-stroke: 2.4px var(--ink); paint-order: stroke fill; letter-spacing: -0.012em; }
/* pull the portrait up so the head sits in front of the second (outlined) line */
.about-teaser__photo {
  position: relative; z-index: 1;
  width: min(520px, 80%); height: auto;
  margin-top: calc(var(--title-size) * -0.5);
  filter: grayscale(1);
  /* the photo has its own soft fade baked in, so no CSS mask here */
}
.about-teaser__text { position: relative; z-index: 2; max-width: 62ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; margin: clamp(32px, 4vw, 56px) 0 28px; }
.about-teaser__link { position: relative; z-index: 2; }
@media (max-width: 860px) {
  .about-teaser__title .outline { -webkit-text-stroke-width: 1.6px; }
  .about-teaser__photo { width: min(420px, 86%); margin-top: calc(var(--title-size) * -0.28); }
  .about-teaser__text { max-width: 34ch; margin-top: 28px; }
  .about-teaser__text br { display: none; } /* let the text flow on phones instead of leaving one-word lines */
}

/* ---------- Generic layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 6px; padding: 32px; background: var(--paper); }
.card h3 { margin-bottom: 14px; }
.card .num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--muted); margin-bottom: 40px; display: block; }

/* Section headings: title on top, intro text underneath (same on every page) */
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(24px, 3vw, 36px); margin-bottom: clamp(40px, 5vw, 72px); }
.section-head p { max-width: 60ch; margin: 0; }

/* ---------- Photography page ---------- */
.photo-hero { padding-top: clamp(40px, 6vw, 88px); }
.photo-hero h1 { font-family: var(--font-serif); font-weight: 400; font-style: italic; font-size: clamp(60px, 11.5vw, 200px); line-height: .88; letter-spacing: -0.035em; }
.photo-hero h1 .sans { font-family: var(--font-display); font-style: normal; font-weight: 800; letter-spacing: -0.035em; }
.photo-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 16px; margin-top: clamp(40px, 6vw, 80px); align-items: end; }
.photo-hero-grid .ph:nth-child(2) { aspect-ratio: 3/4; }
@media (max-width: 800px) { .photo-hero-grid { grid-template-columns: 1fr 1fr; } .photo-hero-grid .ph:first-child { grid-column: span 2; aspect-ratio: 4/3; } }

.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat { text-decoration: none; display: block; }
.cat .ph { aspect-ratio: 3/4; margin-bottom: 16px; transition: transform .4s ease; }
.cat:hover .ph { transform: scale(.98); }
.cat h3 { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.02em; }
.cat p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
@media (max-width: 640px) { .categories { grid-template-columns: 1fr; } }

.story { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-bottom: clamp(64px, 9vw, 130px); }
.story-info { grid-column: 1 / span 4; align-self: end; }
.story-info h3 { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(36px, 4vw, 60px); letter-spacing: -0.02em; margin-bottom: 12px; }
.story .ph:nth-child(2) { grid-column: 5 / span 5; aspect-ratio: 4/5; }
.story .ph:nth-child(3) { grid-column: 10 / span 3; aspect-ratio: 3/4; align-self: end; }
.story--flip .story-info { grid-column: 9 / span 4; grid-row: 1; }
.story--flip .ph:nth-child(2) { grid-column: 4 / span 5; grid-row: 1; }
.story--flip .ph:nth-child(3) { grid-column: 1 / span 3; grid-row: 1; align-self: start; }
@media (max-width: 800px) {
  .story, .story--flip { grid-template-columns: 1fr 1fr; }
  .story .story-info, .story--flip .story-info { grid-column: 1 / -1; grid-row: auto; }
  .story .ph:nth-child(2), .story--flip .ph:nth-child(2) { grid-column: 1; grid-row: auto; }
  .story .ph:nth-child(3), .story--flip .ph:nth-child(3) { grid-column: 2; grid-row: auto; }
}

/* Gallery pages: photo wall with mixed shapes */
.gallery { columns: 3; column-gap: 16px; }
.gallery .ph { break-inside: avoid; margin-bottom: 16px; width: 100%; }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }
/* Gallery "coming soon": one-line illustration that draws itself in */
.wip { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.wip__visual { position: relative; }
.wip__art { width: 100%; height: auto; display: block; overflow: visible; }
.wip__art path, .wip__art circle { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s ease; }
.wip__art .wip__fill { fill: var(--paper); }
.wip__visual.in .wip__art path, .wip__visual.in .wip__art circle { stroke-dashoffset: 0; }
.wip__note { position: absolute; top: 0; right: 4%; font-size: clamp(22px, 2.2vw, 28px); transform: rotate(-4deg); }
@media (prefers-reduced-motion: reduce) { .wip__art path, .wip__art circle { stroke-dashoffset: 0; transition: none; } }
@media (max-width: 860px) { .wip { grid-template-columns: 1fr; } .wip__note { position: static; display: block; margin-bottom: 8px; } }
.packages--single { max-width: 520px; }
.story-info .link-arrow { display: inline-block; margin-top: 18px; }
.photo-hero .eyebrow a { text-decoration: none; border-bottom: 1px solid currentColor; }
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.package { border-top: 1.5px solid var(--ink); padding-top: 22px; }
.package h3 { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 38px; letter-spacing: -0.02em; }
.package .price { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin: 10px 0 18px; }
.package ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 15px; }
.package li { padding: 9px 0; border-bottom: 1px solid var(--line); }

.extras { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); font-size: 15px; }

.quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(30px, 4vw, 58px); line-height: 1.1; letter-spacing: -0.02em; max-width: 22ch; margin: 0 auto; text-align: center; }
.quote-by { text-align: center; margin-top: 28px; color: var(--muted); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { counter-increment: step; }
.step::before { content: "0" counter(step); display: block; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--muted); margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.step h3 { font-size: 26px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }
.step p strong { color: var(--ink); font-weight: 600; }

/* ---------- Bridge (corporate = both sides) ---------- */
.bridge { background: var(--ink); color: #fff; border-radius: 6px; padding: clamp(32px, 6vw, 88px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.bridge .eyebrow { color: rgba(255,255,255,.6); }
.bridge .btn { border-color: #fff; color: #fff; }
.bridge .btn--solid { background: #fff; color: var(--ink); }
@media (max-width: 860px) { .bridge { grid-template-columns: 1fr; } }

/* ---------- Brand page ---------- */
.brand-hero { padding-top: clamp(40px, 6vw, 88px); position: relative; }
.brand-hero .h1 { max-width: none; font-size: clamp(40px, 4.9vw, 78px); text-wrap: wrap; } /* sized so each of the two lines fits the column */
.brand-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .brand-hero__grid { grid-template-columns: 1fr; } }

/* ---------- Brand hero: crossed-out wish list ---------- */
.wishlist {
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px;
  padding: clamp(28px, 3.5vw, 48px); transform: rotate(1.5deg);
  box-shadow: 10px 10px 0 var(--ink);
  max-width: 460px; justify-self: end; width: 100%;
}
.wishlist.reveal.in { transform: rotate(1.5deg); }
.wishlist__title { font-size: clamp(24px, 2.2vw, 30px); margin: 0 0 18px; color: var(--muted); }
.wishlist ul { list-style: none; margin: 0; padding: 0; }
.wishlist li {
  display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.015em; line-height: 1.15;
}
.wishlist li:last-child { border-bottom: 0; }
.wishlist .box { flex: none; width: 24px; height: 24px; margin-top: .15em; border: 2px solid var(--ink); border-radius: 4px; display: grid; place-items: center; }
.wish-text { position: relative; }
.wishlist li:not(.is-real) .wish-text > span { color: #9a9a9a; transition: color .4s ease; }
.wish-strike { position: absolute; left: -6%; width: 112%; top: 38%; height: .45em; overflow: visible; pointer-events: none; }
.wish-strike path, .wishlist .box svg path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wish-strike path { stroke-width: 4; }
.wishlist .box svg { width: 20px; height: 20px; overflow: visible; }
.wishlist .is-real .wish-text { color: var(--ink); }
.wishlist__note { font-size: clamp(22px, 2vw, 28px); margin: 14px 0 0; text-align: right; transform: rotate(-3deg); }

/* draw-in animation: runs once the card is revealed */
.wish-strike path, .wishlist .box svg path { stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset .55s ease; }
.wishlist .box svg path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.wishlist__note { opacity: 0; transition: opacity .5s ease 2.3s; }
.wishlist.in .wish-strike path, .wishlist.in .box svg path { stroke-dashoffset: 0; }
.wishlist.in li:nth-child(1) .wish-strike path { transition-delay: .5s; }
.wishlist.in li:nth-child(2) .wish-strike path { transition-delay: .95s; }
.wishlist.in li:nth-child(3) .wish-strike path { transition-delay: 1.4s; }
.wishlist.in li:nth-child(4) .box svg path { transition-delay: 1.95s; }
.wishlist.in .wishlist__note { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .wish-strike path, .wishlist .box svg path { stroke-dashoffset: 0 !important; transition: none !important; }
  .wishlist__note { opacity: 1; transition: none; }
}
@media (max-width: 900px) { .wishlist { justify-self: start; transform: rotate(1deg); margin-right: 10px; } }
.brand-hero .hand-note { font-size: clamp(26px, 3vw, 42px); display: inline-block; transform: rotate(-4deg); margin-bottom: 10px; }
.strike { position: relative; display: inline-block; }
.strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: .09em; background: var(--ink); transform: rotate(-3deg); }

.myth { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.myth > div { padding: 28px 28px 0 0; }
@media (max-width: 900px) { .myth > div { padding-bottom: 28px; } .myth > div + div { border-top: 1px solid var(--line); } } /* stacked: thin line between items only */
.myth .think { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.myth .think s { text-decoration-thickness: 1.5px; }
.myth .real { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; line-height: 1.28; }

/* Ways to work together: hourly / project / partnership (highlighted) */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.model { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--ink); border-radius: 6px; padding: clamp(28px, 3vw, 44px); background: var(--paper); }
.model h3 { font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 10px; }
.model__price { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 22px; }
.model ul { list-style: none; padding: 0; margin: 0; flex: 1; }
.model li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.model__desc { margin: 0 0 18px; font-size: 16px; line-height: 1.5; color: var(--muted); min-height: 3em; } /* min-height keeps the prices aligned across cards */
.model__note { position: absolute; top: -40px; right: 20px; font-size: 26px; color: var(--ink); transform: rotate(-4deg); }
/* Free diagnosis call-to-action under the three models */
.diag-band { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  margin-top: 16px; padding: clamp(28px, 4vw, 48px); border-radius: 6px; background: var(--ink); color: #fff; }
.diag-band h3 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 10px; text-wrap: wrap; }
.diag-band p { margin: 0; color: rgba(255,255,255,.7); }
.diag-band .btn { background: #fff; color: var(--ink); border-color: #fff; flex: none; }
@media (max-width: 900px) { .models { grid-template-columns: 1fr; } .model__note { top: -36px; } .models .model:last-child { margin-top: 28px; } }
.services-list { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.services-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 44px); letter-spacing: -0.025em; line-height: 1.15; }
.services-list li small { font-family: var(--font-body); font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--muted); max-width: 34ch; text-align: right; }
@media (max-width: 700px) { .services-list li { flex-direction: column; } .services-list li small { text-align: left; } }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.metric { padding: 28px 20px 28px 0; border-bottom: 1px solid var(--line); }
.metric b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 5vw, 76px); letter-spacing: -0.035em; line-height: 1; }
.metric span { color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .metrics { grid-template-columns: 1fr 1fr; } }

.founding { border: 1.5px dashed var(--ink); border-radius: 6px; padding: clamp(28px, 5vw, 64px); background: var(--paper); }

/* ---------- About ---------- */
.about-hero .h1 { max-width: none; font-size: clamp(40px, 5vw, 84px); }
.about-hero__title span { display: block; }
.about-hero__title .kr { display: inline; }
.about-hero__title .outline { color: var(--paper); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; letter-spacing: -0.012em; margin-top: .06em; }
.about-hero .lead { max-width: 52ch; }
/* My story: plain paragraphs with breathing room, same size and colour throughout */
.story-text p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; margin: 0 0 1.2em; max-width: 60ch; }
.story-text strong { font-weight: 600; }
.story-quote { font-size: clamp(26px, 2.4vw, 34px); max-width: 20ch; margin-top: 28px; transform: rotate(-3deg); transform-origin: left; }
@media (max-width: 860px) { .about-hero__title .outline { -webkit-text-stroke-width: 1.4px; } }
.about-photo { position: relative; }
/* Portrait (the image has its own soft fade at the bottom) */
.about-photo__img { display: block; width: 100%; max-width: 560px; margin: 0 auto; height: auto; filter: grayscale(1); }

/* ---------- Contact ---------- */
.contact-ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 760px) { .contact-ways { grid-template-columns: 1fr; } } /* stacked on phones */
.way { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: var(--paper); transition: border-color .2s, transform .2s; }
.way:hover { border-color: var(--ink); transform: translateY(-2px); }
.way strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; }
.way span { color: var(--muted); font-size: 14px; }

.form { max-width: 760px; }
.field { margin-bottom: 34px; }
.field > label, .field > .label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--line); background: transparent;
  padding: 12px 0; font: 18px var(--font-body); color: var(--ink); border-radius: 0;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field-row--when { grid-template-columns: 1fr 1.5fr; } /* "Where?" has the longer hint */
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices { position: relative; }
.choices input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; } /* hidden, pinned so it never widens the page */
.choices label { padding: 11px 20px; border-radius: var(--radius); border: 1px solid #cfcfcf; cursor: pointer; font-size: 15px; transition: all .15s; user-select: none; }
.choices label:hover { border-color: var(--ink); }
.choices input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choices input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-tabs { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 4px; margin-bottom: 44px; }
.form-tabs button { border: 0; background: none; padding: 12px 22px; border-radius: var(--radius); font: 500 15px var(--font-body); cursor: pointer; color: var(--ink); }
.form-tabs button.active { background: var(--ink); color: var(--paper); }
[data-for] { display: none; }
[data-for].show { display: block; }
.form-status { margin-top: 18px; font-weight: 500; }
.form-section { margin: 8px 0 24px; padding-top: 8px; }
.form-section ~ .form-section { margin-top: 24px; }
.form-note { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
/* Flexible / Fixed / Forward chips with a small explanation under the name */
.choices--sub label { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 16px; padding: 12px 20px; line-height: 1.2; }
.choices--sub label span { font-weight: 500; }
.choices--sub label small { font-size: 13px; color: var(--muted); }
.choices--sub input:checked + label small { color: rgba(255,255,255,.75); }

/* ---------- Contact: single centred column ---------- */
.contact-stack { max-width: 760px; margin: 0 auto; }
.contact-stack__head { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.contact-stack .form { max-width: none; }
.contact-stack .form-tabs { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
.next-steps { margin-top: clamp(80px, 10vw, 140px); }
.next-steps .steps { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .next-steps .steps { grid-template-columns: 1fr; } }

/* ---------- 404 page ---------- */
.nf { padding-block: clamp(40px, 7vw, 100px) clamp(72px, 10vw, 140px); }
.nf__code { display: flex; align-items: center; gap: .04em; margin: 8px 0 clamp(24px, 3vw, 40px); font-size: clamp(120px, 26vw, 360px); line-height: .9; letter-spacing: -0.04em; }
.nf__lens { width: .74em; height: .74em; flex: none; overflow: visible; }
.nf__lens circle, .nf__lens path { fill: none; stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.nf__lens path { stroke-linecap: round; }
@media (max-width: 860px) { .nf__lens circle, .nf__lens path { stroke-width: 1.4; } }
/* the lens keeps "hunting" for focus: blur in and out, like an autofocus that can't lock on */
.nf__lens { animation: nf-focus 3.2s ease-in-out infinite; }
.nf__iris { transform-origin: 50px 50px; animation: nf-iris 3.2s ease-in-out infinite; }
@keyframes nf-focus { 0%, 100% { filter: blur(0); } 40% { filter: blur(3px); } 55% { filter: blur(.5px); } 70% { filter: blur(2px); } }
@keyframes nf-iris { 0%, 100% { transform: scale(1); } 40% { transform: scale(.55); } 70% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .nf__lens, .nf__iris { animation: none; } }
.nf__note { font-size: clamp(24px, 2.4vw, 32px); margin: 16px 0 0; transform: rotate(-3deg); transform-origin: left; display: inline-block; }

/* ---------- Date picker ---------- */
.datepick { position: relative; }
.datepick input { cursor: pointer; }
.cal {
  position: absolute; z-index: 20; top: calc(100% + 10px); left: 0; width: 320px; max-width: calc(100vw - 2 * var(--gutter));
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; padding: 18px;
  box-shadow: 8px 8px 0 var(--ink); font-family: var(--font-body);
}
.cal[hidden] { display: none; }
.cal { cursor: default; }
/* pointer only on things you can actually click */
.cal__nav:not(:disabled), .cal__link, .cal__grid button:not(:disabled) { cursor: pointer; }
.cal__nav:disabled, .cal__grid button:disabled { cursor: default; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal__head strong { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.cal__nav { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; color: var(--ink); cursor: pointer; font-size: 16px; }
.cal__nav:disabled { opacity: .25; cursor: default; }
.cal__days, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; text-align: center; } /* no gaps, so the pointer doesn't flicker between days */
.cal__days span { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }
.cal__grid button {
  aspect-ratio: 1; border: 0; background: none; border-radius: 50%; cursor: pointer;
  font: 500 15px var(--font-body); color: var(--ink); transition: background .15s, color .15s;
}
.cal__grid button:hover:not(:disabled) { background: var(--soft); }
.cal__grid button.is-today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal__grid button.is-selected { background: var(--ink); color: var(--paper); }
.cal__grid button:disabled { color: #c9c9c9; cursor: default; }
.cal button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cal__foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.cal__link { background: none; border: 0; padding: 4px 0; font: 500 14px var(--font-body); color: var(--muted); cursor: pointer; }
.cal__link:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: clamp(64px, 9vw, 120px) 0 36px; margin-top: 0; }
.site-footer a { text-decoration: none; }
/* "Let's talk" on the left, the panda on the right (above the phone number), bottoms aligned */
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.footer-cta { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: .95; font-size: clamp(48px, 10vw, 160px); min-width: 0; }
.footer-panda { flex: none; width: auto; height: clamp(64px, 9vw, 150px); margin-bottom: .02em; }
.footer-cta .hand { font-weight: 600; letter-spacing: 0; font-size: .45em; display: block; color: #9a9a9a; margin-bottom: 8px; }
.footer-big { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 40px); letter-spacing: -0.02em; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-big a:hover { text-decoration: underline; text-underline-offset: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 28px; font-size: 14px; color: #9a9a9a; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.center { text-align: center; }
.mt-s { margin-top: 20px; } .mt-m { margin-top: 40px; } .mt-l { margin-top: 72px; }
.mb-s { margin-bottom: 20px; } .mb-m { margin-bottom: 40px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Small-screen safety: long (Swedish) words must never widen the page ---------- */
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; text-wrap: balance; } /* even line lengths, no lone last word */
p, .lead { text-wrap: pretty; }
.door, .doors > *, .split > *, .story > * { min-width: 0; }
.btn { max-width: 100%; white-space: normal; text-align: left; }
@media (max-width: 600px) {
  .home-hero .mega { font-size: clamp(34px, 11vw, 60px); }
  .home-hero .mega.outline { -webkit-text-stroke-width: 1.6px; }
  .door h2 { font-size: clamp(34px, 10vw, 48px); }
}
@media (max-width: 600px) { .door-col .note { font-size: 22px; } }
