/* tillsetup.com — tokens from DESIGN.md / design-preview.html
   After KH Teka license: font-family: "KH Teka", Arial, sans-serif; */

@font-face {
  font-family: "Satoshi";
  src: url("fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0c0c;
  --surface: #161616;
  --text: #f2f2f2;
  --text-muted: #8a8a8a;
  --accent-border: rgba(255, 255, 255, 0.85);
  --border: rgba(255, 255, 255, 0.12);
  --grain-opacity: 0.18;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 180ms;
  --duration-enter: 900ms;
  --pad-x: clamp(20px, 5vw, 56px);
  --header-h: 64px;
  --measure: 38rem;
  --z-content: 1;
  --z-header: 40;
  --z-grain: 50;
  --z-skip: 100;
  --font: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--text);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  animation: grain-flicker 0.9s steps(2) infinite;
}

@keyframes grain-flicker {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.2%, 0.6%); }
  50% { transform: translate(0.8%, -0.9%); }
  75% { transform: translate(-0.5%, 1.1%); }
  100% { transform: translate(0, 0); }
}

.skip {
  position: absolute;
  left: var(--pad-x);
  top: 8px;
  z-index: var(--z-skip);
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: rgba(12, 12, 12, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  padding: 8px var(--pad-x);
  gap: 16px;
}

.logo {
  justify-self: start;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: color var(--duration) var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--text);
}

.cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--accent-border);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.cta:hover {
  background: var(--text);
  color: var(--bg);
}

.cta-arrow {
  font-size: 12px;
  line-height: 1;
}

.cta-lg {
  margin-top: var(--space-4);
}

.hero {
  position: relative;
  z-index: var(--z-content);
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  padding: calc(var(--header-h) + 24px) var(--pad-x) clamp(28px, 5vh, 56px);
  overflow: hidden;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #0c0c0c;
  background-image: url("assets/still-black-texture.jpg");
  background-size: cover;
  background-position: center;
}

.hero-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.06);
  filter: grayscale(0.12) brightness(0.78) contrast(1.06) saturate(0.7);
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.4) 0%, rgba(12, 12, 12, 0.2) 42%, rgba(8, 8, 8, 0.64) 100%),
    radial-gradient(ellipse 90% 55% at 50% 42%, rgba(12, 12, 12, 0.06), rgba(8, 8, 8, 0.48));
}

.hero-film {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("assets/grain-tile.png");
  background-size: 512px 512px;
  background-repeat: repeat;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 80px 90px rgba(0, 0, 0, 0.55),
    inset 0 -90px 110px rgba(0, 0, 0, 0.72),
    inset 60px 0 80px rgba(0, 0, 0, 0.28),
    inset -60px 0 80px rgba(0, 0, 0, 0.28);
}

.hero-lede {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  margin: 0;
  max-width: 22rem;
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(242, 242, 242, 0.88);
}

.hero-slogan {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  font-size: clamp(40px, 7.4vw, 108px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero-slogan .br {
  display: none;
}

.hero-slogan .br-d {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .js.is-ready .hero-lede {
    animation: hero-enter 0.95s var(--ease) both;
  }

  .js.is-ready .hero-slogan {
    animation: hero-enter 1.05s var(--ease) 0.12s both;
  }
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.section {
  position: relative;
  z-index: var(--z-content);
  padding: clamp(80px, 14vh, 160px) 0;
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - (var(--pad-x) * 2)));
  margin: 0 auto;
}

.section-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 72px 80px -24px rgba(0, 0, 0, 0.55),
    inset 0 -72px 80px -24px rgba(0, 0, 0, 0.55);
}

.kicker {
  margin: 0 0 var(--space-4);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.display {
  margin: 0 0 clamp(40px, 6vh, 72px);
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.services {
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service {
  padding: clamp(20px, 3vh, 36px) 0;
  border-top: 1px solid var(--border);
}

.service:last-child {
  border-bottom: 1px solid var(--border);
}

.service-name {
  margin: 0;
  font-size: clamp(28px, 4.8vw, 56px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-muted);
  transition: color 0.45s var(--ease);
}

.service-note {
  margin: 10px 0 0;
  max-width: var(--measure);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  opacity: 0.35;
  transition: opacity 0.45s var(--ease), color 0.45s var(--ease);
}

.service.is-active .service-name {
  color: var(--text);
}

.service.is-active .service-note {
  opacity: 1;
  color: var(--text-muted);
}

.process-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 280px);
  gap: 28px 48px;
  align-items: end;
  margin-bottom: clamp(28px, 4vh, 48px);
}

.process-head .display {
  margin-bottom: 0;
}

.media-block {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #101010;
}

.media-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-block::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 60px 18px rgba(12, 12, 12, 0.72);
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.12), rgba(12, 12, 12, 0.42));
}

.process-media {
  aspect-ratio: 4 / 3;
  max-height: 220px;
}

.process-media img {
  filter: grayscale(0.35) brightness(0.62) contrast(1.12);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.step {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.28fr) 1fr;
  gap: 16px 32px;
  padding: clamp(28px, 4vh, 48px) 0;
  border-bottom: 1px solid var(--border);
}

.step-index {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.step-body h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.step-body p {
  margin: 0;
  max-width: var(--measure);
  color: var(--text-muted);
  font-size: 16px;
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 40px 56px;
  align-items: start;
}

.trust-lead {
  margin: 0 0 var(--space-5);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 16ch;
}

.facts {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.fact {
  display: grid;
  grid-template-columns: minmax(7rem, 0.28fr) 1fr;
  gap: 12px 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.fact dt {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.fact dd {
  margin: 0;
  font-size: 16px;
}

.fact a {
  text-decoration: none;
}

.fact a:hover {
  text-decoration: underline;
}

.trust-note {
  margin: var(--space-5) 0 0;
  max-width: var(--measure);
  color: var(--text-muted);
  font-size: 16px;
}

.trust-media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  min-height: 420px;
  height: min(72vh, 640px);
}

.trust-media img {
  filter: grayscale(0.42) brightness(0.52) contrast(1.12) saturate(0.45);
}

.contact .section-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-mail {
  display: block;
  margin: 8px 0 0;
  font-size: clamp(28px, 6.4vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: opacity var(--duration) var(--ease);
}

.contact-mail:hover {
  opacity: 0.72;
}

.contact-note {
  margin: var(--space-3) 0 0;
  color: var(--text-muted);
  font-size: 16px;
}

.site-footer {
  position: relative;
  z-index: var(--z-content);
  isolation: isolate;
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("assets/grain-tile.png");
  background-size: 512px 512px;
}

.footer-inner,
.footer-bar {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - (var(--pad-x) * 2)));
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.9fr) minmax(240px, 0.8fr);
  gap: 48px 40px;
  padding: clamp(40px, 6vh, 72px) 0 clamp(72px, 12vh, 140px);
}

.footer-label {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-label-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.footer-label-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
  flex-shrink: 0;
}

.footer-nav ul,
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--border);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-decoration: none;
  color: var(--text);
  transition: opacity var(--duration) var(--ease);
}

.footer-nav a:hover {
  opacity: 0.62;
}

.footer-portrait {
  margin: 0 0 20px;
  width: min(100%, 16rem);
}

.footer-portrait img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: 48% 42%;
  filter: grayscale(0.55) brightness(0.55) contrast(1.15);
  background: #141414;
}

.footer-portrait figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 4px 0 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.footer-mail:hover {
  text-decoration: underline;
}

.footer-mail-icon {
  display: inline-flex;
  color: var(--text-muted);
}

.footer-place,
.footer-address {
  margin: 0;
  max-width: 22rem;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer-address {
  margin-top: 8px;
  font-size: 13px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 44px;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  transition: opacity var(--duration) var(--ease);
}

.footer-links a:hover {
  opacity: 0.62;
}

.footer-links li + li {
  margin-top: 4px;
}

.footer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px 24px;
  padding: 0 0 clamp(28px, 4vh, 40px);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.footer-time {
  margin: 0;
  justify-self: start;
}

.footer-time-city,
.footer-time-date {
  display: block;
}

.footer-top {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.footer-top:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  justify-self: end;
  text-align: right;
}

.js [data-enter] {
  opacity: 0;
  transform: translateY(48px);
  filter: blur(10px);
}

.js [data-enter].is-in {
  animation: enter-up var(--duration-enter) var(--ease) var(--enter-delay, 0ms) both;
}

@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(48px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.no-js [data-enter] {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (max-width: 1023px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-nav {
    grid-column: 1 / -1;
  }

  .trust-media {
    position: relative;
    top: auto;
    min-height: 280px;
    height: 320px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 104px;
  }

  .nav {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    min-height: 0;
    padding-top: 4px;
    padding-bottom: 4px;
    row-gap: 0;
  }

  .logo { grid-column: 1; grid-row: 1; }
  .cta { grid-column: 2; grid-row: 1; }
  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 8px 20px;
  }

  .hero-slogan {
    font-size: clamp(44px, 14vw, 58px);
    letter-spacing: -0.035em;
  }

  .hero-slogan .br-d {
    display: none;
  }

  .hero-slogan .br-m {
    display: block;
  }

  .process-head,
  .trust-layout,
  .step,
  .fact,
  .footer-inner,
  .footer-bar {
    grid-template-columns: 1fr;
  }

  .process-media {
    max-height: 160px;
    width: 100%;
  }

  .step-index {
    letter-spacing: 0.12em;
  }

  .trust-lead {
    max-width: none;
  }

  .trust-media {
    order: 3;
    height: 220px;
    min-height: 0;
  }

  .footer-nav a {
    min-height: 56px;
    font-size: clamp(32px, 10vw, 44px);
  }

  .footer-bar {
    padding-bottom: 32px;
  }

  .footer-time,
  .footer-top,
  .footer-copy {
    justify-self: start;
    text-align: left;
  }

  .footer-top {
    justify-content: flex-start;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    justify-content: flex-end;
    padding-right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .grain {
    animation: none;
  }

  .hero-loop {
    display: none;
  }

  .js .hero-lede,
  .js.is-ready .hero-lede,
  .js .hero-slogan,
  .js.is-ready .hero-slogan,
  .js [data-enter],
  .js [data-enter].is-in {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
    transition: none;
  }
}
