/* 1e9 Inc. One face (Schibsted Grotesk). Ultramarine for the hero and the footer, deep ink for what we do and contact,
   crisp paper between, and one warm accent (sun) that follows the "one" up to a billion. The hero's powers of ten is
   the only thing that moves on its own; the rest moves only when someone uses it.
   Alignment: every section's content starts and ends on the same two edges (--edge), at any width. */
:root {
  --blue: #2B33F0;       /* ultramarine: the hero, the footer */
  --ink: #0A0E33;        /* text on paper; the what-we-do and contact bands */
  --ink-2: #1F2560;      /* lines on the ink */
  --paper: #F3F4F8;      /* paper */
  --paper-2: #E1E4EE;    /* rules on paper */
  --card: #FFFFFF;
  --slate: #4F557A;      /* secondary text on paper */
  --haze: #DDE0FF;       /* secondary text on blue and ink */
  --sun: #FFB21E;        /* the accent */
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --head: 72px;
  --pad: clamp(72px, 10vw, 136px);   /* section top and bottom */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .top:not(.solid) :focus-visible, .what :focus-visible, .contact :focus-visible, .foot :focus-visible { outline-color: var(--sun); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--edge); top: -60px; background: var(--paper); padding: 8px 12px; z-index: 20; }
.skip:focus { top: 12px; }
.wrap { padding-left: var(--edge); padding-right: var(--edge); }

/* Header: white on the blue, ink on paper once you scroll past the hero */
.top { position: fixed; inset: 0 0 auto 0; z-index: 10; height: var(--head); color: #fff; transition: background-color .25s, color .25s, box-shadow .25s; }
.top.solid { background: rgba(243,244,248,.92); color: var(--ink); box-shadow: 0 1px 0 var(--paper-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.top-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--edge); }
.mark { font-weight: 800; font-size: 26px; letter-spacing: -0.045em; text-decoration: none; line-height: 1; display: inline-flex; align-items: baseline; gap: 6px; }
.mark span { font-size: 13px; font-weight: 600; letter-spacing: 0; opacity: .75; }
.top nav, .foot nav { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.top nav a, .foot nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; white-space: nowrap; }
.top nav a:hover, .foot nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--sun); }

/* Hero: the headline and the field side by side, the same height, centred between the header and the scale */
.hero { position: relative; background: var(--blue); color: #fff; overflow: hidden; display: grid; grid-template-rows: auto auto;
  background-image: radial-gradient(60% 70% at 78% 45%, rgba(255,255,255,.08), rgba(255,255,255,0) 70%); }
.hero-main { align-self: center; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.5vw, 72px); align-items: stretch;
  padding: calc(var(--head) + clamp(36px, 7vh, 88px)) var(--edge) clamp(36px, 6vh, 72px); }
.hero-text { display: flex; flex-direction: column; justify-content: flex-end; }
h1 { margin: 0; font-weight: 800; line-height: .8; letter-spacing: -0.065em; }
.big { display: block; font-size: clamp(120px, min(18vw, 36vh), 300px); margin-left: -0.055em; }   /* the 1's side bearing, so it sits on the edge */
.lede { margin: 28px 0 0; max-width: 18ch; font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; line-height: 1.16; letter-spacing: -0.02em; }

/* The field: a panel that tilts toward the pointer and can be explored */
.field { perspective: 1200px; min-height: 220px; display: flex; }
.field-in { position: relative; flex: 1; border-radius: 16px; background: #2129D9; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 30px 60px -32px rgba(10,14,51,.7);
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s; overflow: hidden; cursor: zoom-in; }
.field-in.tilting { transition: transform .08s linear, box-shadow .3s; box-shadow: inset 0 0 0 1px rgba(255,178,30,.55), 0 40px 80px -30px rgba(10,14,51,.8); }
.field-in.top-level { cursor: zoom-in; }
.field-in.floor { cursor: default; }
#powers { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.field-in.hop { animation: hop .9s cubic-bezier(.3,.7,.2,1) both; }
@keyframes hop { 0% { transform: translateY(0) } 30% { transform: translateY(-16px) scale(1.012) } 55% { transform: translateY(0) scale(1) } 75% { transform: translateY(-5px) } 100% { transform: translateY(0) } }
.depth { position: absolute; top: 14px; left: 16px; z-index: 2; margin: 0; font-size: 15px; font-weight: 700; color: var(--sun); pointer-events: none; font-variant-numeric: lining-nums; }
.depth sup { font-size: .65em; }
.zoomout { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 0; background: rgba(10,14,51,.55); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zoomout svg { width: 12px; height: 12px; stroke: var(--sun); stroke-width: 2.4; stroke-linecap: round; }
.zoomout:hover { background: rgba(10,14,51,.8); }
@media (prefers-reduced-motion: reduce) { .field-in, .field-in.tilting { transition: none; } .field-in.hop { animation: none; } }

/* The scale: where the animation is, and a way to jump to any power */
.scale { position: relative; z-index: 2; padding: 0 var(--edge) clamp(28px, 5vh, 48px); }
.readout { margin: 0 0 14px; display: flex; align-items: baseline; gap: 16px; font-variant-numeric: lining-nums; }
.readout .pow { font-size: 20px; font-weight: 700; color: var(--sun); min-width: 3ch; }
.readout sup { font-size: .62em; margin-left: 1px; }
.readout .n { font-size: clamp(24px, 3vw, 34px); font-weight: 500; letter-spacing: -0.01em; }
.readout .motto { margin-left: auto; font-size: 15px; color: var(--haze); }
.ruler { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 14px; }
.play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sun); display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.play svg { width: 14px; height: 14px; fill: var(--ink); margin-left: 2px; }
.play:hover { transform: scale(1.08); }
.play:active { transform: scale(.96); }
/* Ten marks on a track that runs from the first to the last; each label starts on its mark. */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)) 0; position: relative; z-index: 1; }
.ticks li { min-width: 0; }
.ticks button { background: none; border: 0; padding: 18px 8px 4px 0; cursor: pointer; color: var(--haze); font-size: 14px; font-weight: 500; text-align: left; position: relative; white-space: nowrap; transition: color .2s; }
.ticks li:last-child button { transform: translateX(-100%); padding: 18px 0 4px 8px; text-align: right; }
.ticks li:last-child button::before { left: auto; right: 0; }
.ticks button::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 10px; background: currentColor; opacity: .7; }
.ticks sup { font-size: .7em; }
.ticks button:hover, .ticks button[aria-current="true"] { color: #fff; }
.ticks button[aria-current="true"]::before { width: 3px; height: 14px; background: var(--sun); opacity: 1; }
.ticks li:last-child button[aria-current="true"]::before { right: -1px; }
.track { position: absolute; left: 54px; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.3); }
.fill { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--sun); transform-origin: 0 0; transform: scaleX(1); }

/* Shared section type */
h2 { margin: 0 0 18px; font-size: clamp(34px, 4.2vw, 56px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.intro h2 { margin: 0; }
.intro p { margin: 0; max-width: 46ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.band { padding-top: var(--pad); padding-bottom: var(--pad); }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

/* What we do: the deep ink band */
.what { background: var(--ink); color: #fff; padding-top: var(--pad); padding-bottom: var(--pad); }
.what .intro p { color: var(--haze); }
.trio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink-2); }
.trio li { padding: 36px clamp(18px, 2.6vw, 40px) 0; border-left: 1px solid var(--ink-2); }
.trio li:first-child { padding-left: 0; border-left: 0; }
.trio b { display: block; font-size: clamp(48px, 6.4vw, 96px); font-weight: 800; letter-spacing: -0.055em; line-height: .95; }
.trio b::after { content: ""; display: block; width: 44px; height: 4px; margin: 24px 0 18px; background: var(--sun); }
.trio span { display: block; max-width: 30ch; font-size: 17px; color: var(--haze); }

/* Portfolio */
.portfolio .intro p { color: var(--slate); }
.holdings { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 2vw, 28px); }
.holding { border-radius: 10px; padding: clamp(24px, 3vw, 40px); }
.holding .kind { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.holding h3 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.holding p { margin: 0 0 22px; font-size: 17px; max-width: 44ch; }
.holding p:last-child { margin-bottom: 0; }
.holding.rr { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: clamp(20px, 2.6vw, 36px); align-items: start; background: #0B1A14; color: #F4EFE0;
  background-image: radial-gradient(120% 90% at 0% 0%, rgba(255,178,30,.16), rgba(255,178,30,0) 55%); }
.holding.rr img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.holding.rr .kind { color: var(--sun); }
.holding.rr p { color: #D9D3C2; }
.go { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s; }
.go:hover { transform: translateY(-1px); }
.holding.next { border: 1.5px dashed #B9BFD6; color: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; }
.holding.next .kind { color: var(--blue); }
.holding.next p { color: var(--slate); }


/* Contact: the deep ink band */
.contact { background: var(--ink); color: #fff; padding-top: var(--pad); padding-bottom: var(--pad); }
.contact p { margin: 0; max-width: 46ch; color: var(--haze); font-size: clamp(18px, 1.5vw, 21px); }
.mail { margin-top: 30px !important; }
.mail a { color: #fff; font-size: clamp(36px, 6vw, 84px); font-weight: 800; letter-spacing: -0.045em; text-decoration: none; line-height: 1.1;
  background-image: linear-gradient(var(--sun), var(--sun)); background-size: 100% 6px; background-repeat: no-repeat; background-position: 0 94%; transition: color .2s, background-size .25s; }
.mail a:hover { color: var(--sun); background-size: 100% 0; }

/* Footer */
.foot { background: var(--blue); color: #fff; padding-top: 52px; padding-bottom: 40px; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 28px 40px; align-items: center; }
.foot nav { justify-content: flex-end; }
.legal { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.25); color: var(--haze); font-size: 14px; }

/* Laptops and small desktops */
@media (max-width: 1100px) {
  .holdings { grid-template-columns: minmax(0, 1fr); }
  .holding.next { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .intro, .two { grid-template-columns: minmax(0, 1fr); }
  .intro { gap: 16px; }
  .hero-main { grid-template-columns: minmax(0, 1fr); align-self: start; gap: 28px; }
  .field { order: -1; min-height: 0; aspect-ratio: 16 / 11; }
  .big { font-size: clamp(100px, 28vw, 200px); }
  .trio { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .trio li { padding: 30px 0 0; border-left: 0; border-top: 1px solid var(--ink-2); margin-top: 8px; }
  .readout .motto { display: none; }
}
@media (max-width: 640px) {
  :root { --head: 60px; }
  .mark { font-size: 23px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 13.5px; }
  .ticks button { font-size: 11px; padding-right: 2px; }
  .ticks li:not(:nth-child(3n+1)) button { font-size: 0; }   /* phones label 10^0, 10^3, 10^6, 10^9; the other marks stay tappable */
  .ticks li:not(:nth-child(3n+1)) button::before { height: 8px; }
  .ruler { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .play { width: 36px; height: 36px; }
  .track { left: 46px; }
  .holding.rr { grid-template-columns: minmax(0, 1fr); }
  .holding.rr img { width: 72px; height: 72px; border-radius: 16px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot nav { justify-content: flex-start; flex-wrap: wrap; gap: 4px 22px; }
}
@media (max-width: 380px) {
  .top-in { gap: 12px; }
  .top nav { gap: 11px; }
  .top nav a { font-size: 13px; }
}
