/* WB Cervenik — Swiss editorial */

@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #f1f0ec;
  --paper-2: #e9e7e1;
  --ink: #131312;
  --ink-2: #3a3936;
  --mute: #75716a;
  --rule: #d2cfc7;
  --signal: #ff4415;

  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", "Times New Roman", serif;

  --pad: clamp(16px, 3.2vw, 48px);
  --gap: clamp(12px, 1.8vw, 24px);
  --section: clamp(88px, 12vw, 176px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16.5px/1.55 var(--sans); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.meta { font: 400 12.5px/1.4 var(--mono); letter-spacing: 0; color: var(--mute); }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.mute { color: var(--mute); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Links & buttons ---------- */
.link {
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .4s var(--ease), color .2s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
a:hover > .arrow, button:hover > .arrow { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 17px 22px; border: 0; border-radius: 2px;
  background: var(--ink); color: var(--paper); font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .25s, transform .15s, translate .35s var(--ease);
}
.btn:hover { background: var(--signal); }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(241, 240, 236, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.03em; }
.wordmark i { width: 9px; height: 9px; background: var(--signal); display: block; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav .lang { font-family: var(--mono); font-size: 12.5px; color: var(--mute); display: flex; gap: 8px; }
.nav .lang [aria-current] { color: var(--ink); }
.nav .cta { color: var(--ink); font-weight: 500; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px 0; font: 500 14.5px var(--sans); color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); padding: 8px var(--pad) 28px; border-bottom: 1px solid var(--rule);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 26px; letter-spacing: -0.03em; padding: 8px 0; color: var(--ink); }
  .nav .lang { margin-top: 18px; }
  .nav .lang a, .nav .lang span { font-size: 13px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.hero-meta { border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: clamp(48px, 9vw, 132px); }
.hero-meta span:nth-child(1) { grid-column: 1 / span 4; }
.hero-meta span:nth-child(2) { grid-column: 5 / span 4; }
.hero-meta span:nth-child(3) { grid-column: 9 / span 4; text-align: right; }
.display {
  font-size: clamp(2.7rem, 7vw, 7.2rem); line-height: 0.95; letter-spacing: -0.05em; font-weight: 500;
  max-width: 15ch; margin-top: clamp(16px, 3vw, 48px);
}
.display .serif { letter-spacing: -0.035em; padding-right: 0.04em; }
.hero-foot { margin-top: clamp(40px, 6vw, 88px); align-items: end; }
.hero-lead { grid-column: 7 / span 6; }
.hero-lead p { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink-2); max-width: 34em; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.actions .link { font-weight: 500; }

@media (max-width: 760px) {
  .hero-meta span:nth-child(1) { grid-column: 1 / span 12; }
  .hero-meta span:nth-child(2) { display: none; }
  .hero-meta span:nth-child(3) { display: none; }
  .hero-lead { grid-column: 1 / -1; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0 0; }
.section-head { border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: clamp(40px, 6vw, 80px); row-gap: 20px; }
.section-head .meta { grid-column: 1 / span 3; color: var(--ink); }
.section-head h2 { grid-column: 4 / span 9; font-size: clamp(2rem, 4.4vw, 4.2rem); line-height: 0.98; letter-spacing: -0.045em; }
.section-head .intro { grid-column: 4 / span 6; color: var(--ink-2); font-size: 1.08rem; margin: 8px 0 0; }
@media (max-width: 760px) {
  .section-head .meta, .section-head h2, .section-head .intro { grid-column: 1 / -1; }
}

/* ---------- Work (real projects) ---------- */
.work .proj { grid-column: 1 / -1; margin: 0; }
.proj-link { position: relative; display: block; padding: 0 15% 9% 0; color: inherit; text-decoration: none; }
.frame { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -48px rgba(19, 19, 18, 0.45); transition: transform .6s var(--ease); }
.frame .bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--paper-2); border-bottom: 1px solid var(--rule); font: 400 12px/1 var(--mono); color: var(--mute); }
.frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.frame .bar span { flex: 1; text-align: center; padding-right: 40px; }
.frame img, .phone img { display: block; width: 100%; height: auto; }
.phone { position: absolute; right: 0; bottom: 24px; width: 21%; aspect-ratio: 390 / 800; overflow: hidden; border: 7px solid var(--ink); border-radius: 30px; background: var(--ink); box-shadow: 0 40px 70px -30px rgba(19, 19, 18, 0.55); transition: transform .6s var(--ease); }
.phone img { height: 100%; object-fit: cover; object-position: top; border-radius: 23px; }
.proj-link:hover .frame { transform: translateY(-6px); }
.proj-link:hover .phone { transform: translateY(-14px); }
.proj figcaption { flex-wrap: wrap; }
.proj figcaption a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.proj figcaption a:hover { color: var(--signal); }
@media (max-width: 760px) {
  .proj-link { padding: 0 20% 26% 0; }
  .phone { width: 30%; border-width: 4px; border-radius: 18px; }
  .phone img { border-radius: 14px; }
  .frame .bar { height: 24px; font-size: 10px; }
  .frame .bar span { padding-right: 0; }
  .proj figcaption { flex-direction: column; gap: 4px; }
}

/* ---------- Mockup tiles (used in the build sequence) ---------- */
.work { row-gap: clamp(40px, 5vw, 72px); }
.work figure { margin: 0; }
.work .w7 { grid-column: span 7; }
.work .w5 { grid-column: span 5; }
.work .w7 .shot { aspect-ratio: 1.6; }
.work figure { display: flex; flex-direction: column; }
.work .w5 .shot { flex: 1; }
.work figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; }
.work figcaption b { font-weight: 500; color: var(--ink); }
@media (max-width: 860px) {
  .work .w7, .work .w5 { grid-column: 1 / -1; }
  .work .w5 .shot, .work .w7 .shot { aspect-ratio: 1.3; flex: none; }
}

.shot { position: relative; overflow: hidden; container-type: inline-size; border-radius: 3px; isolation: isolate; transition: transform .6s var(--ease); }
.shot > * { position: absolute; }

/* K-01 Bakery */
.s-bakery { background: #ebe0cb; color: #3b2a1b; }
.s-bakery .top { inset: 4cqw 4.5cqw auto; display: flex; justify-content: space-between; align-items: baseline; font-size: 1.55cqw; }
.s-bakery .top b { font: italic 400 3.4cqw/1 var(--serif); }
.s-bakery .top span { display: flex; gap: 3cqw; }
.s-bakery h3 { left: 4.5cqw; bottom: 11cqw; font: 400 9.4cqw/0.9 var(--serif); letter-spacing: -0.03em; }
.s-bakery h3 em { color: #b0571f; }
.s-bakery .addr { left: 4.5cqw; bottom: 4.5cqw; font-size: 1.45cqw; opacity: .75; }
.s-bakery .sun { width: 44cqw; height: 44cqw; border-radius: 50%; right: -9cqw; bottom: -14cqw; background: radial-gradient(circle at 35% 30%, #e9a15b, #b9632a 60%, #8f4519); z-index: -1; }
.s-bakery .stamp {
  right: 30cqw; top: 15cqw; width: 11cqw; height: 11cqw; border: 1px solid currentColor; border-radius: 50%;
  display: grid; place-items: center; text-align: center; font: italic 400 1.9cqw/1.05 var(--serif); transform: rotate(-12deg);
}
.s-bakery .btn-mini { right: 4.5cqw; bottom: 4.5cqw; background: #3b2a1b; color: #ebe0cb; font-size: 1.45cqw; padding: 1.2cqw 2cqw; }

/* K-02 Architecture */
.s-arch { background: #1c1f1e; color: #e8e6df; }
.s-arch .cols { inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.s-arch .cols i { border-left: 1px solid rgba(232, 230, 223, 0.08); }
.s-arch .top { inset: 5cqw 5cqw auto; display: flex; justify-content: space-between; font: 400 2cqw/1.2 var(--mono); letter-spacing: 0.04em; }
.s-arch h3 { left: 5cqw; top: 25cqw; font: 300 11.6cqw/0.9 var(--sans); letter-spacing: -0.06em; }
.s-arch ul { left: 5cqw; right: 5cqw; bottom: 5cqw; list-style: none; margin: 0; padding: 0; font: 400 2.05cqw/1 var(--mono); }
.s-arch li { display: grid; grid-template-columns: 14cqw 1fr auto; padding: 1.8cqw 0; border-top: 1px solid rgba(232, 230, 223, 0.18); }
.s-arch li span:last-child { opacity: .55; }

/* K-03 Physio booking */
.s-physio { background: #dce6e0; color: #12302a; }
.s-physio .copy { left: 4.5cqw; top: 5cqw; width: 42cqw; }
.s-physio .copy small { display: block; font: 400 1.5cqw/1 var(--mono); opacity: .7; margin-bottom: 2.5cqw; }
.s-physio .copy h3 { font: 500 5.4cqw/0.95 var(--sans); letter-spacing: -0.05em; }
.s-physio .copy p { font-size: 1.6cqw; line-height: 1.4; margin-top: 2.5cqw; opacity: .8; max-width: 32cqw; }
.s-physio .book { right: 4.5cqw; top: 5cqw; width: 42cqw; background: #fbfcfb; border-radius: 1.4cqw; padding: 3.2cqw; box-shadow: 0 2cqw 5cqw -2cqw rgba(18, 48, 42, 0.25); display: flex; flex-direction: column; gap: 2.4cqw; }
.s-physio .book b { font-size: 2.1cqw; font-weight: 600; letter-spacing: -0.02em; }
.s-physio .days, .s-physio .slots { display: grid; gap: 1cqw; }
.s-physio .days { grid-template-columns: repeat(4, 1fr); }
.s-physio .slots { grid-template-columns: repeat(3, 1fr); }
.s-physio .days span, .s-physio .slots span { border: 1px solid #cfdcd5; border-radius: 0.8cqw; text-align: center; font: 400 1.55cqw/1.2 var(--mono); padding: 1.2cqw 0; }
.s-physio .days span em { display: block; font-style: normal; font: 500 2.4cqw/1.1 var(--sans); }
.s-physio .on { background: #12302a; color: #fbfcfb; border-color: #12302a !important; }
.s-physio .pick { font-size: 1.5cqw; line-height: 1.4; padding: 1.4cqw 0 0; border-top: 1px solid #e3ebe7; color: #3c5550; }
.s-physio .pick b { display: block; font-size: 1.7cqw; color: #12302a; }
.s-physio .foot { left: 4.5cqw; bottom: 5cqw; width: 40cqw; font-size: 1.45cqw; line-height: 1.5; }
.s-physio .foot div { display: flex; justify-content: space-between; padding: 1cqw 0; border-top: 1px solid rgba(18, 48, 42, 0.18); }
.s-physio .foot span:last-child { font-family: var(--mono); font-size: 1.3cqw; opacity: .75; }
.s-physio .go { margin-top: 0.4cqw; background: #2e7a62; color: #fff; border-radius: 0.8cqw; padding: 1.6cqw; font-size: 1.7cqw; font-weight: 500; display: flex; justify-content: space-between; }

/* K-04 Osteria */
.s-osteria { background: #561c16; color: #f3e5cf; }
.s-osteria .top { inset: 4.5cqw 4.5cqw auto; display: flex; justify-content: space-between; align-items: baseline; font-size: 1.5cqw; letter-spacing: 0.02em; }
.s-osteria .top b { font: italic 400 3.2cqw/1 var(--serif); letter-spacing: 0; }
.s-osteria h3 { left: 4.5cqw; bottom: 5cqw; font: 400 8.6cqw/0.9 var(--serif); letter-spacing: -0.025em; }
.s-osteria h3 em { color: #e8a87c; }
.s-osteria .menu { right: 4.5cqw; bottom: 5cqw; width: 30cqw; font-size: 1.5cqw; }
.s-osteria .menu small { display: block; font: 400 1.35cqw/1 var(--mono); opacity: .6; margin-bottom: 1.6cqw; letter-spacing: 0.06em; }
.s-osteria .menu div { display: flex; gap: 1cqw; padding: 1.1cqw 0; border-top: 1px solid rgba(243, 229, 207, 0.22); }
.s-osteria .menu div span:nth-child(2) { flex: 1; border-bottom: 1px dotted rgba(243, 229, 207, 0.35); transform: translateY(-0.5cqw); }

/* ---------- Statement ---------- */
.statement p {
  grid-column: 4 / span 9; font-size: clamp(1.55rem, 3.05vw, 3rem); line-height: 1.12; letter-spacing: -0.035em; margin: 0;
}
@media (max-width: 760px) { .statement p { grid-column: 1 / -1; } }

/* ---------- Services list ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.rows > li { border-top: 1px solid var(--rule); padding: clamp(20px, 2.4vw, 32px) 0; align-items: baseline; transition: background-color .3s; }
.rows .n { grid-column: 1 / span 1; }
.rows h3 { grid-column: 2 / span 4; font-size: clamp(1.35rem, 2.1vw, 2rem); letter-spacing: -0.035em; line-height: 1.1; transition: transform .4s var(--ease); }
.rows p { grid-column: 7 / span 6; margin: 0; color: var(--ink-2); max-width: 36em; }
.rows .tag { grid-column: 11 / span 2; text-align: right; }
.rows > li:hover h3 { transform: translateX(8px); }
@media (max-width: 860px) {
  .rows .n { grid-column: 1 / span 2; }
  .rows h3 { grid-column: 3 / span 10; }
  .rows p { grid-column: 3 / span 10; margin-top: 10px; }
  .rows .tag { display: none; }
}

/* ---------- Pricing ---------- */
.founding { grid-column: 4 / span 9; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 18px 0 0; margin-bottom: clamp(32px, 4vw, 56px); }
.founding i { width: 9px; height: 9px; background: var(--signal); margin-top: 8px; }
.founding p { margin: 0; font-size: 1.08rem; max-width: 46em; }
@media (max-width: 760px) { .founding { grid-column: 1 / -1; } }

.plans { border-bottom: 1px solid var(--ink); }
.plans .head { padding: 0 0 10px; }
.plan { border-top: 1px solid var(--rule); padding: clamp(24px, 3vw, 40px) 0; align-items: start; position: relative; }
.plans .head + .plan { border-top-color: var(--ink); }
.plan .name { grid-column: 1 / span 3; }
.plan .name h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.05em; line-height: 1; }
.plan .name p { margin: 10px 0 0; color: var(--mute); font-size: 0.95rem; max-width: 22em; }
.plan .scope { grid-column: 4 / span 4; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 0.97rem; }
.plan .scope li { padding: 3px 0; }
.plan .price { grid-column: 8 / span 2; }
.plan .price.m { grid-column: 10 / span 2; }
.plan .price b { display: block; font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.plan .price span { display: none; margin-top: 8px; }
@media (max-width: 960px) { .plan .price span { display: block; } }
.plan .go { grid-column: 12 / span 1; justify-self: end; text-decoration: none; font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.plan .rec { position: absolute; top: clamp(24px, 3vw, 40px); left: 0; transform: translateY(-140%); color: var(--signal); display: flex; align-items: center; gap: 8px; }
.plan.featured .name h3::after { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--signal); margin-left: 10px; vertical-align: 0.5em; }
.plans .head .meta:nth-child(1) { grid-column: 1 / span 3; }
.plans .head .meta:nth-child(2) { grid-column: 4 / span 4; }
.plans .head .meta:nth-child(3) { grid-column: 8 / span 2; }
.plans .head .meta:nth-child(4) { grid-column: 10 / span 2; }
@media (max-width: 960px) {
  .plans .head { display: none; }
  .plans .head + .plan { border-top-color: var(--ink); }
  .plan { row-gap: 20px; }
  .plan .name { grid-column: 1 / -1; }
  .plan .scope { grid-column: 1 / -1; }
  .plan .price { grid-column: 1 / span 6; }
  .plan .price.m { grid-column: 7 / span 6; }
  .plan .go { grid-column: 1 / -1; justify-self: start; }
}
.pricing-notes { margin-top: 28px; row-gap: 16px; }
.pricing-notes p { margin: 0; }
.pricing-notes p:nth-child(1) { grid-column: 1 / span 6; font-size: 1.02rem; }
.pricing-notes p:nth-child(2) { grid-column: 8 / span 5; }
@media (max-width: 760px) { .pricing-notes p:nth-child(1), .pricing-notes p:nth-child(2) { grid-column: 1 / -1; } }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; row-gap: 40px; }
.process li { grid-column: span 3; border-top: 1px solid var(--rule); padding-top: 14px; }
.process li .meta { color: var(--signal); }
.process h3 { font-size: 1.4rem; letter-spacing: -0.035em; margin: 32px 0 10px; }
.process p { color: var(--ink-2); margin: 0; font-size: 0.98rem; max-width: 26em; }
@media (max-width: 960px) { .process li { grid-column: span 6; } }
@media (max-width: 560px) { .process li { grid-column: 1 / -1; } }

/* ---------- About ---------- */
.about .who { grid-column: 1 / span 4; }
.about .who h3 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 28px; }
.about dl { margin: 0; }
.about dl div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.about dt { font: 400 12.5px/1.6 var(--mono); color: var(--mute); }
.about dd { margin: 0; }
.about .text { grid-column: 6 / span 6; font-size: clamp(1.1rem, 1.45vw, 1.28rem); line-height: 1.5; letter-spacing: -0.015em; color: var(--ink-2); }
.about .text p:first-child { color: var(--ink); }
@media (max-width: 860px) { .about .who, .about .text { grid-column: 1 / -1; } .about .text { margin-top: 48px; } }

/* ---------- FAQ ---------- */
.faq { margin: 0; border-bottom: 1px solid var(--rule); }
.faq > div { border-top: 1px solid var(--rule); padding: clamp(20px, 2.4vw, 30px) 0; }
.faq dt { grid-column: 1 / span 5; font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.3; padding-right: 24px; }
.faq dd { grid-column: 7 / span 6; margin: 0; color: var(--ink-2); max-width: 40em; }
@media (max-width: 760px) { .faq dt, .faq dd { grid-column: 1 / -1; } .faq dd { margin-top: 10px; } }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(64px, 8vw, 120px); }
.contact .big { grid-column: 1 / span 7; }
.contact .big h2 { font-size: clamp(2.6rem, 6.4vw, 6.4rem); line-height: 0.92; letter-spacing: -0.055em; margin-bottom: 36px; }
.contact .mail { font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -0.03em; font-weight: 500; }
.contact .big .meta { margin-top: 28px; max-width: 34em; }
.form { grid-column: 9 / span 4; display: grid; gap: 22px; align-content: start; }
.field { display: grid; gap: 4px; }
.field label { font: 400 12.5px/1.4 var(--mono); color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent;
  font: 400 1.05rem/1.4 var(--sans); color: var(--ink); padding: 8px 0 10px; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23131312' stroke-width='1.4'/%3E%3C/svg%3E") right 2px center no-repeat; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--signal); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #c42b1c; }
.form .btn { justify-self: start; margin-top: 6px; }
.form-status { margin: 0; min-height: 1.3em; color: var(--ink); }
@media (max-width: 960px) { .contact .big, .form { grid-column: 1 / -1; } .form { margin-top: 56px; } }

/* ---------- Footer ---------- */
.site-footer { padding-bottom: 40px; }
.foot-row { border-top: 1px solid var(--ink); padding-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot-row a { text-decoration: none; color: var(--mute); transition: color .2s; }
.foot-row a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(40px, 6vw, 88px) 0 var(--section); }
.legal .body { max-width: 720px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.055em; line-height: 0.95; margin: 0 0 48px; }
.legal h2 { font-size: 1.25rem; letter-spacing: -0.025em; margin: 40px 0 10px; }
.legal p { color: var(--ink-2); }
.legal .draft { font: 400 12.5px/1.5 var(--mono); color: var(--signal); border-top: 1px solid var(--signal); padding-top: 10px; margin-bottom: 40px; }

/* ---------- Motion ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
/* Hero: pure CSS entrance, never depends on JS */
.enter { animation: enter 1.1s var(--ease) both; animation-delay: var(--d, .05s); }
.display.enter { animation-name: wipe; animation-duration: 1.3s; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); transform: translateY(0.15em); } to { clip-path: inset(0 0 -12% 0); transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .enter { opacity: 1; transform: none; clip-path: none; transition: none; animation: none; }
  * { transition-duration: 0s !important; }
}
.plan .price b small { font-size: 0.42em; letter-spacing: 0; color: var(--mute); font-weight: 400; vertical-align: 0.6em; margin-right: 2px; }
.legal-nav .lang { display: flex; gap: 10px; font: 400 12.5px/1 var(--mono); color: var(--mute); }
.legal-nav a { text-decoration: none; }
.legal-nav a:hover, .legal-nav [aria-current] { color: var(--ink); }

/* About photo */
.about .photo { grid-column: 1 / span 4; margin: 0; }
.about .photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: var(--paper-2); }
.about .photo figcaption { padding-top: 12px; }
.about .text { grid-column: 6 / span 6; align-self: center; }
@media (max-width: 860px) { .about .photo { grid-column: 1 / -1; max-width: 460px; } }

/* What I don't do */
.not-offered { margin: 28px 0 0; color: var(--mute); max-width: 44em; }
.section-head .lead { grid-column: 4 / span 6; color: var(--ink-2); margin: 8px 0 0; }
@media (max-width: 760px) { .section-head .lead { grid-column: 1 / -1; } }

.about .text h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.04em; line-height: 1; color: var(--ink); margin-bottom: 24px; }
@media (max-width: 860px) { .about .text { grid-column: 1 / -1; margin-top: 40px; } }

/* =====================================================================
   Motion (only when the visitor allows it: html.motion is set by JS)
   ===================================================================== */

/* Headlines rise in word by word */
.motion [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.motion [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.motion [data-split].in .w > span { transform: none; }

/* Section rules draw from left to right */
.motion .section-head { border-top-color: transparent; position: relative; }
.motion .section-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease);
}
.motion .section-head.in::before { transform: none; }

/* Concept tiles: wipe open, then drift with the scroll */
.motion .work figure.rv { opacity: 1; transform: none; }
.motion .work .shot { clip-path: inset(18% 0 0 0); transform: translateY(48px); opacity: 0; transition: clip-path 1.3s var(--ease), transform 1.3s var(--ease), opacity .7s; }
.motion .work figure.in .shot { clip-path: inset(0 0 0 0); transform: none; opacity: 1; }
.motion .work figure figcaption { opacity: 0; transition: opacity .8s .4s; }
.motion .work figure.in figcaption { opacity: 1; }
.motion .work .proj .frame { clip-path: inset(18% 0 0 0); transform: translateY(48px); opacity: 0; transition: clip-path 1.3s var(--ease), transform 1.3s var(--ease), opacity .7s; }
.motion .work .proj.in .frame { clip-path: inset(0 0 0 0); transform: none; opacity: 1; }
.motion .work .proj .phone { opacity: 0; translate: 0 calc(var(--py, 0) * -24px + 40px); transition: opacity .9s .45s, translate 1.3s .45s var(--ease), transform .6s var(--ease); }
.motion .work .proj.in .phone { opacity: 1; translate: 0 calc(var(--py, 0) * -24px); }
.motion .work .proj.in .proj-link:hover .frame { transform: translateY(-6px); }
.motion .work .shot > :not(.cols) { translate: 0 calc(var(--py, 0) * -14px); }
.motion .work .s-bakery .sun, .motion .work .s-osteria h3 { translate: 0 calc(var(--py, 0) * -48px); }
.motion .work .s-bakery .stamp { rotate: calc(var(--py, 0) * 50deg); }
.motion .work .s-physio .book { translate: 0 calc(var(--py, 0) * -30px); }
.work .s-bakery .sun { transition: scale .8s var(--ease); }
.work figure:hover .s-bakery .sun { scale: 1.06; }
.work .s-physio .slots span { transition: background-color .25s, color .25s; }
.work figure:hover .s-physio .slots span:nth-child(5) { background: #12302a; color: #fbfcfb; }

/* Service rows */
.rows .n { transition: color .3s; }
.rows > li:hover .n { color: var(--signal); }

/* Process: a red line runs along the steps as you scroll */
.process { position: relative; }
.motion .process::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--signal); z-index: 1;
  transform: scaleX(var(--pp, 0)); transform-origin: left;
}

/* =====================================================================
   "So entsteht eine Website": pinned build sequence
   --p1 sketch, --p2 design, --p3 responsive. Defaults show the final state.
   ===================================================================== */
.build { --p: 1; --p1: 1; --p2: 1; --p3: 1; padding-top: var(--section); }
.motion .build { height: 320vh; padding-top: 0; margin-top: var(--section); }
.motion .build-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: 64px; overflow: hidden; }
.build-grid { width: 100%; align-items: center; }
.build-copy { grid-column: 1 / span 4; }
.build-copy h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 0.98; letter-spacing: -0.045em; margin: 14px 0 40px; }
.build-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.build-steps li { position: relative; padding-left: 20px; transition: opacity .5s; }
.build-steps li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: var(--rule); transition: background-color .4s; }
.build-steps b { display: block; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; }
.build-steps p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.97rem; max-width: 30em; }
.motion .build-steps li { opacity: 0.28; }
.motion .build[data-active="0"] [data-step="0"],
.motion .build[data-active="1"] [data-step="1"],
.motion .build[data-active="2"] [data-step="2"] { opacity: 1; }
.motion .build[data-active="0"] [data-step="0"]::before,
.motion .build[data-active="1"] [data-step="1"]::before,
.motion .build[data-active="2"] [data-step="2"]::before { background: var(--signal); }
.build-bar { margin-top: 40px; height: 1px; background: var(--rule); }
.build-bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--p)); transform-origin: left; }

.build-stage { grid-column: 6 / span 7; position: relative; }
.build-frame {
  position: relative; aspect-ratio: 1.6; max-width: 100%; border-radius: 3px; overflow: hidden; background: #fbfaf7;
  container-type: inline-size; box-shadow: 0 0 0 1px var(--rule), 0 40px 70px -40px rgba(19, 19, 18, 0.35);
  transform-origin: left center; transform: translateX(calc(var(--p3) * -4%)) scale(calc(1 - var(--p3) * 0.16));
}
.build-frame .design { position: absolute; inset: 0; border-radius: 0; clip-path: circle(calc(var(--p2) * 130%) at 88% 92%); }
.wire { position: absolute; inset: 0; opacity: calc(1 - var(--p2) * 1.4); }
.wire::before {
  content: ""; position: absolute; inset: 0; opacity: var(--p1);
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), rgba(255, 68, 21, 0.14) calc(100% / 12 - 1px) calc(100% / 12));
}
.wire > span {
  position: absolute; border: 1px dashed #aca59a; background: rgba(19, 19, 18, 0.035); color: #8a8378;
  font: 400 1.25cqw/1 var(--mono); padding: 0.7cqw 0.9cqw; white-space: nowrap; overflow: hidden;
  transform-origin: left center; transform: scaleX(clamp(0, calc(var(--p1) * 8 - var(--i)), 1)); opacity: clamp(0, calc(var(--p1) * 8 - var(--i)), 1);
}
.wire .w-logo { --i: 0; left: 4.5cqw; top: 3.6cqw; width: 15cqw; height: 4.2cqw; }
.wire .w-nav { --i: 1; right: 4.5cqw; top: 4cqw; width: 22cqw; height: 2.8cqw; }
.wire .w-t1 { --i: 2; left: 4.5cqw; bottom: 21cqw; width: 38cqw; height: 8.6cqw; }
.wire .w-t2 { --i: 3; left: 4.5cqw; bottom: 11.4cqw; width: 30cqw; height: 8.6cqw; }
.wire .w-addr { --i: 4; left: 4.5cqw; bottom: 4.5cqw; width: 42cqw; height: 2.8cqw; }
.wire .w-btn { --i: 5; right: 4.5cqw; bottom: 4.5cqw; width: 14cqw; height: 4.4cqw; }
.wire .w-stamp { --i: 4.5; right: 30cqw; top: 15cqw; width: 11cqw; height: 11cqw; border-radius: 50%; transform-origin: center; }
.wire .w-img { --i: 6; right: -9cqw; bottom: -14cqw; width: 44cqw; height: 44cqw; border-radius: 50%; transform-origin: center; padding: 9cqw 0 0 9cqw; }
.wire .w-stamp, .wire .w-img { transform: scale(clamp(0, calc(var(--p1) * 8 - var(--i)), 1)); }

.build-phone {
  position: absolute; right: 2%; top: 50%; width: 26%; aspect-ratio: 9 / 18.5; border: 5px solid var(--ink); border-radius: 18% / 8.5%;
  overflow: hidden; background: #ebe0cb; container-type: inline-size; box-shadow: 0 40px 60px -30px rgba(19, 19, 18, 0.45);
  opacity: var(--p3); transform: translate(calc((1 - var(--p3)) * 80%), -50%) rotate(calc((1 - var(--p3)) * 9deg));
}
.pm { position: absolute; inset: 0; padding: 10cqw 8cqw 8cqw; color: #3b2a1b; display: flex; flex-direction: column; }
.pm > * { position: relative; z-index: 1; }
.pm-top { display: flex; justify-content: space-between; align-items: center; font: italic 400 10cqw/1 var(--serif); }
.pm-top i { width: 9cqw; height: 6cqw; background: linear-gradient(currentColor, currentColor) top / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) bottom / 100% 1.5px no-repeat; }
.pm h4 { margin: 24cqw 0 0; font: 400 19cqw/0.9 var(--serif); letter-spacing: -0.03em; }
.pm h4 em { color: #b0571f; }
.pm p { margin: 7cqw 0 0; font-size: 5cqw; line-height: 1.45; opacity: 0.75; }
.pm b { margin-top: auto; background: #3b2a1b; color: #ebe0cb; text-align: center; font: 500 5.4cqw/1 var(--sans); padding: 5.5cqw; border-radius: 2cqw; }
.pm .pm-sun { position: absolute; z-index: 0; width: 95cqw; height: 95cqw; right: -40cqw; bottom: 20cqw; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e9a15b, #b9632a 60%, #8f4519); }

@media (max-width: 860px) {
  .build-copy, .build-stage { grid-column: 1 / -1; }
  .build-copy h2 { margin-bottom: 20px; }
  .build-stage { margin-top: 28px; }
  .build-bar { margin-top: 20px; }
  .motion .build-pin { align-items: flex-start; padding-top: 88px; }
  .motion .build-steps li { display: none; }
  .motion .build[data-active="0"] [data-step="0"],
  .motion .build[data-active="1"] [data-step="1"],
  .motion .build[data-active="2"] [data-step="2"] { display: block; }
  .build-phone { width: 32%; right: 0; }
}
@media (max-width: 860px) { .build-frame { transform: scale(calc(1 - var(--p3) * 0.1)); } }
