/* INTRAC – intrac.de. Direction: "The sentence is the layout" (taste-skill seed 301935672),
   compacted. Palette proportions from the sheet, accent and slate taken from the INTRAC logo. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f0f2f4;
  --ink: #232323;
  --muted: #5d636b;
  --accent: #30abff;          /* INTRAC logo blue */
  --accent-ink: #232323;
  --slate: #404a59;           /* INTRAC logo slate */
  --dark: #232323;
  --light: #ffffff;
  --soft-light: #c9ced4;

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe 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.375rem, 1.05rem + 1.1vw, 2.125rem);
  --step-head: clamp(2.25rem, 1.1rem + 4.2vw, 5.25rem);
  --step-display: clamp(2.9rem, 0.8rem + 8.6vw, 9.25rem);

  --m: 28px;                  /* page margin */
  --gap: 24px;
  --section: clamp(72px, 8vw, 128px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 767px) { :root { --m: 20px; --gap: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-body)/1 var(--font);
  text-decoration: none; border: 0; border-radius: 0;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:hover { background: #5cbdff; }
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }

.link {
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em;
  transition: text-decoration-color 160ms ease;
}
.link:hover { text-decoration-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: inherit; gap: 14px 24px; }
.hero-after .actions { justify-content: center; }
.link--light { color: var(--light); }
.booking-note { font-size: var(--step-small); color: var(--soft-light); }

/* ---------- top bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  padding: 22px var(--m);
  color: var(--light);
}
.bar-brand img { width: 112px; height: auto; }
.bar-nav { display: flex; gap: 28px; margin-left: auto; font-size: var(--step-small); }
.bar-nav a { text-decoration: none; opacity: 0.86; transition: opacity 160ms ease; }
.bar-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.25em; }
@media (max-width: 767px) {
  .bar-nav { display: none; }
  .bar .btn { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { background: var(--dark); color: var(--light); padding: clamp(140px, 14vw, 190px) var(--m) clamp(72px, 8vw, 112px); }
.hero-stage { width: min(100%, 1240px); margin: 0 auto; display: grid; justify-items: center; text-align: center; }
.hero-title { font-size: var(--step-display); font-weight: 500; letter-spacing: -0.05em; line-height: 0.98; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
.slot {
  display: inline-block; vertical-align: baseline;
  width: 2.1em; height: 0.72em; margin-left: 0.22em;
  overflow: hidden; position: relative; top: 0.02em;
}
.slot img { width: 100%; height: 100%; object-fit: cover; }
.hero-after { display: grid; justify-items: center; gap: 28px; margin-top: 48px; max-width: 46ch; }
@media (max-width: 767px) {
  .hero { padding-top: 120px; }
  .hero-title { font-size: clamp(2.6rem, 11.4vw, 3.4rem); }
  .slot { display: none; }
  .hero-after { margin-top: 28px; }
}

/* ---------- services: photo next to tiles ---------- */
.work { display: grid; grid-template-columns: repeat(6, 1fr); }
.work-photo { grid-column: span 3; position: relative; overflow: hidden; min-height: 60svh; background: var(--dark); }
.work-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.work-photo figcaption {
  position: absolute; left: 0; bottom: 0; max-width: 34ch;
  padding: 14px 18px; background: var(--dark); color: var(--soft-light); font-size: var(--step-small);
}
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  grid-column: span 2; min-height: 46svh; padding: 28px var(--m) 26px;
}
.tile--half { grid-column: span 3; min-height: 60svh; }
.tile p { max-width: 38ch; }
.tile-phrase { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; }
.tile--accent { background: var(--accent); color: var(--accent-ink); }
.tile--ink { background: var(--dark); color: var(--light); }
.tile--surface { background: var(--surface); color: var(--ink); }
.tile--slate { background: var(--slate); color: var(--light); }
@media (max-width: 1023px) {
  .tile { grid-column: span 3; }
  .tile--slate { grid-column: span 6; min-height: 0; }
}
@media (max-width: 767px) {
  .work { grid-template-columns: 1fr; }
  .work-photo, .tile, .tile--half, .tile--slate { grid-column: 1; }
  .work-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .tile, .tile--half { min-height: 0; padding: 24px var(--m) 28px; gap: 28px; }
  .tile-phrase { font-size: clamp(2.6rem, 11.4vw, 3.4rem); }
}

/* ---------- industries, all in one view ---------- */
.branches {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  padding: var(--section) var(--m);
}
.branches-title { grid-column: 1 / span 4; font-size: var(--step-head); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; align-self: start; }
.branch-list { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px var(--gap); }
.branch-list h3 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 8px; }
.branch-list p { max-width: 34ch; }
@media (max-width: 1023px) {
  .branches-title { grid-column: 1 / -1; margin-bottom: 40px; }
  .branch-list { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .branch-list { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- stages as one bar ---------- */
.steps { padding: 0 var(--m) var(--section); }
.steps-title { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; margin-bottom: 48px; }
.steps-bar { display: flex; gap: 6px; align-items: flex-start; }
.step { flex: var(--grow) 1 0; min-width: 12%; }
.step-seg {
  height: 16vh; min-height: 120px; padding: 20px;
  font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
}
.step-seg--surface { background: var(--surface); color: var(--ink); }
.step-seg--accent { background: var(--accent); color: var(--accent-ink); }
.step-seg--slate { background: var(--slate); color: var(--light); }
.step-seg--ink { background: var(--dark); color: var(--light); }
.step p { margin-top: 16px; padding-right: 12px; max-width: 24ch; }
@media (max-width: 767px) {
  .steps-title { margin-bottom: 32px; }
  .steps-bar { flex-direction: column; }
  .step { min-width: 0; width: 100%; }
  .step-seg { height: auto; min-height: calc(var(--grow) * 8px + 64px); padding: 16px; }
  .step p { margin: 10px 0 16px; max-width: none; }
}

/* ---------- about: portrait as drop cap ---------- */
.about {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  padding: var(--section) var(--m); background: var(--surface);
}
.about-facts { grid-column: 1 / span 2; display: grid; gap: 18px; align-content: start; font-size: var(--step-small); padding-top: 6px; }
.about-facts dt { color: var(--muted); }
.about-facts dd { font-weight: 500; }
.about-text { grid-column: 3 / -1; }
.about-lead { font-size: var(--step-lead); line-height: 1.22; letter-spacing: -0.015em; }
.about-lead strong { font-weight: 500; }
.about-lead--soft { color: var(--muted); margin-top: 1em; }
.about-lead--soft a { color: var(--ink); }
.about-portrait { float: left; width: 3.66em; height: 3.66em; object-fit: cover; margin: 0.18em 0.5em 0 0; }
@media (max-width: 767px) {
  .about-text { grid-column: 1 / -1; order: 1; }
  .about-facts { grid-column: 1 / -1; order: 2; grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
  .about-portrait { width: 4.4em; height: 4.4em; }
}

/* ---------- Juser ---------- */
.juser {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center;
  padding: var(--section) var(--m);
}
.juser-img { grid-column: 1 / span 7; width: 100%; }
.juser-text { grid-column: 9 / -1; display: grid; gap: 24px; justify-items: start; }
.juser-title { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; }
.juser-text p { max-width: 40ch; }
@media (max-width: 767px) {
  .juser-img, .juser-text { grid-column: 1 / -1; }
  .juser-text { margin-top: 28px; }
}

/* ---------- contact ---------- */
.contact {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  align-items: start; padding: 0 var(--m) var(--section);
}
.contact-sentence { grid-column: 1 / span 6; font-size: var(--step-lead); line-height: 1.12; letter-spacing: -0.02em; font-weight: 500; max-width: 22em; }
.contact-photo { grid-column: 8 / span 2; width: 100%; max-width: 170px; aspect-ratio: 1; object-fit: cover; }
.contact-links { grid-column: 10 / -1; display: grid; gap: 10px; justify-items: start; }
.contact-q { font-weight: 500; margin-bottom: 10px; }
.contact-where { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 767px) {
  .contact { grid-template-columns: 96px 1fr; column-gap: 16px; row-gap: 28px; }
  .contact-sentence { grid-column: 1 / -1; }
  .contact-photo { grid-column: 1; max-width: 96px; }
  .contact-links { grid-column: 2; }
}

/* ---------- footer ---------- */
.foot {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr);
  background: var(--dark); color: var(--light);
  padding: clamp(64px, 7vw, 104px) var(--m) 0;
}
.foot-top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.foot-invite { grid-column: 1 / span 7; display: grid; gap: 32px; justify-items: start; }
.foot-title { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; }
.foot-links { grid-column: 10 / -1; display: grid; gap: 12px; align-content: start; padding-top: 10px; }
.foot-legal {
  display: flex; justify-content: space-between; gap: 32px; align-items: end;
  font-size: var(--step-small); color: var(--soft-light); padding: 64px 0 18px;
}
.foot-legal .credits { max-width: 80ch; text-align: right; }
.foot-legal a { color: var(--light); }
.foot-mark { height: calc(min(112vw, 1800px) * 0.3 * 0.7); overflow: hidden; }
.foot-mark img { width: min(112vw, 1800px); max-width: none; transform: translateY(2%); }
@media (max-width: 767px) {
  .foot-invite, .foot-links { grid-column: 1 / -1; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 36px; }
  .foot-invite .actions { width: 100%; }
  .foot-invite .btn { width: 100%; }
  .foot-legal { flex-direction: column; align-items: start; gap: 10px; padding-top: 40px; }
  .foot-legal .credits { text-align: left; }
  .foot-mark { height: 30vw; }
  .foot-mark img { width: 128vw; }
}

/* ---------- legal pages ---------- */
.page-head { background: var(--dark); color: var(--light); padding: 150px var(--m) 56px; }
.page-head h1 { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.prose { padding: 64px var(--m) 120px; max-width: calc(68ch + 2 * var(--m)); }
.prose h2, .prose h3 { font-size: var(--step-body); font-weight: 600; margin: 2em 0 0.5em; line-height: 1.35; }
.prose p, .prose ul { margin-bottom: 1em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose .lead { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.3; letter-spacing: -0.015em; }
.prose .small { font-size: var(--step-small); }
.prose .muted { color: var(--muted); }
.foot--short { padding-top: 64px; }
.foot--short .foot-legal { padding-bottom: 28px; padding-top: 48px; }

/* 404 */
.lost { background: var(--dark); color: var(--light); min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 32px; padding: var(--m); text-align: center; }
.lost p { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js .hero-after { opacity: 0; animation: fade-up 700ms var(--ease-out) 700ms forwards; }
  .js [data-reveal] [data-r] { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 800ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in [data-r] { opacity: 1; transform: none; }
  .js .juser-img[data-r], .js .contact-photo[data-r] { transform: scale(1.04); }
  .js .is-in .juser-img[data-r], .js .is-in .contact-photo[data-r] { transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
