/* ───────── Fonts (self-hosted, Google Fonts / OFL) ───────── */
@font-face {
  font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/instrument-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/instrument-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('assets/fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url('assets/fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url('assets/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ───────── Tokens ───────── */
:root {
  --bone: #EDE6DF;
  --bone-2: #E3D8CE;
  --ink: #1F1514;
  --wine: #6E1E1C;
  --wine-deep: #3E1110;
  --abyss: #260A09;
  --blush: #D9BFB9;
  --rose: #E3B5AC;
  --muted: #7A5F5B;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1280px;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22, .61, .36, 1);

  color-scheme: light;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
em { font-style: italic; }
::selection { background: var(--wine); color: var(--bone); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bone); padding: 10px 16px; border-radius: 999px; font-weight: 500;
}
.skip:focus { top: 12px; }

/* type */
.eyebrow, .label, .case-steps dt, .table-head, .berg-label, .gauge {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
}
.eyebrow { font-size: 13px; color: var(--wine); }
.label { font-size: 12px; color: var(--wine); }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 1; letter-spacing: -.02em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.1vw, 40px);
  line-height: 1.05; text-wrap: balance;
}

/* pills + links */
.pill {
  display: inline-flex; align-items: center; gap: .4em;
  padding: 14px 24px; border-radius: 999px; font-weight: 500; line-height: 1.2;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.pill:hover { transform: translateY(-2px); }
.pill-wine { background: var(--wine); color: var(--bone); }
.pill-wine:hover { background: var(--wine-deep); }
.pill-ink { background: var(--ink); color: var(--bone); padding: 16px 28px; }
.pill-ink:hover { background: var(--wine); }
.pill-bone { background: var(--bone); color: var(--wine-deep); padding: 18px 32px; font-weight: 600; }
.pill-bone:hover { background: #fff; }
.underline {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .35s var(--ease);
}
.underline:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.header-in {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 28px;
  transition: padding .35s var(--ease);
}
.site-header.is-stuck .header-in { padding-block: 14px; }
.site-header.is-stuck {
  background: rgba(237, 230, 223, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(110, 30, 28, .12);
}
html[data-head="dark"] .site-header.is-stuck {
  background: rgba(62, 17, 16, .82);
  color: var(--bone);
  box-shadow: 0 1px 0 rgba(237, 230, 223, .12);
}
html[data-head="dark"] .site-header.is-stuck .pill-wine { background: var(--bone); color: var(--wine-deep); }
.logo { font-family: var(--serif); font-size: 28px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav > a:not(.pill) { position: relative; }
.nav > a:not(.pill)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav > a:not(.pill):hover::after { transform: scaleX(1); }

/* ───────── Hero / surface ───────── */
.hero { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end;
  padding-top: 48px;
}
.hero-copy { padding-bottom: 64px; }
.hero-copy .eyebrow { margin-bottom: 28px; }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 8.75vw, 124px);
  line-height: .92; letter-spacing: -.025em;
}
.accent { color: var(--wine); }
.lead { font-size: clamp(18px, 1.65vw, 21px); line-height: 1.5; max-width: 520px; margin: 36px 0 40px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; font-size: 16px; }

.berg {
  position: relative; align-self: end; margin-bottom: -40px; will-change: transform;
  -webkit-user-select: none; user-select: none;
}
.berg-svg { display: block; width: 84%; max-width: 460px; height: auto; margin-left: auto; overflow: visible; }
.berg-label {
  position: absolute; left: 0; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--wine); white-space: nowrap;
}
.berg-label i { display: block; width: 64px; height: 1px; background: currentColor; transform-origin: left; }
.berg-label-see i { width: 88px; }
.berg-label-see { top: 10.4%; }
.berg-label-do { top: 60.8%; }

/* iceberg drawing */
.b-hull { fill: #E8DED8; stroke: var(--wine); stroke-width: 8; stroke-linejoin: round; }
.b-facets path { fill: none; stroke: #B38784; stroke-width: 4.5; stroke-linecap: round; }
.b-key, .b-tip, .b-star { fill: var(--wine); }
.b-bubbles circle { fill: none; stroke: var(--wine); stroke-width: 5; }
.b-water { fill: none; stroke: var(--wine); stroke-width: 8; stroke-linecap: round; }
.b-float { transform-box: view-box; transform-origin: 430px 340px; }
.b-key, .b-star, .b-bubbles circle { transform-box: fill-box; transform-origin: center; }

/* the waterline between surface and the deep */
.waterline { position: relative; z-index: 2; height: 48px; margin-top: -8px; }
.wave {
  position: absolute; inset: 0;
  background-repeat: repeat-x; background-size: 160px 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='48' viewBox='0 0 160 48'%3E%3Cpath d='M0 24 Q40 4 80 24 T160 24 V48 H0Z' fill='%236E1E1C'/%3E%3C/svg%3E");
}
.wave-back { opacity: .35; transform: translateY(-7px); background-position-x: 60px; }

/* ───────── Work / the gap ───────── */
.work {
  position: relative; z-index: 2;
  background:
    radial-gradient(ellipse 55% 320px at 22% 0, rgba(237, 230, 223, .07), transparent 70%),
    radial-gradient(ellipse 40% 260px at 78% 0, rgba(237, 230, 223, .05), transparent 70%),
    linear-gradient(var(--wine), #5F1918);
  color: var(--bone);
  padding: 72px 0 96px;
  margin-top: -1px;
}
.work > .wrap { position: relative; z-index: 1; }
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.work-note { font-size: 15px; color: var(--blush); max-width: 300px; text-align: right; }

.table-head, .row { display: grid; grid-template-columns: 300px 1fr 1fr; gap: 24px; }
.table-head { font-size: 12px; color: var(--blush); padding-bottom: 14px; }
.row {
  align-items: center;
  border-top: 1px solid rgba(237, 230, 223, .22);
  padding: 22px 16px; margin-inline: -16px;
  transition: background-color .25s var(--ease);
}
.row:hover { background: rgba(0, 0, 0, .12); }
a.row { cursor: pointer; }
.brand { display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 500; }
.brand img {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--bone); object-fit: contain; padding: 4px;
}
.was-cell { font-size: 18px; color: var(--blush); }
.was { text-decoration: line-through; text-decoration-thickness: 1px; }
.now { font-family: var(--serif); font-size: clamp(26px, 2.5vw, 32px); line-height: 1.1; text-wrap: balance; }
a.row .now::after {
  content: '↓'; display: inline-block; margin-left: .35em;
  font-family: var(--sans); font-size: .5em; vertical-align: middle;
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s var(--ease);
}
a.row:hover .now::after { opacity: .7; transform: none; }

/* ───────── Case 01 ───────── */
.case { position: relative; padding: 112px 0 96px; }
.case-grid { display: grid; grid-template-columns: 1fr 400px; gap: 96px; align-items: start; }
.case-client { font-size: 20px; font-weight: 600; margin: 28px 0 12px; }
.case-title { font-size: clamp(40px, 5.3vw, 68px); margin-bottom: 48px; text-wrap: pretty; }
.case-steps {
  display: grid; grid-template-columns: 180px 1fr; row-gap: 22px; column-gap: 24px;
  font-size: 18px; line-height: 1.45;
  border-top: 1px solid rgba(110, 30, 28, .25); padding-top: 28px;
}
.case-steps dt { font-size: 12px; color: var(--wine); padding-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.stat-v {
  display: block; font-family: var(--serif); font-size: clamp(52px, 6.9vw, 88px); line-height: 1;
  color: var(--wine); font-variant-numeric: tabular-nums;
}
.stat-l { display: block; font-size: 15px; margin-top: 8px; max-width: 220px; }
.footnote { font-size: 13px; color: var(--muted); margin-top: 24px; }

.case-visual { position: relative; padding-top: 24px; }
.case-visual img {
  width: 100%; border-radius: 28px;
  transform: rotate(2.5deg);
  box-shadow: 0 30px 60px -20px rgba(62, 17, 16, .45);
}
.sticker {
  position: absolute; left: -36px; bottom: 40px;
  background: var(--wine); color: var(--bone);
  padding: 14px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transform: rotate(-4deg);
  box-shadow: 0 12px 24px -12px rgba(62, 17, 16, .6);
}

/* ───────── Cases 02–03 ───────── */
.cases { position: relative; padding: 0 0 112px; }
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.card {
  background: var(--bone-2); border-radius: 24px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  scroll-margin-top: 100px;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(62, 17, 16, .5); }
.card-media { height: 340px; display: flex; justify-content: center; overflow: hidden; }
.card-media img { transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-media-dark { background: #1A1A1A; align-items: center; padding: 24px; }
.card-media-dark img { width: 420px; border-radius: 12px; }
.card-media-light { background: #EFEAEC; align-items: flex-start; }
.card-media-light .bottle { width: 300px; margin-top: -30px; }
.card-body { padding: 32px 36px 40px; }
.card-body .h3 { margin: 14px 0 16px; }
.card-body p:last-child { font-size: 17px; }

/* ───────── Contact / the rest ───────── */
.contact {
  position: relative; overflow: hidden;
  background: linear-gradient(var(--wine-deep) 0%, var(--wine-deep) 35%, var(--abyss) 100%);
  color: var(--bone);
  padding: 112px 0 96px;
}
.contact-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 200px; gap: 48px; align-items: end;
}
.contact-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 9.4vw, 120px); line-height: .92; letter-spacing: -.025em;
  text-wrap: balance;
}
.contact-title em { color: var(--rose); }
.contact-links { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; margin-top: 48px; font-size: 17px; }
.contact-mark { width: 180px; justify-self: end; }

section[id] { scroll-margin-top: 72px; }

/* ───────── Bubbles ───────── */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; container-type: size; }
.bubble {
  position: absolute; bottom: -24px; left: var(--x);
  width: var(--s); height: var(--s); border-radius: 50%;
  border: 1.5px solid rgba(237, 230, 223, var(--o, .22));
  animation: rise var(--d) linear var(--delay) infinite;
}
@keyframes rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  8%   { opacity: 1; }
  25%  { transform: translate(7px, -25cqh); }
  50%  { transform: translate(-5px, -50cqh); }
  75%  { transform: translate(6px, -75cqh); }
  92%  { opacity: 1; }
  100% { transform: translate(0, calc(-100cqh - 48px)); opacity: 0; }
}

/* ───────── Depth gauge ───────── */
.gauge {
  position: fixed; right: 22px; top: 50%; z-index: 40;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; color: var(--wine);
  pointer-events: none;
  transition: color .4s var(--ease), opacity .4s var(--ease);
}
html[data-tone="dark"] .gauge { color: var(--bone); }
.gauge-k { opacity: .6; }
.gauge-v { font-size: 13px; letter-spacing: .02em; text-transform: none; font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: center; }
.gauge-track { position: relative; width: 1px; height: 180px; background: currentColor; }
.gauge-track::before {
  content: ''; position: absolute; left: -3px; width: 7px; top: 0; bottom: 0;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 18px);
  opacity: .45;
}
.gauge-fill {
  position: absolute; left: -1px; top: 0; width: 3px; height: calc(var(--p, 0) * 100%);
  background: currentColor; border-radius: 2px;
}
.gauge-dot {
  position: absolute; left: 50%; top: calc(var(--p, 0) * 100%);
  width: 9px; height: 9px; border-radius: 50%;
  background: currentColor; transform: translate(-50%, -50%);
}
.gauge-zone { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 200px; }

/* ───────── Motion (only when JS runs and motion is welcome) ───────── */
@media (prefers-reduced-motion: no-preference) {
  .wave-front { animation: drift 7s linear infinite; }
  .wave-back { animation: drift-back 11s linear infinite; }
  /* iceberg: draws itself, the tip breaks the surface, then it floats */
  .b-water { stroke-dasharray: 1; animation: b-draw 1.4s var(--ease) both, b-drift 6s linear infinite; }
  .b-hull { stroke-dasharray: 1; animation: b-draw 1.7s var(--ease) .35s both, b-fill .9s ease 1.2s both; }
  .b-facets path { stroke-dasharray: 1; animation: b-draw .9s var(--ease) both; animation-delay: calc(1.35s + var(--i) * .09s); }
  .b-key { animation: b-key .9s cubic-bezier(.34, 1.56, .64, 1) 1.9s both; }
  .b-tip { animation: b-emerge 1.5s var(--ease) .9s both; }
  .b-float { animation: b-bob 7s ease-in-out 2.4s infinite; }
  .b-star-in { animation: b-fade .8s ease 2.2s both; }
  .b-star { animation: b-twinkle 3.6s ease-in-out 3s infinite; }
  .b-bubbles circle { opacity: 0; animation: b-rise 5.2s ease-in infinite; animation-delay: calc(2.4s + var(--delay)); }
  .berg-label { animation: b-fade .8s ease 2.3s both; }
  .berg-label i { animation: b-line .8s var(--ease) 2.5s both; }

  .js [data-load] { opacity: 0; transform: translateY(18px); animation: surface .9s var(--ease) forwards; }
  .js [data-load]:nth-child(2) { animation-delay: .08s; }
  .js [data-load]:nth-child(3) { animation-delay: .22s; }
  .js [data-load]:nth-child(4) { animation-delay: .34s; }

  .js [data-reveal="fade"] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal="fade"].is-in { opacity: 1; transform: none; }
  .js .stats .stat:nth-child(2) { transition-delay: .1s; }
  .js .stats .stat:nth-child(3) { transition-delay: .2s; }
  .js .cases-grid .card:nth-child(2) { transition-delay: .12s; }

  .js [data-reveal="tilt"] img { transform: rotate(-2deg) translateY(40px); opacity: 0; transition: transform 1.1s var(--ease), opacity .9s var(--ease); }
  .js [data-reveal="tilt"] .sticker { opacity: 0; transform: rotate(4deg) scale(.9); transition: opacity .6s var(--ease) .5s, transform .6s var(--ease) .5s; }
  .js [data-reveal="tilt"].is-in img { transform: rotate(2.5deg); opacity: 1; }
  .js [data-reveal="tilt"].is-in .sticker { opacity: 1; transform: rotate(-4deg); }

  /* the assumption gets struck out, then the insight surfaces */
  .js [data-reveal="strike"] .was {
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 54% / 0 1px no-repeat;
    transition: background-size .8s var(--ease) .15s;
  }
  .js [data-reveal="strike"].is-in .was { background-size: 100% 1px; }
  .js [data-reveal="strike"] .brand,
  .js [data-reveal="strike"] .was-cell { opacity: 0; transition: opacity .6s var(--ease); }
  .js [data-reveal="strike"] .now { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease) .75s, transform .7s var(--ease) .75s; }
  .js [data-reveal="strike"].is-in .brand,
  .js [data-reveal="strike"].is-in .was-cell,
  .js [data-reveal="strike"].is-in .now { opacity: 1; transform: none; }
}

@keyframes drift { to { background-position-x: -160px; } }
@keyframes drift-back { from { background-position-x: 60px; } to { background-position-x: 220px; } }
@keyframes b-draw { from { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes b-fill { from { fill-opacity: 0; } to { fill-opacity: 1; } }
@keyframes b-drift { to { transform: translateX(-175px); } }
@keyframes b-key { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes b-emerge { from { transform: translateY(250px); } to { transform: none; } }
@keyframes b-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(7px) rotate(-.9deg); } }
@keyframes b-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes b-line { from { transform: scaleX(0); } to { transform: none; } }
@keyframes b-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(14deg); opacity: .5; } }
@keyframes b-rise {
  0%   { transform: translateY(70px) scale(.5); opacity: 0; }
  15%  { opacity: 1; }
  80%  { transform: translateY(var(--rise)) scale(1); opacity: 1; }
  100% { transform: translateY(calc(var(--rise) - 14px)) scale(1.6); opacity: 0; }
}
@keyframes surface { to { opacity: 1; transform: none; } }

/* ───────── Responsive ───────── */
/* the gauge needs a free margin next to the 1280px column */
@media (max-width: 1339px) { .gauge { display: none; } }
@media (max-width: 1180px) {
  .table-head, .row { grid-template-columns: 240px 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr 340px; gap: 64px; }
}

@media (max-width: 900px) {
  .nav > a:not(.pill) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .hero-copy { padding-bottom: 32px; }
  .berg { width: min(100%, 460px); margin: 8px auto -28px; }
  .work-head { flex-direction: column; align-items: start; }
  .work-note { text-align: left; }
  .table-head { display: none; }
  .row { grid-template-columns: 1fr; gap: 8px; padding-block: 24px; }
  .row .brand { font-size: 16px; margin-bottom: 4px; }
  .row .brand img { width: 34px; height: 34px; }
  .was-cell { font-size: 16px; }
  .case { padding: 80px 0 72px; }
  .case-grid { grid-template-columns: 1fr; gap: 64px; }
  .case-visual { max-width: 360px; margin-inline: auto; width: 86%; }
  .cases { padding-bottom: 80px; }
  .cases-grid { grid-template-columns: 1fr; }
  .contact { padding-top: 88px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-mark { width: 120px; justify-self: start; grid-row: 1; }
}

@media (max-width: 560px) {
  .header-in { padding-block: 18px; }
  .logo { font-size: 24px; }
  .nav .pill { padding: 10px 16px; font-size: 14px; }
  .hero-copy .eyebrow { font-size: 11px; line-height: 1.6; }
  .berg-label { font-size: 10px; gap: 6px; letter-spacing: .1em; }
  .berg-label i, .berg-label-see i { width: 30px; }
  .case-steps { grid-template-columns: 1fr; row-gap: 6px; font-size: 17px; }
  .case-steps dd + dt { margin-top: 14px; }
  .stats { gap: 14px; }
  .stat-v { font-size: clamp(40px, 12vw, 52px); }
  .stat-l { font-size: 13px; }
  .card-media { height: 260px; }
  .card-media-light .bottle { width: 230px; margin-top: -20px; }
  .card-body { padding: 26px 24px 32px; }
  .sticker { left: -12px; font-size: 13px; padding: 11px 16px; }
  .pill-bone { padding: 16px 24px; }
}
