/* ============================================================
   AppFocus — Swiss editorial (light), centered, with motion
   ============================================================ */

:root {
  --paper:    #f4f3f0;
  --paper-2:  #ecebe6;
  --ink:      #161616;
  --ink-2:    #6d6c69;
  --accent:   #2119c3;
  --gold:     #e3a92e;
  --line:     rgba(22,22,22,0.12);
  --line-2:   rgba(22,22,22,0.22);

  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1180px;
  --pad: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(125% 75% at 50% -8%, rgba(255,255,253,0.5), transparent 55%); }
body::after { content: ''; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.11; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }

.eyebrow { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: inline-block; }
.arr { font-style: normal; display: inline-block; }

/* ---------------- Reveal ---------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.quotes .quote:nth-child(2) { transition-delay: 0.1s; }
.quotes .quote:nth-child(3) { transition-delay: 0.2s; }
.hero__video.reveal { transition-delay: 0.15s; }

/* ---------------- Header ---------------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 80; padding: 14px var(--gutter); }
.top__bar { max-width: 1060px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 58px; padding: 0 24px; border-radius: 100px; background: rgba(247,246,243,0.55); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); border: 1px solid rgba(255,255,255,0.55); box-shadow: 0 10px 34px -14px rgba(22,22,22,0.22), inset 0 1px 0 rgba(255,255,255,0.65); transition: background 0.3s var(--ease), box-shadow 0.3s; }
.top__bar.stuck { background: rgba(247,246,243,0.78); box-shadow: 0 14px 40px -16px rgba(22,22,22,0.3), inset 0 1px 0 rgba(255,255,255,0.65); }
.top__logo { display: inline-flex; align-items: center; gap: 9px; }
.top__logo img { height: 26px; width: auto; }
.top__logo span { font-weight: 800; font-size: 1.18rem; letter-spacing: -0.03em; color: var(--ink); }
.top__nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.lang-switch { display: inline-flex; align-items: center; gap: 7px; }
.lang-switch__opt { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; line-height: 1; transition: color 0.2s var(--ease); }
.lang-switch__opt:hover { color: var(--ink); }
.lang-switch__opt.is-active { color: var(--ink); font-weight: 600; }
.lang-switch__sep { font-family: var(--mono); font-size: 0.78rem; line-height: 1; color: var(--line-2); -webkit-user-select: none; user-select: none; }
.top__nav a { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); transition: color 0.2s; white-space: nowrap; }
.top__nav a:hover { color: var(--ink); }
.top__nav .top__cta { color: #fff; background: var(--accent); padding: 9px 17px; border-radius: 100px; transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.top__nav .top__cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(33,25,195,0.7); }
.top__burger { display: none; flex-direction: column; gap: 6px; padding: 6px; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.top__burger:focus, .top__burger:focus-visible { outline: none; }
.top__burger:focus-visible span { background: var(--accent); }
.top__burger span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.top__burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.top__burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
html.nav-open { overflow: hidden; }
/* While the window is actively being resized, freeze the bar/menu transitions.
   Crossing the burger breakpoint would otherwise fade the full-screen overlay in or out for a frame. */
html.is-resizing .top__bar,
html.is-resizing .top__nav,
html.is-resizing .top__nav a { transition: none !important; }

/* ---------------- Hero (centered) ---------------- */
.hero { padding: clamp(102px, 13vh, 150px) 0 clamp(18px, 2.2vw, 32px); text-align: center; }
.hero__inner { max-width: 1040px; margin: 0 auto; padding-inline: var(--pad); }
.hero .eyebrow { margin-bottom: 20px; }
.hero__title { font-size: clamp(2.5rem, 5.7vw, 4.8rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.hero__sub { margin: 22px auto 0; max-width: 56ch; color: var(--ink-2); font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.5; }
.hero__cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__video { max-width: var(--maxw); margin: clamp(44px, 5vw, 72px) auto 0; padding-inline: var(--gutter); }
.hero__video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 46px 90px -46px rgba(0,0,0,0.4); display: block; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; padding: 0.85em 1.5em; border-radius: 100px; background: var(--accent); color: #fff; border: 1px solid var(--accent); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(33,25,195,0.6); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: none; }

/* ---------------- Clients (centered) ---------------- */
.clients { position: relative; padding: clamp(24px, 2.8vw, 36px) var(--pad) clamp(34px, 4vw, 52px); text-align: center; }
.clients .eyebrow { color: var(--ink-2); display: block; margin-bottom: 26px; }
.clients__row { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 32px; max-width: 900px; margin: 0 auto; }
.clients__row li { display: grid; place-items: center; }
.clients__row img { height: 30px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1) brightness(0); opacity: 0.55; transition: opacity 0.25s; }
.clients__row img[src*="benefitimpact"] { height: 38px; max-width: 185px; }
.clients__row li:hover img { opacity: 0.9; }

/* ---------------- Block scaffold ---------------- */
.block { position: relative; padding: clamp(52px, 6vw, 86px) var(--pad); }
.block::after, .clients::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(calc(100% - 2 * var(--gutter)), var(--maxw)); height: 1px; background: var(--line); }
.block--alt { background: var(--paper-2); }
.block__head { margin-bottom: clamp(30px, 3.6vw, 48px); }
.block__head .eyebrow { display: block; margin-bottom: 16px; }
.block__title { font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.04; letter-spacing: -0.025em; }
.block__sub { margin-top: 18px; color: var(--ink-2); font-size: 1.06rem; line-height: 1.5; }
.block__head--center { text-align: center; max-width: 760px; margin-inline: auto; }
.block__head--center .block__sub { max-width: 52ch; margin-inline: auto; }

/* ---------------- Case studies ---------------- */
.block--work { padding-bottom: clamp(34px, 4vw, 60px); }
.work { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 4.5vw, 60px); align-items: center; padding: clamp(32px, 4.5vw, 58px) 0; border-top: 1px solid var(--line); }
.work--rev .work__shots { order: -1; }
.work__no { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }
.work__name { font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.7rem); letter-spacing: -0.025em; line-height: 1; margin: 12px 0 18px; }
.work__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.work__facts li { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 100px; padding: 6px 13px; }
.work__text { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; max-width: 48ch; }
.work__text + .work__text { margin-top: 14px; }
.work__shots { display: flex; gap: 16px; justify-content: center; }

/* device shots + motion */
.shot { background: var(--ink); padding: 7px; border-radius: 30px; box-shadow: 0 36px 64px -36px rgba(0,0,0,0.5); flex: 0 0 auto; }
.shot img { width: 200px; aspect-ratio: 9 / 19.3; object-fit: cover; border-radius: 24px; display: block; }
.shot.zoom { animation: floaty 7s ease-in-out infinite; }
.work__shots .shot.zoom:nth-child(2) { animation-duration: 8s; animation-delay: -2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-12px) scale(1.025); } }

/* ---------------- Quotes (clean cards) ---------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; display: flex; flex-direction: column; box-shadow: 0 2px 3px rgba(22,22,22,0.03); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.quote:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(22,22,22,0.28); }
.quote__stars { color: var(--gold); letter-spacing: 3px; font-size: 0.9rem; margin-bottom: 16px; }
.quote blockquote { font-size: 0.98rem; line-height: 1.55; color: var(--ink); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote figcaption img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: flex; flex-direction: column; font-family: var(--mono); font-size: 0.73rem; color: var(--ink-2); }
.quote figcaption b { font-family: var(--sans); font-size: 0.94rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }

/* ---------------- Timeline ---------------- */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.6vw, 34px); position: relative; }
.timeline::before { content: ''; position: absolute; top: 29px; left: 12%; right: 12%; height: 2px; background: var(--line-2); }
.timeline::after { content: ''; position: absolute; top: 29px; left: 12%; width: 0; height: 2px; background: var(--accent); transition: width 1.5s var(--ease) 0.2s; }
.timeline.in::after { width: 76%; }
.tl { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tl__num { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 1rem; font-weight: 600; margin-bottom: 24px; box-shadow: 0 8px 20px -8px rgba(33,25,195,0.55); transform: scale(0.4); opacity: 0; transition: transform 0.55s var(--ease), opacity 0.5s; }
.timeline.in .tl__num { transform: scale(1); opacity: 1; }
.timeline.in .tl:nth-child(1) .tl__num { transition-delay: 0.2s; }
.timeline.in .tl:nth-child(2) .tl__num { transition-delay: 0.55s; }
.timeline.in .tl:nth-child(3) .tl__num { transition-delay: 0.9s; }
.timeline.in .tl:nth-child(4) .tl__num { transition-delay: 1.25s; }
.tl h3 { font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.tl p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; max-width: 30ch; }

/* ---------------- Studio ---------------- */
.studio { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.studio__portrait { margin: 0; }
.studio__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; box-shadow: 0 44px 80px -44px rgba(0,0,0,0.45); }
.studio__big { font-size: clamp(1.4rem, 2.4vw, 2.2rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.32; margin: 0; }
.studio__by { margin-top: 28px; display: flex; flex-direction: column; }
.studio__by b { font-size: 1.1rem; font-weight: 700; }
.studio__by span { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); margin-top: 4px; }

/* ---------------- CTA (centered) ---------------- */
.cta { background: var(--accent); color: #fff; padding: clamp(72px, 10vw, 124px) var(--pad); text-align: center; }
.cta > div { max-width: 900px; margin: 0 auto; }
.cta .eyebrow { color: rgba(255,255,255,0.72); margin-bottom: 18px; }
.cta__title { font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -0.03em; }
.cta__text { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 40ch; margin: 22px auto 28px; color: rgba(255,255,255,0.85); }
.cta__mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 2rem); letter-spacing: -0.02em; border-bottom: 2px solid rgba(255,255,255,0.5); padding-bottom: 4px; transition: border-color 0.2s; }
.cta__mail:hover { border-color: #fff; }

/* ---------------- Footer ---------------- */
.foot { background: var(--ink); color: var(--paper); padding: clamp(54px, 6vw, 82px) var(--pad) 0; }
.foot__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot__logo { height: 26px; width: auto; margin-bottom: 8px; }
.foot__col > p { color: rgba(244,243,240,0.6); font-size: 0.9rem; max-width: 26ch; }
.foot__lbl { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(244,243,240,0.4); margin-bottom: 4px; }
.foot__col a, .foot__col span:not(.foot__lbl) { color: rgba(244,243,240,0.7); font-size: 0.9rem; transition: color 0.2s; }
.foot__col a:hover { color: #fff; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(46px, 6vw, 72px); padding: 22px 0 30px; border-top: 1px solid rgba(244,243,240,0.14); font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(244,243,240,0.45); flex-wrap: wrap; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .work, .studio { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .timeline::before, .timeline::after { display: none; }
  .work--rev .work__shots { order: 0; }
  .work { max-width: 600px; margin-inline: auto; gap: clamp(40px, 6vw, 56px); }
  .work__shots { justify-content: center; }
  /* Single column: center the copy so it matches the centered section header */
  .work__meta { text-align: center; }
  .work__facts { justify-content: center; }
  .work__meta .techstack { justify-content: center; }
  .work__text { max-width: 50ch; margin-inline: auto; }
  .quotes { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .spoints { grid-template-columns: 1fr 1fr; }
  .loc__inner { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .top__bar, .top__bar.stuck { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(244,243,240,0.98); }
  .top__logo, .top__burger, .lang-switch { position: relative; z-index: 90; }
  .top__burger { display: flex; }
  .lang-switch { margin-left: auto; }
  .top__nav {
    position: fixed; inset: 0; z-index: 70;
    display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 0;
    padding: 0 clamp(30px, 8vw, 52px); counter-reset: navitem;
    background: rgba(244,243,240,0.97); -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }
  .top__nav.open { opacity: 1; visibility: visible; }
  .top__nav a { opacity: 0; transform: translate3d(0, 22px, 0); will-change: opacity, transform; backface-visibility: hidden; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.2s; }
  .top__nav.open a { opacity: 1; transform: translate3d(0, 0, 0); }
  .top__nav a:not(.top__cta) {
    display: flex; align-items: baseline; gap: 18px; width: 100%;
    padding: clamp(20px, 3.4vh, 30px) 2px; border-bottom: 1px solid var(--line);
    font-family: var(--sans); font-size: clamp(1.7rem, 8vw, 2.3rem); font-weight: 600;
    letter-spacing: -0.025em; text-transform: none; color: var(--ink); white-space: normal;
  }
  .top__nav a:not(.top__cta):first-of-type { border-top: 1px solid var(--line); }
  .top__nav a:not(.top__cta)::before {
    counter-increment: navitem; content: "0" counter(navitem);
    font-family: var(--mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em;
    color: var(--accent); line-height: 1;
  }
  .top__nav a:not(.top__cta)::after {
    content: "\2197"; margin-left: auto; align-self: center;
    font-size: 1.15rem; color: var(--ink-2); transition: transform 0.2s var(--ease), color 0.2s;
  }
  .top__nav a:not(.top__cta):hover { color: var(--accent); }
  .top__nav a:not(.top__cta):hover::after { color: var(--accent); transform: translate(3px, -3px); }
  .top__nav.open a:nth-child(1) { transition-delay: 0.04s; }
  .top__nav.open a:nth-child(2) { transition-delay: 0.09s; }
  .top__nav.open a:nth-child(3) { transition-delay: 0.14s; }
  .top__nav.open a:nth-child(4) { transition-delay: 0.19s; }
  .top__nav.open a:nth-child(5) { transition-delay: 0.24s; }
  .top__nav.open a:nth-child(6) { transition-delay: 0.29s; }
  .top__nav .top__cta {
    align-self: stretch; text-align: center; text-transform: none;
    background: var(--accent); color: #fff; padding: 19px; border-radius: 100px;
    margin-top: clamp(30px, 5vh, 46px);
    font-family: var(--sans); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em;
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .top__nav .top__cta:hover { color: #fff; }
}
@media (max-width: 640px) {
  .clients__row { grid-template-columns: 1fr 1fr; gap: 22px; }
  .work__shots { gap: 12px; }
  .work__shots .shot { flex: 1 1 0; min-width: 0; max-width: 188px; padding: 6px; }
  .work__shots .shot img { width: 100%; }
  .case-shots { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; gap: 14px; scrollbar-width: none; }
  .case-shots::-webkit-scrollbar { display: none; }
  .case-shots .shot { flex: 0 0 auto; scroll-snap-align: center; }
  .case-shots .shot img { width: min(64vw, 240px); }
  .timeline { grid-template-columns: 1fr; }
  .spoints { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr; }
  .hero__rating { gap: 14px; }
  .hero__rating-txt span { max-width: 21ch; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tl::before { transform: scaleY(1); }
  .tl__node span { opacity: 1; transform: none; }
}

/* ---------- Hero rating badge ---------- */
.hero__rating { display: inline-flex; align-items: center; gap: 18px; margin: 0 auto 30px; }
.avatars { display: flex; }
.avatars img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper); margin-left: -11px; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.avatars img:first-child { margin-left: 0; }
.hero__rating-txt { text-align: left; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 0.92rem; line-height: 1; }
.hero__rating-txt span { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--ink-2); }

/* ---------- Case study link ---------- */
.work__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 5px; transition: gap 0.25s var(--ease); }
.work__link:hover { gap: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; font-size: clamp(1.05rem, 1.6vw, 1.28rem); font-weight: 600; letter-spacing: -0.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-family: var(--mono); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform 0.3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 4px 26px; color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; max-width: 66ch; }

/* ---------- Case study detail page ---------- */
.case-hero { text-align: center; max-width: 840px; margin: 0 auto; padding: clamp(120px, 15vh, 168px) var(--gutter) clamp(30px, 4vw, 46px); }
.case-back { display: inline-block; margin-bottom: 26px; font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); transition: color 0.2s; }
.case-back:hover { color: var(--accent); }
.case-hero .eyebrow { display: block; margin-bottom: 16px; }
.case-title { font-weight: 800; font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -0.04em; line-height: 0.95; }
.case-lead { margin: 22px auto 0; max-width: 52ch; font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--ink-2); line-height: 1.45; }
.case-meta { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 40px; margin-top: 38px; }
.case-meta li { display: flex; flex-direction: column; gap: 5px; }
.case-meta span { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.case-meta b { font-size: 0.96rem; }
.case-shots { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; padding: clamp(16px, 2.5vw, 30px) var(--pad) clamp(28px, 4vw, 48px); }
.case-shots .shot img { width: 200px; }
.case-body { max-width: 700px; margin: 0 auto; padding: 0 var(--gutter) clamp(58px, 7vw, 88px); }
.case-block { padding: clamp(30px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.case-block:first-child { border-top: none; }
.case-block h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.case-block p { font-size: clamp(1.05rem, 1.4vw, 1.18rem); line-height: 1.65; color: var(--ink); }
.case-block p + p { margin-top: 15px; }
.case-quote { padding: clamp(30px, 4vw, 44px) 0 0; border-top: 1px solid var(--line); }
.case-quote blockquote { font-size: clamp(1.2rem, 1.8vw, 1.55rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; color: var(--ink); }
.case-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); }
.case-quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.case-quote figcaption b { font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: 0.95rem; display: block; }
.case-end { text-align: center; padding: clamp(56px, 8vw, 100px) var(--pad); border-top: 1px solid var(--line); background: var(--paper-2); }
.case-end h2 { font-weight: 700; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.025em; }
.case-end .btn { margin-top: 26px; }

/* ---------- Tech stack ---------- */
.techstack { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 22px; }
.techstack--center { justify-content: center; margin-top: 28px; }
.techstack span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); }
.techstack img { width: 20px; height: 20px; object-fit: contain; }

/* first case study has no top divider under the heading */
.work:first-of-type { border-top: none; padding-top: 0; }

/* footer address block */
.foot__addr { line-height: 1.7; }

/* ---------- CTA typewriter ---------- */
.cta__type { white-space: nowrap; }
.cta__title .caret { display: inline-block; font-weight: 300; margin-left: 2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Standort / map ---------- */
.loc { padding: clamp(56px, 7vw, 96px) var(--pad); }
.loc__inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 5vw, 64px); align-items: center; max-width: var(--maxw); margin: 0 auto; }
.loc__text .eyebrow { display: block; margin-bottom: 16px; }
.loc__title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.loc__addr { font-family: var(--mono); font-size: 0.95rem; line-height: 1.8; margin-top: 22px; color: var(--ink); }
.loc__note { margin-top: 18px; color: var(--ink-2); font-size: 1rem; line-height: 1.6; max-width: 42ch; }
.loc__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 5px; transition: gap 0.25s var(--ease); }
.loc__link:hover { gap: 14px; }
.loc__map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); box-shadow: 0 30px 60px -34px rgba(0,0,0,0.28); }
.loc__map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Founder education ---------- */
.studio__edu { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.studio__edu-lbl { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); display: block; margin-bottom: 10px; }
.studio__edu p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; max-width: 52ch; }
.studio__edu-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 18px; }
.studio__edu-logos img { height: 28px; width: auto; max-width: 150px; object-fit: contain; }
.studio__edu-logos .is-uzh { height: 46px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(118px, 15vh, 158px) var(--gutter) clamp(56px, 8vw, 96px); }
.legal .case-back { margin-bottom: 28px; }
.legal__title { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.legal__meta { font-family: var(--mono); font-size: 0.84rem; color: var(--ink-2); line-height: 1.9; margin: 22px 0 36px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -0.015em; margin: 40px 0 14px; }
.legal p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.72; margin-bottom: 14px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { color: var(--ink-2); font-size: 1.02rem; line-height: 1.72; margin-bottom: 6px; }

/* ---------------- 404 ---------------- */
.notfound { min-height: 82vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(130px, 18vh, 184px) var(--gutter) clamp(70px, 10vh, 110px); }
.notfound__code { font-family: var(--mono); font-size: clamp(4.5rem, 17vw, 8.5rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.04em; color: var(--accent); }
.notfound__title { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; margin: 22px 0 0; }
.notfound__text { max-width: 460px; color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; margin: 16px 0 0; text-wrap: balance; }
.notfound__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* ===================== FUNNEL COMPONENTS ===================== */
/* Offer cards (sleek, consistent with the testimonial cards) */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.offer-card { display: flex; flex-direction: column; padding: clamp(28px, 2.8vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 3px rgba(22,22,22,0.03); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(22,22,22,0.28); }
.offer-card--feature { border-color: rgba(33,25,195,0.4); }
.offer-card__label { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); margin-bottom: 20px; }
.offer-card--feature .offer-card__label { color: var(--accent); }
.offer-card__name { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; }
.offer-card__for { font-size: 0.96rem; font-weight: 600; color: var(--ink); margin: 12px 0 14px; }
.offer-card__desc { font-size: 0.95rem; color: var(--ink-2); line-height: 1.6; }
.offer-card__meta { margin: 22px 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.offer-card__meta strong { font-family: var(--mono); font-size: 0.92rem; font-weight: 500; color: var(--ink); letter-spacing: 0.01em; }
.offer-card__meta span { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); letter-spacing: 0.02em; }
.offer-card .btn { margin-top: auto; width: 100%; justify-content: center; }

/* deliverables grid */
.deliver { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3vw, 46px); margin-top: clamp(38px, 4vw, 58px); }
.deliver__h { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.deliver__p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }

/* limited-spots note (calm, no animation) */
.limited { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-2); }
.limited::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }

/* Ablauf timeline (centered, horizontal; stacks on mobile) */
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(16px, 2.4vw, 34px); position: relative; margin: clamp(40px, 4.5vw, 60px) auto 0; }
.flow::before { content: ""; position: absolute; top: 26px; left: 13%; right: 13%; height: 2px; background: var(--line-2); }
.flow__step { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.flow__num { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 0.98rem; font-weight: 600; display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 10px 22px -10px rgba(33,25,195,0.5); position: relative; z-index: 1; }
.flow__h { font-size: clamp(1.02rem, 1.5vw, 1.25rem); font-weight: 700; letter-spacing: -0.012em; margin-bottom: 8px; }
.flow__p { color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; max-width: 26ch; margin-inline: auto; }

/* narrow funnel section (centered) */
.section-narrow { max-width: 880px; margin: 0 auto; padding: clamp(48px,6vw,88px) var(--gutter); border-top: 1px solid var(--line); text-align: center; }
.section-narrow .eyebrow { display: block; margin-bottom: 14px; }
.section-narrow__title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; margin: 0 0 20px; }
.section-narrow__lead { color: var(--ink-2); font-size: 1.1rem; line-height: 1.65; max-width: 58ch; margin: 0 auto; }
/* funnel hero CTAs centered */
.case-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

@media (max-width: 980px) {
  .ladder { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .deliver { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .flow { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; max-width: 430px; }
  .flow::before { display: none; }
  /* Number in a left column; title + text stack to its right (no cramped middle column) */
  .flow__step { display: grid; grid-template-columns: 42px 1fr; grid-template-areas: "num head" "num body"; column-gap: 16px; row-gap: 4px; text-align: left; align-items: start; padding-bottom: 26px; }
  .flow__num { grid-area: num; width: 42px; height: 42px; margin-bottom: 0; align-self: start; font-size: 0.85rem; }
  .flow__h { grid-area: head; align-self: center; margin-bottom: 0; }
  .flow__p { grid-area: body; max-width: none; margin-inline: 0; }
}
@media (max-width: 640px) {
  .deliver { grid-template-columns: 1fr; }
}

/* ===================== MOTION ===================== */
/* Reliable paper background (no black gap on navigation), no dark tap-flash, gentle page fade-in */
html { background: var(--paper); -webkit-tap-highlight-color: transparent; }
body { animation: pageIn 0.45s var(--ease); }
@keyframes pageIn { from { opacity: 0; } }

/* FAQ content eases open instead of popping */
.faq__item[open] > p { animation: faqOpen 0.32s var(--ease); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-8px); } }

/* Content images fade in as they load instead of popping */
img.is-loading { opacity: 0; }
img.is-loaded { opacity: 1; transition: opacity 0.5s var(--ease); }

/* Arrow nudge on hover */
.arr { transition: transform 0.22s var(--ease); }
.btn:hover .arr, .cta__mail:hover .arr, .offer-card:hover .arr { transform: translate(2px, -2px); }

/* Sweep underline on hover (nav, footer, back link) */
.top__nav > a:not(.top__cta), .foot__col a, .case-back {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px;
  transition: background-size 0.32s var(--ease), color 0.2s var(--ease);
}
.top__nav > a:not(.top__cta):hover, .foot__col a:hover, .case-back:hover { background-size: 100% 1.5px; }

/* Timeline connector draws in when revealed */
.flow::before { transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 0.2s; }
.flow.in::before { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .arr { transition: none; }
  .flow::before { transform: none; transition: none; }
  img.is-loading { opacity: 1; }
}
