/* AKG Creative House, o2 "The Line". Tokens, reset, type, the one grid, buttons, header. */
:root {
  --white: #ffffff;
  --blue: #3366cc;
  --blue-deep: #102a5c;
  --blue-ink: #0a1a3f;
  --blue-pale: #e8effb;
  --blue-sky: #bfd3f5;
  --blue-line: #5b8def;

  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* the grid: | pad | spine 72 | 12 columns, 24 gutters | pad | */
  --pad: clamp(20px, 3.3vw, 48px);
  --spine-w: 72px;
  --gap: 24px;
  --spine-off: calc(var(--spine-w) / 2 + var(--gap)); /* from the content edge back to the spine */
  --sec-pad: clamp(96px, 12vh, 160px);

  /* type scale (Sora) */
  --display-size: clamp(56px, 7vw, 112px);
  --h2-size: clamp(40px, 4.5vw, 72px);
  --h3-size: clamp(28px, 2.6vw, 40px);
  --numeral-size: clamp(64px, 8vw, 120px);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px; --s11: 160px;

  --focus: var(--blue);
}
@media (max-width: 767px) {
  :root { --spine-w: 28px; --gap: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  background: var(--white);
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--white);
  color: var(--blue-deep);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--blue); color: var(--white); }

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

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 400;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
}
.skip:focus-visible { top: 16px; outline-color: var(--blue); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- type ---------- */
.display { font-size: var(--display-size); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.h2 { font-size: var(--h2-size); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-size: var(--h3-size); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.body { font-size: 18px; line-height: 1.6; max-width: 60ch; }
.small { font-size: 15px; line-height: 1.5; }
.ui { font-size: 16px; font-weight: 500; line-height: 1.2; }
.cap { margin-top: 12px; font-size: 15px; font-weight: 500; line-height: 1.5; color: inherit; }

/* ---------- THE grid: every section uses .wrap > .content ---------- */
.wrap {
  display: grid;
  grid-template-columns: var(--spine-w) minmax(0, 1fr);
  column-gap: var(--gap);
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.content {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  min-width: 0;
}
@media (max-width: 767px) {
  .wrap { padding-left: 0; padding-right: 16px; }
  .content { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- links and buttons ---------- */
.link {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
  transition: text-decoration-thickness 0.15s ease;
}
.link:hover { text-decoration-thickness: 4px; }
.link--plain { font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 500 16px/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--white { background: var(--white); color: var(--blue); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--ghost-white { border-color: var(--white); color: var(--white); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn__k { flex: none; }
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; padding-block: 12px; }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: var(--white);
  --focus: currentColor;
}
.site-header__bg {
  position: absolute;
  inset: 0;
  background: var(--white);
  box-shadow: 0 1px 0 var(--blue-pale);
  opacity: 0;
  pointer-events: none;
}
.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.brand { position: relative; display: block; flex: none; width: 92px; height: 32px; }
.brand img { position: absolute; left: 0; top: 0; height: 32px; width: auto; max-width: none; }
.brand__b { opacity: 0; }
.nav { display: none; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; }
.nav__list a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.nav__list a:hover::after,
.nav__list a:focus-visible::after { transform: scaleX(1); }
.menu-btn { display: inline-flex; }
@media (max-width: 767px) {
  .site-header__bar { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 1100px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav__list a::after, .link { transition: none; }
}
