/* Gideon Code, website v2. Tinta (ink) ground, Kobalt for actions, Sunce only in the mark. */
:root {
  --ink: #0E1630;
  --ink-2: #172140;
  --ink-line: #2B3658;
  --on-ink: #EEF0F5;
  --on-ink-2: #A9B0C4;
  --stone: #ECEDEF;
  --paper: #FFFFFF;
  --text: #0E1630;
  --text-2: #4D5468;
  --line: #CDD0D8;
  --kobalt: #2446D8;
  --kobalt-dk: #1B37B5;
  --sunce: #FFC21A;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 72px; --s9: 120px;
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px;
  --wrap: 1240px;
  --gut: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6;
  color: var(--text); background: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p, ul, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--kobalt); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .process :focus-visible, .top :focus-visible, .foot :focus-visible, .contact :focus-visible { outline-color: var(--sunce); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

.skip { position: absolute; left: var(--s4); top: -60px; z-index: 60; background: var(--sunce); color: var(--ink); padding: var(--s3) var(--s4); font-weight: 600; border-radius: var(--r-sm); }
.skip:focus { top: var(--s4); }

/* Buttons: a verb and an object, 52 px tall, square-ish corners */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s5); border-radius: var(--r-sm);
  font: 600 17px/1.2 var(--font); text-decoration: none; letter-spacing: -.005em;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .05s; }
.btn--sm { min-height: 44px; padding: 0 var(--s4); font-size: 15px; }
.btn--blue { background: var(--kobalt); color: #fff; }
.btn--blue:hover { background: var(--kobalt-dk); }
.btn--ghost { color: var(--on-ink); border-color: var(--ink-line); }
.btn--ghost:hover { border-color: var(--on-ink-2); }
.btn--white { background: #fff; color: var(--kobalt); }
.btn--white:hover { background: var(--stone); }

.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--kobalt); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 0 1.5px no-repeat;
  transition: background-size .25s var(--ease);
}
.link:hover { background-size: 100% 1.5px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(14, 22, 48, .9); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid transparent; }
.top__in { display: flex; align-items: center; gap: var(--s6); height: 76px; }
.top__logo { display: block; margin-right: auto; padding: var(--s2) 0; }
.top__logo img { width: 171px; height: 38px; }
.top__nav { display: flex; gap: var(--s1); }
.top__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); color: var(--on-ink-2); text-decoration: none; font-size: 16px; font-weight: 500; border-radius: var(--r-sm); transition: color .15s; }
.top__nav a:hover { color: #fff; }
.top__menu { display: none; }
.menu { position: fixed; inset: 76px 0 0; background: var(--ink); z-index: 39; }
.menu__nav { display: flex; flex-direction: column; padding-top: var(--s6); padding-bottom: var(--s6); }
.menu__nav a:not(.btn) { display: flex; align-items: center; min-height: 64px; color: var(--on-ink); text-decoration: none; font-size: 28px; font-weight: 600; letter-spacing: -.02em; border-bottom: 1px solid var(--ink-line); }
.menu__nav .btn { margin-top: var(--s6); }

/* ---------- Hero ---------- */
.hero { color: var(--on-ink); background: var(--ink); }
.hero__in {
  min-height: calc(100svh - 76px); min-height: max(640px, calc(100svh - 76px));
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto;
  column-gap: var(--s7); padding-top: var(--s8); padding-bottom: var(--s7);
}
.hero__intro { grid-column: 1; max-width: 36ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--on-ink-2); }
.hero__h {
  grid-column: 1; align-self: center; padding: var(--s7) 0;
  font-size: clamp(3rem, 1rem + 6.4vw, 7.25rem); line-height: .98; letter-spacing: -.045em; font-weight: 700;
}
.hero__h span { display: block; }
.hero__mark { grid-column: 2; grid-row: 1 / 3; align-self: center; width: clamp(220px, 22vw, 340px); height: auto; }
.hero__foot { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--ink-line); }
.hero__fact { max-width: 40ch; color: var(--on-ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- Services ---------- */
.services { background: var(--paper); padding: var(--s9) 0; }
.services__in { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: start; }
.services__head { position: sticky; top: 120px; }
.services__head h2, .process h2, .refs__head h2, .products h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; }
.services__head p { margin-top: var(--s5); color: var(--text-2); max-width: 38ch; }
.svc { padding: var(--s6) 0 var(--s7); border-top: 1px solid var(--line); }
.svc:last-child { padding-bottom: 0; }
.svc h3 { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem); letter-spacing: -.03em; line-height: 1.1; }
.svc__lead { margin-top: var(--s4); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); max-width: 52ch; }
.svc ul { list-style: none; padding: 0; margin-top: var(--s5); display: grid; gap: var(--s2); color: var(--text-2); }
.svc li { position: relative; padding-left: 22px; }
.svc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 1.5px; background: var(--kobalt); }

/* ---------- Process ---------- */
.process { background: var(--ink); color: var(--on-ink); padding: var(--s9) 0; }
.steps { list-style: none; padding: 0; margin-top: var(--s7); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); counter-reset: none; }
.step { padding-top: var(--s5); border-top: 1px solid var(--ink-line); }
.step__n { display: block; font-size: 4.5rem; line-height: 1; font-weight: 400; letter-spacing: -.04em; color: var(--on-ink-2); }
.step h3 { margin-top: var(--s6); font-size: 1.375rem; letter-spacing: -.015em; }
.step p { margin-top: var(--s3); color: var(--on-ink-2); font-size: 17px; max-width: 30ch; }

/* ---------- References ---------- */
.refs { background: var(--stone); padding: var(--s9) 0; }
.refs__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s5); }
.refs__head p { color: var(--text-2); }
.refs__list { margin-top: var(--s7); display: grid; gap: var(--s8); }
.ref { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s7); align-items: center; padding-top: var(--s7); border-top: 1px solid var(--line); }
.ref__media { position: relative; display: block; padding-bottom: var(--s6); padding-right: var(--s7); }
.ref__browser { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(14, 22, 48, .35); }
.ref__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #F6F7F9; }
.ref__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ref__browser img, .ref__phone img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.ref__media:hover img { transform: scale(1.02); }
.ref__phone { position: absolute; right: 0; bottom: 0; width: 22%; aspect-ratio: 390 / 650; border: 6px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: 0 24px 40px -20px rgba(14, 22, 48, .5); }
.ref__phone img { height: 100%; object-fit: cover; object-position: top; }
.ref__text h3 { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem); letter-spacing: -.03em; line-height: 1.1; }
.ref__kind { margin-top: var(--s2); font-weight: 600; color: var(--kobalt); }
.ref__text > p:not(.ref__kind) { margin-top: var(--s4); color: var(--text-2); max-width: 44ch; }
.ref__tags { list-style: none; padding: 0; margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2); }
.ref__tags li { font-size: 14px; font-weight: 500; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.ref__text .link { margin-top: var(--s4); }

/* ---------- Products: deliberately small ---------- */
.products { background: var(--paper); padding: var(--s8) 0; }
.products__in { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: start; }
.products h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.product { display: grid; grid-template-columns: 240px 1fr; gap: var(--s6); align-items: center; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); }
.product__shot { display: block; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.product__shot img { transition: transform .5s var(--ease); }
.product__shot:hover img { transform: scale(1.03); }
.product h3 { font-size: 1.375rem; letter-spacing: -.015em; }
.product p { margin-top: var(--s2); color: var(--text-2); font-size: 17px; max-width: 46ch; }
.product .link { margin-top: var(--s1); }

/* ---------- Contact: the one Kobalt band ---------- */
.contact { background: var(--kobalt); color: #fff; padding: var(--s9) 0; }
.contact__in { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s8); align-items: end; }
.contact h2 { font-size: clamp(2.25rem, 1.1rem + 3.6vw, 4.5rem); line-height: 1.02; letter-spacing: -.04em; }
.contact__side p { color: #DCE3FF; max-width: 42ch; }
.contact__actions { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); }
.contact__mail { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--on-ink-2); padding: var(--s7) 0; font-size: 15px; }
.foot__in { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s5) var(--s7); align-items: center; }
.foot__in img { width: 144px; height: 32px; }
.foot__nav { display: flex; gap: var(--s1); }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); text-decoration: none; }
.foot__nav a:hover { color: #fff; }
.foot__note { grid-column: 1 / -1; padding-top: var(--s5); border-top: 1px solid var(--ink-line); font-size: 14px; }
/* Placeholder marker: remove once the legal line is filled in */
[data-placeholder="legal"] { justify-self: start; padding: 6px 10px; border: 1px dashed var(--sunce); border-radius: var(--r-sm); color: var(--on-ink); }

/* ---------- Hero entrance (once, after the intro) ---------- */
html.js .rise { opacity: 0; transform: translateY(22px); }
html.js.ready .rise { animation: rise .75s var(--ease) calc(var(--i, 0) * 80ms) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Intro ---------- */
.intro { display: none; }
html.has-intro .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: var(--ink); transition: background-color .6s cubic-bezier(.7, 0, .2, 1); }
html.has-intro #headerLogo { opacity: 0; }
html.has-intro body { overflow: hidden; }
.intro__logo { width: min(660px, 84vw); transform-origin: 0 0; will-change: transform; }
.intro__logo svg { width: 100%; height: auto; overflow: visible; }
.intro__g { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.is-play .intro__g { animation: gDraw .8s cubic-bezier(.45, 0, .2, 1) .05s forwards; }
.intro__tile { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; }
.is-play .intro__tile { animation: tileIn .5s cubic-bezier(.34, 1.56, .64, 1) .8s forwards; }
.intro__word { clip-path: inset(0 100% 0 0); }
.is-play .intro__word { animation: wordIn .6s cubic-bezier(.45, 0, .2, 1) 1.02s forwards; }
.intro__caret { opacity: 0; }
.is-play .intro__caret { animation: caretMove .6s cubic-bezier(.45, 0, .2, 1) 1.02s forwards, caretOut .2s linear 1.62s forwards; }
.intro__skip { position: fixed; right: var(--s5); bottom: var(--s5); min-height: 44px; padding: 0 var(--s4); background: transparent; color: var(--on-ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-sm); font: 500 15px var(--font); cursor: pointer; transition: opacity .3s; }
.intro__skip:hover { color: #fff; }
html.has-intro .intro.is-out { background-color: rgba(14, 22, 48, 0); }
.intro.is-out .intro__skip { opacity: 0; }
@keyframes gDraw { to { stroke-dashoffset: 0; } }
@keyframes tileIn { from { opacity: 0; transform: translate(60%, -60%) scale(.2) rotate(-25deg); } to { opacity: 1; transform: none; } }
@keyframes wordIn { to { clip-path: inset(0 0 0 0); } }
@keyframes caretMove { from { opacity: 1; transform: translateX(0); } to { opacity: 1; transform: translateX(318px); } }
@keyframes caretOut { from { opacity: 1; transform: translateX(318px); } to { opacity: 0; transform: translateX(318px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services__in, .products__in, .contact__in { grid-template-columns: 1fr; gap: var(--s6); }
  .services__head { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--s7); }
  .ref { grid-template-columns: 1fr; gap: var(--s6); }
}
@media (max-width: 900px) {
  .top__nav, .top__cta { display: none; }
  .top__menu { display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px; padding: 0 var(--s3); margin-right: calc(-1 * var(--s3)); background: none; border: 0; color: var(--on-ink); font: 600 16px var(--font); cursor: pointer; }
  .top__menu-bars, .top__menu-bars::before { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .top__menu-bars::before { content: ""; position: absolute; top: 7px; left: 0; }
  .top__menu-bars { transform: translateY(-3.5px); }
  .top__menu[aria-expanded="true"] .top__menu-bars { transform: rotate(45deg); }
  .top__menu[aria-expanded="true"] .top__menu-bars::before { transform: rotate(-90deg); top: 0; }
  .hero__in { grid-template-columns: 1fr; grid-template-rows: auto auto auto 1fr auto; }
  .hero__mark { grid-column: 1; grid-row: 1; width: 88px; margin-bottom: var(--s6); }
  .hero__intro { grid-row: 2; }
  .hero__h { grid-row: 3; }
  .hero__foot { grid-row: 5; flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  :root { --gut: 20px; --s9: 80px; --s8: 56px; }
  body { font-size: 17px; }
  .top__in { height: 68px; }
  .menu { inset: 68px 0 0; }
  .top__logo img { width: 144px; height: 32px; }
  .hero__in { padding-top: var(--s6); padding-bottom: var(--s6); min-height: max(600px, calc(100svh - 68px)); }
  .hero__h { padding: var(--s6) 0 var(--s7); letter-spacing: -.04em; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
  .btn--sm { width: auto; }
  .steps { grid-template-columns: 1fr; row-gap: var(--s6); }
  .step__n { font-size: 3.25rem; }
  .step h3 { margin-top: var(--s4); }
  .refs__head { flex-direction: column; gap: var(--s2); }
  .ref__media { padding-right: var(--s6); padding-bottom: var(--s5); }
  .ref__phone { width: 28%; border-width: 4px; border-radius: 14px; }
  .product { grid-template-columns: 1fr; padding: var(--s4); gap: var(--s4); }
  .foot__in { grid-template-columns: 1fr; }
  .foot__nav { flex-wrap: wrap; margin-left: calc(-1 * var(--s2)); }
  .intro__skip { right: var(--s4); bottom: var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .rise { opacity: 1; transform: none; }
  .intro { display: none !important; }
}
