@import url("https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&family=Archivo:wdth,wght@62,800&display=swap");

:root {
  --bg: #141414;
  --surface: #1f1f1f;
  --text: #ece8df;
  --muted: rgba(236, 232, 223, 0.62);
  --line: rgba(236, 232, 223, 0.14);
  --accent: #ece8df;
  --on-accent: #141414;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Funnel Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  background: linear-gradient(var(--bg) 60%, transparent);
}
.nav__logo { font-weight: 700; letter-spacing: -0.03em; }
.nav__links { display: flex; gap: 28px; font-size: 16px; }
.nav__links a { color: var(--muted); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--text); }

/* type */
.eyebrow { font-size: 16px; color: var(--muted); font-weight: 500; }
/* Projektnamen: schmal und schwer, wie ein Wordmark */
.name { font-family: "Archivo", "Funnel Sans", sans-serif; font-stretch: 62%; font-variation-settings: "wdth" 62; font-weight: 800; letter-spacing: -0.01em; line-height: .86; }
.display {
  margin: 0;
  font-weight: 700;
  font-size: clamp(44px, 9vw, 148px);
  line-height: .94;
  letter-spacing: -0.045em;
}
.display em { font-style: normal; font-weight: 300; color: var(--muted); }
.lead { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.3; font-weight: 400; letter-spacing: -0.02em; max-width: 34ch; }
h2 { margin: 0; font-size: clamp(30px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.035em; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); font-weight: 400; }

.wrap { padding-inline: var(--gutter); }
section { padding-top: 120px; padding-bottom: 120px; }

/* hero */
.hero { padding-top: clamp(48px, 8vw, 120px); padding-bottom: clamp(40px, 6vw, 80px); }
.intro { margin: 0; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; max-width: 34ch; }
.intro__note { margin: 20px 0 0; font-size: 16px; color: var(--muted); }
.crumbs { font-size: 16px; color: var(--muted); font-weight: 500; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--text); }

/* project tiles */
.tiles { display: grid; gap: 24px; }
.tile {
  --tile-accent: var(--text);
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; min-height: min(78vh, 720px);
  border-radius: 14px; overflow: hidden; background: var(--surface);
  isolation: isolate;
}
.tile__media { position: relative; overflow: hidden; min-height: 0; }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__body { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.tile__num { font-size: 16px; color: var(--muted); }
.tile__title { font-size: clamp(64px, 8vw, 132px); margin: 0 0 20px; }
.tile__kind { margin: 0 0 12px; font-weight: 600; }
.tile__cta { display: inline-block; margin-top: 8px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line); transition: text-decoration-color .2s; }
.tile:hover .tile__cta { text-decoration-color: var(--text); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; transition: box-shadow .3s; z-index: 2; }
.tile:hover::after { box-shadow: inset 0 0 0 1px rgba(236, 232, 223, 0.4); }
.tile--ow { --tile-accent: #5bc0db; }
.tile--ow .tile__media { background: #050c18; }
.tile--ow .tile__media img { object-position: left top; }
.tile--graft { --tile-accent: #c9f771; grid-template-columns: 1fr .78fr; }
.tile--graft .tile__media { order: 2; background: #8e8a88; }
.tile--graft .tile__media img { object-position: center 50%; }
.shot-row .shot { aspect-ratio: 3 / 4; }
.shot-row .shot img { height: 100%; object-fit: cover; }
.shot-row--web .shot { aspect-ratio: auto; }
.shot-row--web .shot img { height: auto; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 6vw, 96px); border-top: 1px solid var(--line); }
.facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.facts li { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.facts li span:first-child { color: var(--muted); }

/* contact */
.contact { border-top: 1px solid var(--line); }
.contact a.big { font-size: clamp(32px, 7vw, 112px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; display: inline-block; border-bottom: 3px solid var(--line); transition: border-color .2s; }
.contact a.big:hover { border-color: var(--text); }
.footer { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px var(--gutter) 48px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }

/* case studies */
.case-hero { padding-top: clamp(40px, 6vw, 96px); }
.case-hero h1 { font-size: clamp(80px, 15vw, 240px); margin: 24px 0 32px; }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 48px; }
.case-meta dt { font-size: 15px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.case-meta dd { margin: 0; font-size: 17px; }
.shot { border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.shot img { width: 100%; }
.shot-row { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.split { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(24px, 6vw, 96px); }
.split > div > h2 { margin-bottom: 24px; }
.split p { font-weight: 400; color: var(--muted); max-width: 56ch; }
.split p strong { color: var(--text); font-weight: 600; }
.bullets { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; }
.bullets li { padding: 14px 0 14px 36px; border-top: 1px solid var(--line); position: relative; font-weight: 400; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 24px; width: 18px; height: 2px; background: var(--accent); }
/* device stage: browser + phone frames */
.stage { position: relative; isolation: isolate; padding: clamp(16px, 4vw, 56px) clamp(0px, 2vw, 24px); }
.frame { border-radius: 12px; overflow: hidden; background: #0e1116; box-shadow: 0 50px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.09); transition: transform .8s var(--ease); }
.frame__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #1a1e25; border-bottom: 1px solid rgba(255,255,255,.06); }
.frame__dots { display: flex; gap: 7px; }
.frame__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.16); }
.frame__url { flex: 1; max-width: 420px; margin: 0 auto; padding: 5px 14px; text-align: center; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); border-radius: 99px; font-weight: 500; }
.frame img { width: 100%; }
.frame--crop img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.stage--hero .frame { width: 88%; }
.phone { position: absolute; right: clamp(16px, 4vw, 64px); bottom: clamp(-60px, -3vw, -20px); width: clamp(130px, 21%, 260px); border-radius: 34px; padding: 7px; background: #0a0a0b; box-shadow: 0 40px 80px -20px rgba(0,0,0,.9), 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.06); transform: rotate(3deg); transition: transform .8s var(--ease); }
.phone img { border-radius: 28px; width: 100%; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; }
.stage-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stage-row .stage:nth-child(2) { margin-top: clamp(0px, 6vw, 96px); }
.cap { margin-top: 14px; padding: 0 clamp(0px, 2vw, 24px); font-size: 15px; color: var(--muted); font-weight: 400; }
.stage-wrap { margin: 0; }

/* feature cards */
.features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.features li { padding: 18px 0 24px; border-top: 1px solid var(--line); }
.features h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 700; }
.features p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); font-weight: 400; }

.next { display: block; border-top: 1px solid var(--line); }
.next a { display: inline-block; }
.next .name { margin: 12px 0 0; font-size: clamp(72px, 12vw, 180px); text-decoration-thickness: 4px; text-underline-offset: 10px; }
.next a:hover .name { text-decoration-line: underline; }

/* flavor switcher (GRAFT) */
.flavors { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.flavors__chips { display: grid; gap: 10px; }
.chip { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; transition: border-color .2s, background .2s; }
.chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.chip[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.chip:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.flavors__stage { background: #000; border-radius: 14px; overflow: hidden; }
.flavors__stage img { width: 100%; transition: opacity .35s; }

/* reveal */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .flavors__stage img { transition: none; } }

@media (max-width: 860px) {
  section { padding-top: 64px; padding-bottom: 64px; }
  .tile, .tile--graft, .about, .split, .flavors, .shot-row { grid-template-columns: 1fr; }
  .tile--graft .tile__media { order: 0; }
  .tile__media { aspect-ratio: 4 / 3; }
  .tile--graft .tile__media { aspect-ratio: 9 / 10; }
  .stage-row, .features { grid-template-columns: 1fr; }
  .stage-row .stage:nth-child(2) { margin-top: 0; }
  .stage--hero .frame { width: 100%; }
  .phone { position: relative; right: auto; bottom: auto; margin: -40px auto 0; width: 52%; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .nav__links { gap: 18px; }
}
.shot--native { max-width: 1080px; margin-left: auto; margin-right: auto; }
