/* Hot Stars
   Paper, ink and one red. Mobile first.
   Motion follows a few rules: press feedback on buttons, one entrance on load,
   a quick menu. Nothing animates on scroll. */

:root {
  --paper: #f3efe6;
  --sand: #ebe5d8;
  --ink: #161412;
  --ink-2: #39342f;
  --muted: #6b645a;
  --rule: rgba(22, 20, 18, .16);
  --rule-strong: #161412;

  --red: #d42e14;       /* fills: buttons, the statement band */
  --red-press: #bb2710;
  --red-ink: #b3240e;   /* red used as small text on paper */
  --red-hot: #ff5a33;   /* red on dark backgrounds */

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --top-h: 60px;
}
@media (min-width: 1024px) { :root { --top-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 16px);
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--sans); font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, [role="button"], label, summary { touch-action: manipulation; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

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

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.btn:active { transform: scale(.97); background: var(--red-press); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 1.08rem; }
.btn[disabled] { opacity: .7; cursor: progress; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red-press); }
  .arrow-link:hover { text-decoration-color: var(--ink); }
}

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.top__row { height: var(--top-h); display: flex; align-items: center; gap: 24px; }
.mark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--sans); font-size: 1.22rem; font-weight: 800; letter-spacing: -.03em; }
.mark__star { width: 20px; height: 20px; fill: var(--red); stroke: var(--red); stroke-width: 1.5; stroke-linejoin: round; transform: rotate(-8deg); }
.top__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top__menu {
  min-width: 64px;
  min-height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 160ms var(--ease-out);
}
.top__menu:active { transform: scale(.97); }

/* Mobile menu: solid paper sheet under the bar. Opens in 200ms, closes faster. */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
}
.top.is-open .nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
}
.nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .top__menu { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    gap: 28px;
    margin-left: auto;
    padding: 0;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav a {
    padding: 0;
    border: 0;
    font-size: .98rem;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 6px;
    text-decoration-color: transparent;
    transition: text-decoration-color 150ms ease;
  }
  .top__end { margin-left: 8px; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .nav a:hover { text-decoration-color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; border-bottom: 1px solid var(--ink); }
.hero__label {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__label [aria-hidden] { margin: 0 .4em; color: var(--red-ink); }
.hero__label-more { display: none; }
@media (min-width: 480px) { .hero__label-more { display: inline; } }
.hero__title {
  margin-top: 18px;
  font-size: clamp(2.45rem, 10.5vw, 8.4rem);
  line-height: .93;
  letter-spacing: -.048em;
}
.hero__title span { display: block; text-wrap: balance; }
.hero__below { margin-top: 28px; display: grid; gap: 48px; }
.hero__lead { max-width: 34rem; color: var(--ink-2); font-size: 1.2rem; line-height: 1.5; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero__actions .btn { flex: 1 1 100%; }

.short { border-top: 2px solid var(--ink); padding-top: 14px; }
.short__title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.short dl { margin-top: 6px; }
.short dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: .98rem; }
.short dt { color: var(--muted); }
.short dd { margin: 0; font-weight: 600; text-align: right; }

/* One entrance, on load only. Rare, so it's allowed a little time. */
.hero__label, .hero__title, .hero__copy, .short { animation: enter 640ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }

@media (min-width: 640px) {
  .hero__actions .btn { flex: 0 0 auto; }
}
@media (min-width: 1024px) {
  .hero { padding: 72px 0 88px; }
  .hero__below { margin-top: 48px; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: end; }
  .hero__lead { font-size: 1.3rem; }
}

/* ---------- Statement band ---------- */
.statement { padding: 64px 0 56px; background: var(--red); color: #fff; }
.statement__text {
  max-width: 20ch;
  font-family: var(--sans);
  font-size: clamp(2rem, 8vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
.statement__link {
  display: inline-flex;
  gap: .4em;
  min-height: 44px;
  align-items: center;
  margin-top: 28px;
  font-family: var(--sans);
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
@media (min-width: 1024px) { .statement { padding: 104px 0 96px; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0 72px; }
.section--sand { background: var(--sand); }
.section--rule { border-top: 1px solid var(--ink); }
@media (min-width: 1024px) { .section { padding: 104px 0 112px; } }

.sec-head { display: grid; gap: 14px; padding-bottom: 28px; }
.sec-head h2 { font-size: clamp(2.2rem, 9vw, 4.2rem); line-height: .96; letter-spacing: -.045em; }
.sec-head p { max-width: 32rem; color: var(--ink-2); font-size: 1.15rem; }
.sec-head a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .sec-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: end; padding-bottom: 44px; }
  .sec-head p { justify-self: end; }
}

/* ---------- Services index ---------- */
.index { border-top: 2px solid var(--ink); }
.index li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 6px 12px;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--rule);
}
.index__no { padding-top: .45em; font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--red-ink); font-variant-numeric: tabular-nums; }
.index h3 { font-size: clamp(1.6rem, 6.5vw, 2.4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
.index p { grid-column: 2; color: var(--ink-2); }
@media (min-width: 900px) {
  .index li { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline; padding: 30px 0 32px; }
  .index p { grid-column: auto; }
}

/* ---------- A normal week ---------- */
.week { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.week thead { display: none; }
.week tr { display: grid; grid-template-columns: 1fr; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.week th[scope="row"] { text-align: left; font-family: var(--sans); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.week td { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding-top: 8px; color: var(--ink-2); }
.week td::before { content: attr(data-label); padding-top: .25em; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.week .week__rest { color: var(--muted); font-style: italic; }
.week__note { margin-top: 22px; padding-left: 14px; border-left: 3px solid var(--red); color: var(--ink-2); }
.week__note strong { font-family: var(--sans); font-weight: 700; }
@media (min-width: 900px) {
  .week thead { display: table-header-group; }
  .week tr { display: table-row; padding: 0; }
  .week th, .week td { padding: 18px 24px 18px 0; vertical-align: baseline; }
  .week thead th { padding-top: 14px; padding-bottom: 14px; text-align: left; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
  .week th[scope="row"] { width: 14%; font-size: 1.5rem; }
  .week td { display: table-cell; width: 43%; }
  .week td::before { content: none; }
  .week tbody tr { border-bottom: 1px solid var(--rule); }
}

/* ---------- Terms as clauses ---------- */
.clauses { display: grid; border-top: 2px solid var(--ink); }
.clause { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 24px 0 26px; border-bottom: 1px solid var(--rule); }
.clause__no { font-family: var(--sans); font-size: 1.5rem; font-weight: 800; line-height: 1.1; color: var(--red); letter-spacing: -.03em; }
.clause h3 { font-size: 1.4rem; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
.clause p { margin-top: 8px; color: var(--ink-2); }
@media (min-width: 900px) {
  .clauses { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .clause { grid-template-columns: 64px minmax(0, 1fr); padding: 30px 0 32px; }
  .clause__no { font-size: 1.9rem; }
  .clause h3 { font-size: 1.6rem; }
}

/* ---------- Questions (always open, no accordion) ---------- */
.qa { display: grid; border-top: 2px solid var(--ink); }
.qa__item { padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.qa__item h3 { font-size: 1.3rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.qa__item p { margin-top: 8px; color: var(--ink-2); }
@media (min-width: 900px) {
  .qa { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .qa__item { padding: 28px 0 30px; }
}

/* ---------- Apply (dark) ---------- */
.apply { padding: 64px 0 72px; background: var(--ink); color: var(--paper); }
.apply__grid { display: grid; gap: 44px; }
.apply__intro h2 { font-size: clamp(3rem, 14vw, 6.5rem); line-height: .9; letter-spacing: -.05em; }
.apply__lead { margin-top: 18px; max-width: 26rem; font-size: 1.2rem; color: rgba(243, 239, 230, .85); }
.apply__next { margin-top: 28px; border-top: 1px solid rgba(243, 239, 230, .25); }
.apply__next li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; padding: 14px 0; border-bottom: 1px solid rgba(243, 239, 230, .14); color: rgba(243, 239, 230, .85); }
.apply__next span { font-family: var(--sans); font-weight: 700; color: var(--red-hot); }
.apply__alt { margin-top: 24px; font-size: 1rem; color: rgba(243, 239, 230, .7); }
.apply__alt a { color: var(--paper); text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .apply { padding: 112px 0 120px; }
  .apply__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 96px; align-items: start; }
}

/* Paper-form style fields: a label and a line. */
.form { position: relative; }
.form__grid { display: grid; gap: 26px 32px; }
@media (min-width: 640px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(243, 239, 230, .7); }
.opt { margin-left: .35em; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(243, 239, 230, .45); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1.5px solid rgba(243, 239, 230, .35);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.2rem; /* stays above 16px so iOS never zooms */
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { min-height: 72px; resize: vertical; }
.field input::placeholder { color: rgba(243, 239, 230, .35); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--red-hot);
  box-shadow: 0 1.5px 0 var(--red-hot);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3efe6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 16px;
}
.field select option { background: var(--ink); color: var(--paper); }
.field [aria-invalid="true"] { border-bottom-color: var(--red-hot); }
.phone { display: flex; gap: 16px; }
.phone select { flex: 0 0 92px; }
.phone input { flex: 1; min-width: 0; }

.checks { margin-top: 30px; display: grid; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; color: rgba(243, 239, 230, .85); cursor: pointer; }
.check input {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border: 1.5px solid rgba(243, 239, 230, .5);
  border-radius: 2px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; transition: opacity 120ms ease; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { opacity: 1; }
.check.is-invalid input { border-color: var(--red-hot); }
.check a { color: var(--paper); text-underline-offset: 3px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__error { margin-top: 24px; padding-left: 12px; border-left: 3px solid var(--red-hot); color: #ffd2c6; font-family: var(--sans); font-size: .98rem; }
.form__submit { margin-top: 32px; display: grid; gap: 14px; }
.form__submit .btn { width: 100%; }
.form__submit p { font-family: var(--sans); font-size: .85rem; color: rgba(243, 239, 230, .55); }
@media (min-width: 640px) {
  .form__submit { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
  .form__submit .btn { width: auto; }
}

/* Success replaces the form; a short fade so the swap isn't a jump cut. */
.form.is-sent > :not(.form__done) { display: none; }
.form__done { padding: 24px 0; animation: done 260ms var(--ease-out) both; }
@keyframes done { from { opacity: 0; transform: translateY(6px); } }
.form__done svg { width: 34px; height: 34px; fill: var(--red-hot); }
.form__done h3 { margin-top: 18px; font-size: clamp(2rem, 7vw, 3rem); line-height: 1; letter-spacing: -.04em; }
.form__done p { margin-top: 12px; color: rgba(243, 239, 230, .8); }
.form__done:focus { outline: none; }

/* ---------- Footer ---------- */
.foot { padding: 48px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot__mark {
  display: flex;
  align-items: flex-start;
  gap: .04em;
  font-family: var(--sans);
  font-size: min(calc((100vw - 2 * var(--gutter)) / 4.8), 16rem);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.065em;
  white-space: nowrap;
}
.foot__mark svg { flex: none; width: .3em; height: .3em; margin-top: .02em; fill: var(--red); transform: rotate(-8deg); }
.foot__cols { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.foot__cols h2 { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot__cols a { display: block; margin-top: 10px; font-family: var(--sans); font-size: 1rem; text-decoration: none; overflow-wrap: anywhere; }
.foot__legal { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; gap: 8px; font-family: var(--sans); font-size: .82rem; color: var(--muted); }
@media (min-width: 900px) {
  .foot { padding-top: 72px; }
  .foot__cols { grid-template-columns: repeat(4, 1fr); }
  .foot__legal { grid-template-columns: 1fr auto; gap: 32px; }
}
@media (hover: hover) and (pointer: fine) {
  .foot__cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 96px; }
.legal__body { max-width: 42rem; }
.legal h1 { font-size: clamp(2.6rem, 10vw, 4.6rem); line-height: .95; letter-spacing: -.045em; }
.legal .updated { margin-top: 14px; font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.legal h2 { margin-top: 40px; font-size: 1.35rem; letter-spacing: -.02em; font-weight: 700; }
.legal p, .legal li { margin-top: 12px; color: var(--ink-2); }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal a { text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; align-content: center; padding: 48px var(--gutter); }
.lost h1 { font-size: clamp(5rem, 30vw, 16rem); line-height: .8; letter-spacing: -.07em; }
.lost p { margin: 20px 0 28px; max-width: 26rem; color: var(--ink-2); }

/* ---------- Reduced motion: keep the fades, drop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__label, .hero__title, .hero__copy, .short { animation: fade 300ms ease both; animation-delay: 0ms; }
  .form__done { animation: fade 200ms ease both; }
  .nav, .top.is-open .nav { transform: none; }
  .btn:active, .top__menu:active { transform: none; }
}
@keyframes fade { from { opacity: 0; } }
