/* Jaspers Projects, landingspagina */
/* ---------- Fonts (self-hosted, latin) ---------- */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --blue: #0A2342;
  --blue-deep: #071A33;
  --blue-light: #5AA9E6;
  --orange: #F28C28;
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.82);
  --text-mute: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.45);

  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Barlow', system-ui, sans-serif;

  --gutter: clamp(24px, 6vw, 96px);
  --gutter-safe-l: max(var(--gutter), env(safe-area-inset-left));
  --gutter-safe-r: max(var(--gutter), env(safe-area-inset-right));
  --pad-top: max(clamp(24px, 4vw, 48px), env(safe-area-inset-top));
  --pad-bottom: max(clamp(24px, 4vw, 48px), env(safe-area-inset-bottom));

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 1s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100%;
  background: var(--blue); color: var(--white);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  text-wrap: pretty; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease-soft); }
a:hover { color: var(--orange); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--orange); color: var(--blue); }
::-moz-selection { background: var(--orange); color: var(--blue); }

/* ---------- Hero shell ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  background: var(--blue) url("data:image/webp;base64,UklGRpYAAABXRUJQVlA4IIoAAAAwBQCdASogABIAPu1kq0+ppSOiMBgIATAdiWkAAI8sXYa58u/PHpQW8s6aBB35eCqzAAD+TtNREGT3d+6mMthPlnDwBOzUN7x6Po35QM0BzkumrgYdBpoPvTElG/OnoXRyzMnRHyVyV/XExK6OmZ+J3WBUzZaZ3z98A+FFwN5s0yvH3+aTDlQAAAA=") center / cover no-repeat;
  --px: 0; --py: 0;
}

.hero__media {
  position: absolute; inset: -2%; z-index: -3; margin: 0;
  transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -10px), 0);
  transition: transform 0.9s var(--ease-soft);
  will-change: transform;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 68% 38%;
  opacity: 0.55; mix-blend-mode: luminosity;
  transform-origin: 70% 40%;
}
.hero__shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__shade--x { background: linear-gradient(105deg, var(--blue) 0%, rgba(10, 35, 66, 0.92) 38%, rgba(10, 35, 66, 0.55) 70%, rgba(10, 35, 66, 0.35) 100%); }
.hero__shade--y { background: linear-gradient(180deg, rgba(10, 35, 66, 0.2) 0%, rgba(10, 35, 66, 0) 40%, rgba(10, 35, 66, 0.9) 100%); }
.hero__shade--glow {
  background: radial-gradient(60% 50% at 82% 30%, rgba(90, 169, 230, 0.18), transparent 70%);
  mix-blend-mode: screen;
}

.hero__mark {
  position: absolute; z-index: -1; left: -0.04em; bottom: -0.18em;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(160px, 28vw, 420px);
  line-height: 1; letter-spacing: -0.01em; text-transform: uppercase;
  color: rgba(90, 169, 230, 0.12); white-space: nowrap;
  pointer-events: none; user-select: none;
  transform: translate3d(calc(var(--px) * 18px), calc(var(--py) * 8px), 0);
  transition: transform 1.2s var(--ease-soft);
  will-change: transform;
}

/* ---------- Header ---------- */
.header {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: var(--pad-top) var(--gutter-safe-r) 0 var(--gutter-safe-l);
}
.header__logo { height: clamp(34px, 4vw, 48px); width: auto; }
.header__logo img { height: 100%; width: auto; }
.header__tel { font-size: 15px; letter-spacing: 0.04em; opacity: 0.9; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Content ---------- */
.intro {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 4svh, 64px) var(--gutter-safe-r) clamp(24px, 4svh, 64px) var(--gutter-safe-l);
}
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 20px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange);
}
.eyebrow__mark { width: 20px; height: 20px; flex: none; align-self: flex-start; margin-top: calc(0.75em - 10px); }

.title {
  margin: 0; max-width: 12ch;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(48px, min(8vw, 10.5svh), 128px);
  line-height: 0.98; letter-spacing: 0.005em; text-transform: uppercase;
  text-wrap: balance;
}
.title .line { display: block; overflow: hidden; padding: 0.04em 0.06em 0.06em 0; margin: -0.04em -0.06em -0.06em 0; }
.title .line > span { display: block; }

.lead {
  margin: clamp(18px, 3svh, 28px) 0 0; max-width: 46ch;
  font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--text-soft);
}

.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 4svh, 40px); }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 28px 10px 10px; border-radius: 999px;
  font-weight: 500; font-size: 16px; letter-spacing: 0.02em; line-height: 1.2;
  transition: background-color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft), transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.985); }
.btn__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 999px;
  transition: transform 0.7s var(--ease-out), background-color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}
.btn__icon img { width: 22px; height: 22px; }
.btn:hover .btn__icon, .btn:focus-visible .btn__icon { transform: rotate(180deg); }

.btn--primary { background: var(--orange); color: var(--blue); box-shadow: 0 10px 30px -12px rgba(242, 140, 40, 0.55); }
.btn--primary .btn__icon { background: var(--blue); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--white); color: var(--blue); box-shadow: 0 14px 34px -12px rgba(255, 255, 255, 0.35); }

.btn--ghost { border: 1px solid var(--line); color: var(--white); }
.btn--ghost .btn__icon { border: 1px solid var(--line); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }
.btn--ghost:hover .btn__icon, .btn--ghost:focus-visible .btn__icon { border-color: var(--white); }

/* ---------- Footer ---------- */
.contact {
  position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding: 0 var(--gutter-safe-r) var(--pad-bottom) var(--gutter-safe-l);
  font-size: 15px; line-height: 1.5; color: var(--text-mute);
}
.contact__cols { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); }
.contact__cols a { color: var(--white); }
.contact__cols a:hover { color: var(--orange); }
.contact address { font-style: normal; }
.contact__tag { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); white-space: nowrap; }

/* ---------- Motion ---------- */
.js:not(.is-ready) .rise,
.js:not(.is-ready) .title .line > span,
.js:not(.is-ready) .hero__mark,
.js:not(.is-ready) .eyebrow__mark { opacity: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lineUp { from { transform: translateY(112%); opacity: 0.001; } to { transform: translateY(0); opacity: 1; } }
@keyframes markIn { from { opacity: 0; transform: translate3d(-40px, 0, 0); } to { opacity: 1; transform: translate3d(calc(var(--px) * 18px), calc(var(--py) * 8px), 0); } }
@keyframes spinIn { from { transform: rotate(-120deg) scale(0.5); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
@keyframes photoIn { from { opacity: 0; } to { opacity: 0.55; } }
@keyframes kenburns { from { scale: 1.02; } to { scale: 1.09; } }

.is-ready .rise { animation: rise var(--dur) var(--ease-out) both; animation-delay: var(--d, 0s); }
.is-ready .title .line > span { animation: lineUp 1.1s var(--ease-out) both; animation-delay: var(--d, 0s); }
.is-ready .hero__mark { animation: markIn 1.8s var(--ease-out) 0.2s both; }
.is-ready .eyebrow__mark { animation: spinIn 1.1s var(--ease-out) 0.35s both; }
.is-ready .hero__media img { animation: photoIn 1.4s ease-out both, kenburns 26s ease-in-out 1.2s infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js:not(.is-ready) .rise, .js:not(.is-ready) .title .line > span, .js:not(.is-ready) .hero__mark, .js:not(.is-ready) .eyebrow__mark { opacity: 1; }
  .hero__mark { opacity: 1; }
  .hero__media, .hero__mark { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .header__tel { display: none; }
  .hero__media img { object-position: 62% 12%; opacity: 0.5; }
  .is-ready .hero__media img { animation-name: photoInMobile, kenburns; }
  .hero__shade--x { background: linear-gradient(115deg, var(--blue) 0%, rgba(10, 35, 66, 0.85) 30%, rgba(10, 35, 66, 0.45) 65%, rgba(10, 35, 66, 0.3) 100%); }
  .hero__mark { font-size: 46vw; bottom: auto; top: calc(var(--pad-top) + 64px); }
  .intro { justify-content: flex-end; padding-top: 28px; padding-bottom: 28px; }
  .eyebrow { font-size: 13px; letter-spacing: 0.14em; gap: 10px; margin-bottom: 16px; }
  .eyebrow__mark { width: 18px; height: 18px; margin-top: calc(0.75em - 9px); }
  .title { font-size: clamp(48px, min(15vw, 11svh), 96px); }
  .ctas { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .btn { justify-content: flex-start; }
  .contact { flex-direction: column; align-items: flex-start; gap: 18px; }
  .contact__cols { gap: 16px 24px; }
}
@keyframes photoInMobile { from { opacity: 0; } to { opacity: 0.5; } }

@media (max-width: 380px) {
  :root { --gutter: 20px; }
  .title { font-size: clamp(42px, 14.5vw, 64px); }
  .lead { font-size: 16px; margin-top: 20px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .intro { padding-top: 24px; padding-bottom: 24px; }
  .title { font-size: clamp(36px, 14svh, 96px); max-width: none; display: flex; flex-wrap: wrap; column-gap: 0.25em; }
  .lead { margin-top: 16px; }
  .ctas { margin-top: 22px; }
  .btn { min-height: 48px; }
  .hero__mark { font-size: 30vw; }
}

@media (min-width: 1800px) {
  .title { max-width: 11ch; }
}

@media (hover: none) {
  .btn:hover .btn__icon { transform: none; }
}
