@font-face { font-family: "Montserrat"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/montserrat-300.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/montserrat-regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/montserrat-600.woff2") format("woff2"); }

:root {
  --ink: #17292f;      /* petrol, from the original site */
  --slate: #5f6b6c;    /* original #687374, darkened slightly for AA on white */
  --olive: #3c3a1c;
  --sun: #fff59d;      /* the original site's yellow */
  --paper: #ffffff;
  --mist: #f2f4f4;
  --rule: rgba(23, 41, 47, .16);

  --pad: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --gutter: max(var(--pad), (100vw - var(--max)) / 2 + var(--pad));
  --bar-h: 68px;

  /* hero portrait geometry: image is 1100 x 1502, studio floor sits at 61.75% */
  --ratio: 1.3655;
  --floor: .6175;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  font: 500 15px/1 "Montserrat", sans-serif;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #0e1d22; }
.btn-sun { background: var(--sun); color: var(--ink); font-weight: 600; }
.btn-sun:hover { background: #fff; }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.bar.is-scrolled { border-bottom-color: var(--rule); }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark span { font-weight: 500; font-size: 18px; letter-spacing: .32em; margin-right: -.32em; }
.bar-nav { display: flex; gap: 32px; font-size: 15px; }
.bar-nav a, .lang { text-decoration: none; color: var(--slate); transition: color .2s; }
.bar-nav a:hover, .lang:hover { color: var(--ink); }
.bar-end { display: flex; align-items: center; gap: 20px; }
.lang { font-size: 14px; font-weight: 500; }

/* ---------- hero: who above the horizon, what below it ---------- */
.hero {
  --w: min(35vw, calc((100svh - var(--bar-h) - 120px) / var(--ratio)), 500px);
  --h: calc(var(--w) * var(--ratio));
  position: relative;
  padding: 16px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--w);
  /* row 1 ends exactly on the studio floor of the photo */
  grid-template-rows: minmax(calc(var(--h) * var(--floor)), auto) minmax(calc(var(--h) * (1 - var(--floor)) + 64px), auto);
  column-gap: clamp(24px, 4vw, 64px);
  overflow-x: clip;
}

.portrait {
  grid-column: 2; grid-row: 1;
  align-self: end;
  margin-bottom: calc(var(--h) * (var(--floor) - 1));
  position: relative;
  width: var(--w);
  isolation: isolate;
  background: var(--paper);
}
/* the horizon: the OLICHI mark is a circle resting on a line, and the photo has a floor line */
.portrait::after {
  content: ""; position: absolute; z-index: 2;
  top: calc(var(--h) * var(--floor)); left: -100vw; right: -100vw;
  height: 1px; background: var(--ink);
}
.portrait img { position: relative; width: 100%; mix-blend-mode: multiply; }
.sun {
  position: absolute; left: 0; right: 0; top: 0;
  height: calc(var(--h) * var(--floor));
  overflow: hidden;
  pointer-events: none;
}
.sun span {
  position: absolute; bottom: 0; left: 51%;
  width: 74%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  transform: translateX(-50%);
  animation: rise 1.4s cubic-bezier(.2, .7, .1, 1) .2s both;
}
@keyframes rise {
  from { transform: translate(-50%, 100%); }
  to   { transform: translate(-50%, 0); }
}

.hero-top {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px 0 clamp(18px, 2.2vw, 30px);
}
.byline {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0;
  white-space: nowrap;
  padding-top: 10px;
  font-size: 14px; line-height: 1.45; text-align: center;
}
.byline strong { font-weight: 600; font-size: 15px; }
.byline span { color: var(--slate); }
.hero h1 {
  font-weight: 300;
  font-size: clamp(2.1rem, min(4.4vw, 7.4svh), 4.25rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero h1 span { display: block; white-space: nowrap; }

.hero-brands { grid-column: 1; grid-row: 2; padding: clamp(16px, 2.4svh, 28px) 0 clamp(28px, 4svh, 48px); }
.brand-row + .brand-row { margin-top: clamp(10px, 2svh, 20px); }
.brand-row h2 { font-size: 14px; font-weight: 500; color: var(--slate); }

.logos { display: grid; align-items: center; height: calc(64px * var(--s, 1)); }
.logos-6 { grid-template-columns: repeat(6, 1fr); }
.logos-4 { grid-template-columns: repeat(4, 1fr); }
.logos li { display: grid; place-items: center; }
.logos img {
  height: calc(var(--h, 30px) * var(--s, 1)); width: auto; max-width: 88%; object-fit: contain;
  filter: brightness(0);          /* the logo files are white; draw them in ink */
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(20px, 3svh, 32px); }
.phone { font-size: 15px; color: var(--slate); text-decoration: none; }
.phone:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.btn-line { border: 1px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- rail: the film from the original site ---------- */
.rail { position: relative; background: #1d1f20; color: #fff; }
.rail-video {
  display: block; width: 100%;
  aspect-ratio: 16 / 9; max-height: 92svh;
  object-fit: cover; object-position: 50% 0;
  background: #8a8a8a;
}
.rail::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 16, 18, .72) 0%, rgba(12, 16, 18, .25) 38%, transparent 60%);
}
.rail-copy {
  position: absolute; z-index: 1;
  left: var(--gutter);
  bottom: clamp(32px, 6vw, 88px);
  max-width: 34rem;
}
.rail-copy h2 { font-weight: 300; font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.rail-copy p { margin-top: 18px; color: rgba(255, 255, 255, .8); max-width: 48ch; }

/* ---------- how it works ---------- */
.how { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--pad); }
.how h2, .about h2, .contact h2 { font-weight: 300; font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); margin-top: clamp(36px, 5vw, 64px); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 44px; height: 1px; background: var(--ink); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ink); background: var(--paper);
  font-weight: 500; font-size: 15px;
  position: relative; margin-bottom: 28px;
}
.steps li:first-child::before { background: var(--sun); border-color: var(--sun); }
.steps h3 { font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--slate); max-width: 34ch; }

/* ---------- about ---------- */
.about {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad) clamp(64px, 9vw, 128px);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.about-photo img { width: 100%; }
.about-copy > p { margin-top: 20px; color: var(--slate); max-width: 52ch; }
.extras { margin-top: 32px; display: grid; gap: 18px; }
.extras div { border-top: 1px solid var(--rule); padding-top: 14px; }
.extras dt { font-weight: 600; font-size: 16px; }
.extras dd { color: var(--slate); font-size: 16px; }

/* ---------- contact ---------- */
.contact {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) var(--pad);
  border-top: 1px solid var(--rule);
}
.contact-lines { margin-top: 24px; display: grid; gap: 4px; justify-items: start; }
.contact-big {
  font-weight: 300; font-size: clamp(1.5rem, 4.2vw, 3.4rem); line-height: 1.25; letter-spacing: -.02em;
  text-decoration: none; overflow-wrap: anywhere;
  background-image: linear-gradient(var(--sun), var(--sun));
  background-size: 0 40%; background-position: 0 88%; background-repeat: no-repeat;
  transition: background-size .35s ease;
}
.contact-big:hover, .contact-big:focus-visible { background-size: 100% 40%; }
.contact-note { margin-top: 24px; color: var(--slate); }

/* ---------- legal ---------- */
.legal { background: var(--mist); color: var(--slate); font-size: 14px; line-height: 1.6; padding: 48px var(--pad) 40px; }
.legal > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.legal-small { margin-top: 24px; font-size: 13px; max-width: var(--max); }
.legal-small + .legal-small { margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bar-nav { display: none; }
  .logos { --s: .82; }
}

@media (max-width: 699px) {
  :root { --bar-h: 60px; }
  body { font-size: 16px; }
  .bar { gap: 12px; }
  .wordmark span { font-size: 16px; letter-spacing: .26em; }
  .bar-end { gap: 14px; }
  .bar .btn-small { padding: 0 14px; font-size: 13px; min-height: 36px; }

  .hero {
    --w: min(70vw, calc(33svh / var(--ratio)), 300px);
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-top: 0;
  }
  .portrait { grid-column: 1; grid-row: 1; justify-self: center; align-self: start; margin-bottom: 0; }
  .hero-top { grid-row: 2; padding: 20px 0 0; }
  .hero h1 { font-size: clamp(1.75rem, 7.8vw, 2.4rem); }
  .hero h1 span { white-space: normal; }
  .portrait { margin-bottom: 52px; }
  .byline { padding-top: 8px; }
  .hero-brands { grid-row: 3; padding: 14px 0 40px; }
  .logos { --s: .62; height: auto; row-gap: 10px; padding: 8px 0 2px; }
  .logos-6 { grid-template-columns: repeat(3, 1fr); }
  .logos li { min-height: 44px; }
  .brand-row h2 { font-size: 13px; }
  .actions { flex-direction: column; align-items: stretch; text-align: center; }


  .rail::after { display: none; }
  .rail-video { aspect-ratio: 1; max-height: none; }
  .rail-copy { position: static; padding: 32px var(--pad) 48px; background: var(--ink); }

  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
  .steps li::before { grid-row: 1 / span 2; margin-bottom: 0; }

  .about { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 360px) {
  .lang { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
