/* Fivebags, Inc. company site. No framework, no build step.
   Theme: light by default; [data-theme="dark"] on <html> (set by /theme.js) switches to dark. */

@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #f7f6f2;
  --bg-alt: #efede7;
  --surface: #fdfcfa;
  --ink: #141618;
  --muted: #4d535a;
  --line: #dcd8ce;
  --line-strong: #bdb8ad;
  --accent: #1f4d46;
  --accent-hover: #163a35;
  --on-accent: #f7f6f2;
  --bg-soft: #f0eee8;
  --chrome: #f1efea;
  --chrome-dot: #d6d2c8;
  --phone-band: #c4c0b8;
  --phone-edge: #e7e4dd;
  --shadow: 0 1px 2px rgba(20, 22, 24, .05), 0 12px 32px -12px rgba(20, 22, 24, .18);
  --shadow-lg: 0 1px 3px rgba(20, 22, 24, .06), 0 20px 40px -18px rgba(20, 22, 24, .28);
  --sans: "Schibsted Grotesk", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
  --max: 1200px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #101214;
  --bg-alt: #14171a;
  --surface: #1a1d21;
  --ink: #ecebe6;
  --muted: #a7adb3;
  --line: #2a2f34;
  --line-strong: #3d434a;
  --accent: #8cc7ba;
  --accent-hover: #a8d8cd;
  --on-accent: #0c1513;
  --bg-soft: #15181b;
  --chrome: #1f2327;
  --chrome-dot: #3d434a;
  --phone-band: #5a5f66;
  --phone-edge: #2a2e33;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 28px 56px -18px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

/* Screenshots that exist in both themes */
:root[data-theme="dark"] .v-light, :root:not([data-theme="dark"]) .v-dark { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 112px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* Focus and skip link */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 6px; text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.mark { width: 30px; height: auto; aspect-ratio: 777 / 738; flex: none; fill: currentColor; }
.brand-name { font: 600 19px/1 var(--sans); letter-spacing: -.02em; }
.brand-suffix { color: var(--muted); font-weight: 400; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 26px; }
.nav a { font-size: 15px; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-moon { fill: currentColor; }
.icon-sun { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.icon-sun circle { fill: currentColor; stroke: none; }
.theme-toggle .icon-sun, :root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 8px;
}
.header-cta:hover { border-color: var(--ink); }
.file-tag {
  font: 500 11px/1 var(--mono); letter-spacing: .04em;
  color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 3px 4px 2px;
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; row-gap: 8px; }
  .header-tools { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .nav ul { gap: 4px 18px; flex-wrap: wrap; }
  .nav a { font-size: 14px; display: inline-block; padding: 4px 0; }
}
@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .brand-suffix, .cta-long { display: none; }
  .header-cta { font-size: 14px; padding: 7px 10px; }
}

/* Shared type */
.eyebrow, .section-num, .kicker, .contact-label, .glance-list dt, .data dt {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.text-link {
  display: inline-block; font-weight: 500; color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.text-link:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* Hero */
.hero { padding: 72px 0 32px; }
/* No rule under the hero. An empty band between hero and services darkens the ground
   slightly and settles back, a change of light rather than a line. It holds no text, so
   contrast is always measured against the plain page color. */
.seam { height: 140px; background: linear-gradient(to bottom, var(--bg), var(--bg-soft) 50%, var(--bg)); }
.seam + .section { padding-top: 40px; }
@media (min-width: 980px) { .seam { height: 180px; } .seam + .section { padding-top: 56px; } }
.hero-grid { display: grid; gap: 48px; }
@media (min-width: 980px) {
  .hero { padding: 112px 0 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: end; }
}
.hero h1 {
  margin-top: 20px;
  font: 500 clamp(36px, 5vw, 60px)/1.04 var(--sans);
  letter-spacing: -.035em;
  max-width: 18ch;
  text-wrap: balance;
}
.lede { margin-top: 28px; max-width: 60ch; font-size: 19px; line-height: 1.6; color: var(--muted); }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: .3em; }
.btn {
  display: inline-block; min-height: 48px; line-height: 1.4;
  padding: 13px 20px; border-radius: 10px; font-size: 16px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-note { font-weight: 400; opacity: .85; white-space: nowrap; }
@media (max-width: 560px) {
  .btn { display: flex; width: 100%; text-align: center; align-items: center; }
}
.btn-quiet { border-color: var(--line-strong); }
.btn-person { display: inline-flex; flex-direction: column; justify-content: center; padding-top: 7px; padding-bottom: 7px; }
.btn-sub { font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.35; }
.btn-quiet:hover { border-color: var(--ink); }

.glance {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; box-shadow: var(--shadow);
}
.card-title { display: flex; align-items: center; gap: 10px; font: 500 15px/1.3 var(--sans); }
.glance-list { margin: 16px 0 20px; }
.glance-list div { padding: 11px 0; border-top: 1px solid var(--line); }
.glance-list dt { font-size: 11.5px; }
.glance-list dd { margin: 3px 0 0; font-size: 15.5px; line-height: 1.45; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 980px) { .section { padding: 120px 0; } }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-num { margin-bottom: 14px; }
.section-head h2 { font: 500 clamp(32px, 4vw, 46px)/1.08 var(--sans); letter-spacing: -.03em; }
.section-intro { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 64ch; }

/* Services */
.services { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.service { display: grid; gap: 8px 48px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.service h3 { display: flex; align-items: baseline; gap: 12px; font: 500 22px/1.25 var(--sans); letter-spacing: -.02em; }
.service h3 .dot { transform: translateY(-3px); }
.service p { max-width: 62ch; color: var(--muted); }
@media (min-width: 900px) {
  .service { grid-template-columns: 340px minmax(0, 1fr); padding: 30px 0; align-items: baseline; }
}

/* Screenshot frames.
   .shot is a desktop browser window. .phone is an iPhone (393 x 852 pt screen, 19.5:9)
   with its side buttons, sized from --pw, the phone's width as a share of .media. */
.media { position: relative; container-type: inline-size; --pw: 23cqw; padding-bottom: 7%; }
.media-solo { padding-bottom: 0; }
.shot {
  margin: 0 15% 0 0; overflow: hidden; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.media-solo .shot { margin-right: 0; }
.shot::before {
  content: ""; display: block; height: 14px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 10px 50%, var(--chrome-dot) 2.5px, transparent 3px),
    radial-gradient(circle at 20px 50%, var(--chrome-dot) 2.5px, transparent 3px),
    radial-gradient(circle at 30px 50%, var(--chrome-dot) 2.5px, transparent 3px),
    var(--chrome);
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

.phone {
  position: absolute; right: 1.5%; bottom: 0; margin: 0;
  width: var(--pw);
  padding: calc(var(--pw) * .02);
  background: #0b0b0c;
  border-radius: calc(var(--pw) * .16);
  box-shadow:
    0 0 0 calc(var(--pw) * .006) var(--phone-band),
    var(--shadow-lg);
}
/* Side buttons: action and volume on the left, side button on the right. */
.phone::before, .phone::after {
  content: ""; position: absolute; width: calc(var(--pw) * .011); border-radius: 2px; background: var(--phone-band);
}
.phone::before {
  left: calc(var(--pw) * -.017); top: 17%; height: 5%;
  box-shadow: 0 calc(var(--pw) * .16) 0 var(--phone-band), 0 calc(var(--pw) * .32) 0 var(--phone-band);
}
.phone::after { right: calc(var(--pw) * -.017); top: 26%; height: 11%; }
.phone-screen {
  position: relative; overflow: hidden; background: #000;
  aspect-ratio: 393 / 852;
  border-radius: calc(var(--pw) * .142);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone-screen::before {
  content: ""; position: absolute; z-index: 1; left: 50%; transform: translateX(-50%);
  top: calc(var(--pw) * .028); width: calc(var(--pw) * .3); height: calc(var(--pw) * .088);
  border-radius: 999px; background: #000;
}
@media (max-width: 759px) { .media { --pw: 27cqw; padding-bottom: 9%; } .shot { margin-right: 18%; } .media-solo .shot { margin-right: 0; } .shot::before { height: 10px; background: var(--chrome); } }

/* Work */
.feature { display: grid; gap: 36px; margin-bottom: 88px; }
@media (min-width: 980px) {
  .feature { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .feature-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
  .feature-flip .media { order: 2; }
}
.feature .media { --pw: 21cqw; }
.feature-copy h3, .feature-copy h4 { margin: 10px 0 14px; font: 500 40px/1.05 var(--sans); letter-spacing: -.035em; }
.feature-copy > p:not(.kicker) { max-width: 52ch; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 22px; }
.tags li {
  font: 400 12.5px/1 var(--mono); color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 10px;
}

.work-grid { display: grid; gap: 72px 48px; }
@media (min-width: 760px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work .media { margin-bottom: 26px; }
.work h3 { margin: 6px 0 8px; font: 500 28px/1.15 var(--sans); letter-spacing: -.025em; }
.work h4 { margin: 6px 0 8px; font: 500 24px/1.15 var(--sans); letter-spacing: -.02em; }
.work > p:not(.kicker) { max-width: 58ch; margin-bottom: 12px; }
.sub-head {
  margin: 104px 0 40px; padding-top: 28px; border-top: 1px solid var(--line-strong);
  font: 500 30px/1.15 var(--sans); letter-spacing: -.025em;
}

/* Approach */
.approach { display: grid; gap: 20px; }
@media (min-width: 820px) { .approach { grid-template-columns: 1fr 1fr; } }
.principle {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px;
}
.principle h3 { display: flex; align-items: baseline; gap: 12px; font: 500 19px/1.35 var(--sans); letter-spacing: -.01em; margin-bottom: 12px; }
.principle h3 .dot { transform: translateY(-2px); }
.principle p { color: var(--muted); }
.checks li { position: relative; padding-left: 26px; color: var(--muted); }
.checks li + li { margin-top: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg);
}

/* Company data */
.data-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px 24px 24px; box-shadow: var(--shadow);
}
.data { display: grid; }
.data > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.data dt { font-size: 11.5px; }
.data dd { margin: 0; font-size: 17px; }
@media (min-width: 820px) {
  .data-card { padding: 8px 40px 32px; }
  .data { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .data > div { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; }
  .data > .data-wide { grid-column: 1 / -1; }
}
.naics li { padding: 3px 0; }
.naics .mono { display: inline-block; min-width: 64px; }
.primary {
  display: inline-block; margin-left: 6px; vertical-align: 1px;
  font: 500 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); border: 1px solid currentColor; border-radius: 4px; padding: 3px 5px 2px;
}
.data-foot { padding-top: 20px; }

/* Contact */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; } }
.contact .section-head { margin-bottom: 0; }
.contact-list { border-top: 1px solid var(--line-strong); }
.contact-list li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-value { font: 500 clamp(22px, 3vw, 30px)/1.25 var(--sans); letter-spacing: -.02em; text-decoration: none; overflow-wrap: anywhere; }
a.contact-value { text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 6px; }
a.contact-value:hover { text-decoration-color: currentColor; }
.contact-address { font-size: clamp(19px, 2.4vw, 24px); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14.5px; color: var(--muted); }
.footer-inner { display: grid; gap: 6px; }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mark-sm { width: 20px; color: var(--ink); }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }

@media print {
  .site-header { position: static; }
  .theme-toggle { display: none; }
  .shot, .glance, .data-card, .phone { box-shadow: none; }
}
