/* Havana Council base: tokens, type, header, footer, work cards, the offer grid and contact.
   Shared by every page. One typeface at one weight; hierarchy comes from size alone. */
:root {
  --ground: #0a0a0a;
  --raised: #141414;
  --fg: #f2f2f0;
  --mid: #8c8c88;
  --rule: #262626;
  --type: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --s-body: 16px;
  --s-label: 20px;
  --s-title: clamp(28px, 3.2vw, 40px);
  --s-display: clamp(44px, 6.4vw, 96px);
  --gutter: clamp(16px, 2.4vw, 32px);
  --gap: clamp(8px, 1vw, 16px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --warm: #e2894a;
  --mono-face: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--fg);
  font: 400 var(--s-body)/1.5 var(--type); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; font-weight: 400; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
.pad { padding-inline: var(--gutter); }
.mid { color: var(--mid); }
.link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.link:hover, .link:focus-visible { background-size: 100% 1px; }

/* Wordmark: outlined SVG; the disc is the o of soup */
#brand { display: block; line-height: 0; }
#brand svg { height: 22px; width: auto; overflow: visible; }
#brand svg .l { transform-box: fill-box; }
.wm-text { font-size: var(--s-label); line-height: 1; }

/* Header */
header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 18px; background: var(--ground);
}
header nav { display: flex; gap: clamp(16px, 2.4vw, 32px); }

/* Statement */
.intro { padding-block: clamp(72px, 14vh, 160px) clamp(48px, 8vh, 96px); display: grid; gap: 28px; }
.intro h1 { font-size: var(--s-display); line-height: 1; letter-spacing: -.035em; max-width: 14ch; text-wrap: balance; }
.intro p { font-size: var(--s-label); line-height: 1.4; max-width: 34ch; color: var(--mid); }

/* Work grid */
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: calc(var(--gap) * 4) var(--gap); }
.card { grid-column: span 2; display: grid; gap: 14px; min-width: 0; text-align: left; }
.card.full { grid-column: 1 / -1; }
.card.half { grid-column: span 3; }
.frame { position: relative; overflow: hidden; background: var(--raised); border-radius: 4px; aspect-ratio: 4 / 3; }
.card.full .frame { aspect-ratio: 21 / 9; }
.frame > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .9s ease; }
.frame .fade { opacity: 0; }
.frame .fade.on { opacity: 1; }
.frame.contain > img { object-fit: contain; padding: 8%; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.card:hover .frame > *, .card:focus-visible .frame > * { transform: scale(1.025); }
.cap { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.cap h3 { font-size: var(--s-label); line-height: 1.3; letter-spacing: -.01em; min-width: 0; }
.cap > span { color: var(--mid); white-space: nowrap; }

/* Sections */
section.block { padding-block: clamp(96px, 16vh, 200px) 0; }
.label { font-size: var(--s-label); color: var(--mid); margin-bottom: clamp(32px, 5vh, 56px); }
.offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pkg { border-top: 1px solid var(--rule); padding-top: 20px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.pkg h3 { font-size: var(--s-title); line-height: 1.1; letter-spacing: -.02em; }
.pkg .price { font-size: var(--s-title); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pkg ul { display: grid; gap: 4px; }
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(48px, 8vh, 88px); }
.terms > div { display: grid; gap: 12px; align-content: start; border-top: 1px solid var(--rule); padding-top: 20px; }
.terms ul { display: grid; gap: 4px; }

.big-line { font-size: var(--s-display); line-height: 1; letter-spacing: -.035em; }
[id] { scroll-margin-top: 72px; }
header nav a[aria-current="page"] { background-size: 100% 1px; }
.contact .row { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 32px; font-size: var(--s-label); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: clamp(96px, 16vh, 200px) 28px; color: var(--mid); font-size: 14px; }

@media (max-width: 800px) {
  header nav { gap: 14px; }
  .card.half { grid-column: 1 / -1; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card.full .frame { aspect-ratio: 16 / 10; }
  .offer, .terms { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Phones: five sections don't fit beside the wordmark, so the nav takes its own row. */
@media (max-width: 600px) {
  header { flex-wrap: wrap; row-gap: 10px; padding-block: 14px 12px; }
  header nav { width: 100%; justify-content: space-between; gap: 8px; }
  [id] { scroll-margin-top: 104px; }
}
