/* FuTec GmbH – Seitenstil. Schriften liegen lokal (kein Abruf bei Dritten). */

@font-face {
  font-family: "Big Shoulders";
  src: url("fonts/big-shoulders-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #f3f4f6;
  --surface: #e6e9ee;
  --ink: #0c1a2e;
  --muted: #475264;
  --navy: #00336d;
  --lime: #b2b900;
  --accent: var(--lime);
  --accent-ink: var(--navy);
  --field-ink: #f3f4f6;

  --font-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --font-text: "Public Sans", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1rem + 1vw, 1.875rem);
  --step-head: clamp(2.75rem, 1.4rem + 4.6vw, 6rem);
  --step-display: clamp(4.25rem, 0.5rem + 13vw, 15rem);

  --margin: clamp(1rem, 2vw, 1.75rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 13vw, 12rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--navy); color: var(--field-ink); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; text-wrap: balance; hyphens: none; }
.head { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.005em; }
.lead { font-size: var(--step-lead); line-height: 1.3; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.6rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-thickness var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { text-decoration-thickness: 0.14em; }
  .button:hover { background: var(--navy); color: var(--field-ink); }
}
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 10; background: var(--navy); color: var(--field-ink); padding: 0.6rem 1rem; }
.skip:focus { top: 0.75rem; }

/* ---------- top line ---------- */
.topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: clamp(1rem, 2vw, 1.6rem); }
.brand img { width: auto; height: clamp(2.1rem, 1.6rem + 1.4vw, 2.9rem); }
.topnav { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); font-weight: 600; }
.topnav a { padding-block: 0.6rem; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; }
.hero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(3rem, 8vh, 6rem) 0; }
.sentence { font-size: var(--step-display); line-height: 0.86; letter-spacing: -0.01em; }
.sentence .sl { display: flex; align-items: baseline; gap: 0.12em; }
.sentence .w { white-space: nowrap; }
.strip { flex: 1; min-width: 28vw; height: 0.7em; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; }
.hero-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding-block: clamp(2.5rem, 7vh, 5rem) clamp(1.5rem, 4vh, 3rem); }
.hero-claim { grid-column: 1 / span 6; font-size: var(--step-lead); line-height: 1.3; max-width: 34ch; }
.hero-cta { grid-column: 10 / -1; justify-self: end; }

/* ---------- showcase: Handycapp ---------- */
.showcase { background: var(--surface); padding-block: var(--section) calc(var(--section) * 0.75); }
.sc-head { row-gap: 1.75rem; }
.sc-title { grid-column: 1 / span 8; }
.sc-intro { grid-column: 1 / span 6; }
.sc-facts { grid-column: 8 / -1; align-self: end; color: var(--muted); }
.demo { margin-top: clamp(4rem, 9vw, 8rem); }
.ask { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.type-line { position: relative; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--step-head); line-height: 1; }
.type-line input { display: block; width: 100%; border: 0; padding: 0.05em 0; margin: 0; background: transparent; font: inherit; text-transform: inherit; letter-spacing: 0; color: var(--navy); caret-color: transparent; outline: none; }
.type-line:focus-within { outline: 3px solid var(--navy); outline-offset: 6px; }
.mirror { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; pointer-events: none; }
.caret { position: absolute; top: 0.12em; left: 0; width: 0.08em; height: 0.8em; background: var(--lime); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: blink 1.05s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

.answer-row { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); column-gap: var(--gutter); margin-top: 3rem; align-items: start; }
.parsed { font-weight: 600; margin-bottom: 1rem; }

/* the fragment below imitates Handycapp's own tee-sheet, so it keeps the app's look */
.app { background: #ffffff; color: #1f2a1f; font-size: 1rem; max-width: 560px; }
.app-bar { background: #1b5e20; color: #ffffff; padding: 0.85rem 1rem; font-weight: 600; text-align: center; }
.app-sub { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem; background: #dcefdc; color: #1f3d22; font-size: 0.9375rem; }
.slots { padding: 0.75rem 0.75rem 0.9rem; display: grid; gap: 0.5rem; }
.slot { display: grid; grid-template-columns: 4.6rem repeat(4, minmax(0, 1fr)); gap: 0.4rem; transition: opacity 240ms ease, transform 300ms var(--ease-out); }
.slot.is-new { opacity: 0; transform: translateY(8px); }
.badge { display: grid; place-items: center; background: #2e7d32; color: #ffffff; padding: 0.35rem 0.2rem; line-height: 1.15; font-size: 0.8125rem; }
.badge b { font-size: 1rem; }
.cell { border: 2px dashed #c7d3c7; min-height: 2.9rem; }
.cell.taken { border: 0; background: #b9d8b9; }
.app-note { padding: 0 1rem 1rem; color: #45573f; font-size: 0.875rem; }

.examples { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; align-items: baseline; }
.examples p { flex-basis: 100%; color: var(--muted); }
.examples button { font-size: inherit; font-weight: 600; color: var(--navy); padding: 0.5rem 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; transition: text-decoration-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.examples button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .examples button:hover { text-decoration-color: currentColor; } }
.demo-note { margin-top: 1.75rem; color: var(--muted); }

.screens { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.5rem var(--gutter); padding: clamp(4rem, 8vw, 7rem) var(--margin) 0; }
.screens img { width: 100%; aspect-ratio: 990 / 1900; object-fit: cover; background: #ffffff; }
.screens figcaption { margin-top: 0.75rem; font-weight: 600; }
.screens figcaption span { display: block; font-weight: 400; color: var(--muted); }

/* ---------- work ---------- */
.work { padding-block: var(--section) 0; overflow: hidden; }
.proj { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding-inline: var(--margin); }
.proj + .proj { margin-top: clamp(6rem, 10vw, 9rem); }
.proj-visual { grid-column: 1 / span 7; margin-left: calc(var(--margin) * -1); height: 80svh; min-height: 26rem; max-height: 52rem; overflow: hidden; display: flex; align-items: center; }
.proj-visual img { width: 100%; height: 100%; object-fit: contain; object-position: 70% 50%; transform: scale(1.2); transform-origin: 75% 50%; mix-blend-mode: multiply; }
.proj-b .proj-visual { height: 62svh; }
.proj-b .proj-visual img { transform-origin: 70% 40%; }
.proj-c .proj-visual { height: 90svh; max-height: 58rem; }
.proj-c .proj-visual img { object-fit: cover; object-position: 30% 60%; transform: scale(1.08); mix-blend-mode: normal; }
.proj-cluster { grid-column: 9 / -1; padding-bottom: 1rem; }
.proj-cluster h2 { font-size: var(--step-head); line-height: 0.9; margin-bottom: 1.5rem; hyphens: manual; }
.proj-kind { font-weight: 600; margin-bottom: 0.6rem; }
.efre { margin-top: 1.75rem; width: min(100%, 22rem); mix-blend-mode: multiply; }

/* ---------- services ---------- */
.services { padding-block: var(--section) 0; }
.svc-title { font-size: var(--step-head); line-height: 0.9; }
.svc-title span { display: block; }
.svc-title span:first-child { padding-left: 3vw; }
.svc-body { margin-top: clamp(4rem, 7vw, 6rem); align-items: end; }
.svc-photo { grid-column: 1 / span 4; align-self: end; }
.svc-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.svc-name { grid-column: 5 / span 2; align-self: start; font-weight: 600; padding-top: 0.2rem; }
.svc-list { grid-column: 7 / -1; }
.svc-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.svc-table col.k { width: 24%; }
.svc-table col.v { width: 42%; }
.svc-table th, .svc-table td { padding: 0 0 1.6rem; text-align: left; vertical-align: top; font-weight: 400; }
.svc-table tr.gap th, .svc-table tr.gap td { padding-top: 2.75rem; }
.svc-table th { color: var(--muted); width: 30%; padding-right: 1rem; }
.svc-table td:last-child { text-align: right; color: var(--muted); padding-left: 1rem; }
.svc-table td:nth-child(2) { font-weight: 600; }
.svc-close { margin-top: 1.5rem; }

/* ---------- about ---------- */
.about { padding-block: var(--section); }
.facts { grid-column: 1 / span 2; display: grid; gap: 1rem; align-content: start; padding-top: 0.5rem; }
.facts li span { display: block; color: var(--muted); }
.about-text { grid-column: 3 / -1; }
.about-text p { max-width: none; }
.dropcap { float: left; width: 3.9em; height: 3.9em; object-fit: cover; margin: 0.25em 0.55em 0 0; }
.about-text strong { font-weight: 600; }
.about-text .muted { color: var(--muted); }
.about-text .more { font-size: var(--step-body); line-height: 1.5; max-width: 60ch; margin-top: 1.5rem; }

/* ---------- contact ---------- */
.contact { padding-block: calc(var(--section) * 0.4) clamp(6rem, 9vw, 8rem); align-items: start; }
.contact-sentence { grid-column: 1 / span 5; font-size: var(--step-lead); line-height: 1.3; }
.contact-photo { grid-column: 7 / span 2; width: 100%; max-width: 11rem; aspect-ratio: 1; object-fit: cover; justify-self: end; }
.contact-links { grid-column: 10 / -1; display: grid; gap: 0.75rem; align-content: start; }
.contact-links .q { font-weight: 600; margin-bottom: 0.5rem; }
.contact-links a { font-size: var(--step-body); }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: var(--field-ink); overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; }
.foot a { color: inherit; }
.foot :focus-visible { outline-color: var(--lime); }
.foot-top { padding-top: clamp(4rem, 9vw, 7rem); flex: 1; }
.foot-invite { grid-column: 1 / span 7; }
.foot-invite .head { max-width: 12ch; margin-bottom: 2rem; }
.foot .button { color: var(--accent-ink); }
.foot .button:hover { background: var(--field-ink); color: var(--navy); }
.foot-links { grid-column: 10 / -1; display: grid; gap: 0.6rem; align-content: start; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 2rem 0.5rem; }
.foot-legal nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-mark { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 33vw; line-height: 0.8; letter-spacing: -0.01em; color: var(--lime); white-space: nowrap; margin-left: -0.04em; transform: translateY(24%); margin-top: -0.05em; user-select: none; }

/* ---------- legal pages ---------- */
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: clamp(1rem, 2vw, 1.6rem); }
.legal { padding-block: clamp(4rem, 9vw, 8rem) var(--section); }
.legal h1 { grid-column: 1 / -1; font-size: var(--step-head); line-height: 0.9; margin-bottom: clamp(3rem, 6vw, 5rem); }
.legal-body { grid-column: 3 / span 7; }
.legal-body h2 { font-family: var(--font-text); text-transform: none; font-weight: 600; font-size: var(--step-lead); line-height: 1.25; margin: 3rem 0 0.9rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li + li { margin-top: 0.4em; }
.legal-body address { font-style: normal; }
.legal-facts { grid-column: 1 / span 2; display: grid; gap: 1rem; align-content: start; }
.legal-facts span { display: block; color: var(--muted); }
.credits li { overflow-wrap: anywhere; }

/* ---------- tablet ---------- */
@media (max-width: 64em) {
  .sc-title { grid-column: 1 / -1; }
  .sc-intro { grid-column: 1 / span 8; }
  .sc-facts { grid-column: 1 / span 8; }
  .answer-row { grid-template-columns: 1fr; row-gap: 2rem; }
  .proj-visual, .proj-b .proj-visual { grid-column: 1 / span 7; height: 56vw; min-height: 0; }
  .proj-c .proj-visual { height: 80vw; }
  .proj-cluster { grid-column: 8 / -1; }
  .screens { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-photo { grid-column: 1 / span 4; }
  .svc-name { display: none; }
  .svc-list { grid-column: 5 / -1; }
  .legal-body { grid-column: 3 / -1; }
  .legal-facts { grid-column: 1 / span 2; }
  .contact-sentence { grid-column: 1 / span 6; }
  .contact-photo { grid-column: 7 / span 2; }
  .contact-links { grid-column: 9 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 40em) {
  .topnav { gap: 1rem; font-size: 1rem; }
  .topnav .only-wide { display: none; }
  .hero-body { justify-content: center; }
  .sentence { font-size: 18vw; line-height: 0.9; }
  .sentence .sl-1 { display: block; }
  .strip { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; margin: 0.12em 0 0.14em; }
  .hero-foot { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .hero-claim, .hero-cta { grid-column: 1; justify-self: start; }
  .hero-cta { width: 100%; }

  .sc-intro, .sc-facts { grid-column: 1 / -1; }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .examples { gap: 0.5rem; }
  .examples button { background: var(--bg); padding: 0 1rem; min-height: 2.75rem; text-decoration: none; }
  .slot { grid-template-columns: 4.2rem repeat(4, minmax(0, 1fr)); }

  .proj { grid-template-columns: 1fr; }
  .proj + .proj { margin-top: 5.5rem; }
  .proj-visual, .proj-b .proj-visual, .proj-c .proj-visual { grid-column: 1; width: 110%; height: auto; min-height: 0; }
  .proj-a .proj-visual img, .proj-b .proj-visual img { height: auto; transform: none; }
  .proj-c .proj-visual { aspect-ratio: 4 / 5; }
  .proj-cluster { grid-column: 1; padding-top: 1.5rem; }

  .svc-title span:first-child { padding-left: 0; }
  .svc-body { grid-template-columns: 1fr; row-gap: 3rem; }
  .svc-list { grid-column: 1; }
  .svc-photo { grid-column: 1; width: 60%; justify-self: end; }
  .svc-table, .svc-table tbody, .svc-table tr { display: block; }
  .svc-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding-bottom: 1.4rem; }
  .svc-table tr.gap { padding-top: 1.6rem; }
  .svc-table th, .svc-table td, .svc-table tr.gap th, .svc-table tr.gap td { padding: 0; width: auto; }
  .svc-table th { grid-column: 1; grid-row: 1; }
  .svc-table td:last-child { grid-column: 2; grid-row: 1; padding: 0; }
  .svc-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }

  .about { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .about-text { grid-column: 1; order: -1; }
  .dropcap { width: 4.5em; height: 4.5em; }
  .facts { grid-column: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }

  .contact { grid-template-columns: 6rem 1fr; column-gap: 1rem; row-gap: 2rem; }
  .contact-sentence { grid-column: 1 / -1; }
  .contact-photo { grid-column: 1; width: 6rem; justify-self: start; }
  .contact-links { grid-column: 2; }

  .foot-invite, .foot-links { grid-column: 1 / -1; }
  .foot-invite .button { width: 100%; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 2.5rem; }
  .foot { min-height: 0; }
  .foot-top { padding-bottom: 4rem; }
  .foot-mark { font-size: 40vw; }

  .legal-body, .legal-facts { grid-column: 1 / -1; }
  .legal-facts { margin-bottom: 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- motion (content stays visible without JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .strip { clip-path: inset(0 100% 0 0); animation: shutter 1100ms var(--ease-in-out) 200ms forwards; }
  .js .strip img { transform: scale(1.12); animation: settle 1500ms var(--ease-soft) 200ms forwards; }
  @keyframes shutter { to { clip-path: inset(0); } }
  @keyframes settle { to { transform: none; } }
  .js .hero-foot > * { opacity: 0; transform: translateY(16px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 500ms); }
  .js .sentence .w { display: inline-block; opacity: 0; transform: translateY(0.25em); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 120ms + 80ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .drift img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: scale(1.14) translateY(-3%); } to { transform: scale(1.14) translateY(3%); } }
    .foot-mark { animation: markup linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes markup { from { transform: translateY(60%); } to { transform: translateY(24%); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .slot.is-new { opacity: 1; transform: none; }
}
