:root {
  color-scheme: dark;
  --ink: #08090c;
  --panel: #101115;
  --red: #ee2433;
  --red-soft: #ff5460;
  --white: #f5f3f2;
  --muted: #bdbdc3;
  --line: rgba(245, 243, 242, .18);
  --display: "Arial Narrow", "Trebuchet MS", Arial, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 1rem/1.65 var(--body); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 70% 65%, #270b11 0, transparent 46%); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--red-soft); outline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }
h1, h2, h3, p, blockquote { margin-top: 0; }
.skip-link { position: absolute; z-index: 20; top: -5rem; left: 1rem; padding: .55rem .9rem; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.page-width { width: min(1360px, calc(100% - 5.5vw)); margin-inline: auto; }
.site-header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .8rem 3vw; border-bottom: 1px solid var(--line); background: #090a0d; }
.brand { display: inline-flex; align-items: center; gap: .8rem; min-width: max-content; text-decoration: none; }
.brand-mark { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 7px rgba(238,36,51,.3)); }
.brand-type { display: flex; flex-direction: column; gap: .04rem; font: 400 1.03rem/1.25 var(--display); letter-spacing: .4em; text-transform: uppercase; }
.brand-type small { display: flex; align-items: center; gap: .55rem; color: #d7d2d4; font: 600 .54rem/1.3 var(--body); letter-spacing: .45em; }
.brand-type small::before, .brand-type small::after { content: ""; height: 1px; width: 19px; background: #8f8b8e; }
.primary-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem clamp(.7rem, 2.4vw, 2rem); }
.primary-nav a { padding: .55rem 0; color: #ddd9dc; text-decoration: none; white-space: nowrap; font: 600 .69rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; transition: color .18s; }
.primary-nav a:hover { color: var(--red-soft); }
.primary-nav a:last-child { color: var(--red-soft); }
.hero { position: relative; isolation: isolate; min-height: min(770px, calc(100svh - 86px)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-image, .hero-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-image { background: url('/operations/agents/carly/assets/night-coast.png') center 46% / cover no-repeat; transform: scale(1.15); transform-origin: left center; }
.hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(5,6,8,.96) 0%, rgba(5,6,8,.86) 24%, rgba(5,6,8,.3) 52%, rgba(5,6,8,.08) 75%, rgba(5,6,8,.35) 100%), linear-gradient(180deg, rgba(5,6,8,.06) 48%, rgba(5,6,8,.92) 100%); }
.hero-content { width: min(510px, 44vw); margin: 3rem 0 13rem 5.5vw; text-shadow: 0 2px 15px rgba(0,0,0,.55); }
.eyebrow { margin-bottom: .65rem; color: var(--red-soft); font: 700 .74rem/1.5 var(--body); letter-spacing: .23em; text-transform: uppercase; }
.hero h1 { margin-bottom: .95rem; font: 400 clamp(3.65rem, 6.2vw, 7rem)/.95 var(--display); letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.hero-line { margin-bottom: 1.2rem; font: 500 clamp(.83rem, 1.18vw, 1.05rem)/1.55 var(--body); letter-spacing: .23em; text-transform: uppercase; }
.hero-intro { max-width: 44ch; margin-bottom: 0; color: #dedde0; font-size: clamp(.88rem, 1vw, 1rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.55rem; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: space-between; gap: 1.3rem; padding: .75rem 1.05rem; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; font: 700 .7rem/1.4 var(--body); letter-spacing: .13em; text-transform: uppercase; transition: background .18s, border-color .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--red); background: var(--red); color: #fff; }
.button-primary:hover { background: #c51725; border-color: #c51725; }
.button-outline { background: rgba(12,12,15,.53); color: var(--white); }
.button-outline:hover { border-color: var(--red-soft); background: rgba(238,36,51,.16); }
.hero-quote { position: absolute; top: 9%; right: 5vw; width: 170px; margin: 0; text-align: right; text-shadow: 0 2px 14px #000; }
.hero-quote p { margin-bottom: .7rem; font-size: .93rem; line-height: 1.4; letter-spacing: .06em; }
.hero-quote cite { display: block; color: #d0cdd3; font: normal 700 .64rem/1.5 var(--body); letter-spacing: .2em; text-transform: uppercase; }
.hero-quote::after { content: ""; display: block; width: 30px; height: 2px; margin: 1rem 0 0 auto; background: var(--red); }
.hero-cards { position: absolute; bottom: 2rem; left: 3vw; right: 3vw; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.hero-card { min-height: 105px; display: grid; grid-template-columns: 34px minmax(0,1fr) 15px; align-items: start; gap: .8rem; padding: 1rem .95rem; border: 1px solid var(--line); border-radius: 4px; background: rgba(8,9,12,.88); text-decoration: none; backdrop-filter: blur(12px); transition: border-color .18s, background .18s, transform .18s; }
.hero-card:hover { border-color: var(--red-soft); background: rgba(26,14,18,.96); transform: translateY(-3px); }
.hero-card svg { width: 30px; height: 30px; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-card strong { display: block; margin: .1rem 0 .25rem; font: 700 .71rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.hero-card small { display: block; color: #aaa8ae; font-size: .7rem; line-height: 1.45; }
.card-arrow { align-self: end; color: #cbc7ca; font-size: 1.2rem; line-height: 1; }
.intro-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 9rem); padding-block: clamp(4.5rem, 8vw, 8rem); }
h2 { margin-bottom: 0; font: 400 clamp(2.4rem, 4.5vw, 4.7rem)/1.07 var(--display); letter-spacing: .035em; text-transform: uppercase; }
h2 em { color: #a5a3aa; font-style: normal; }
.intro-copy { max-width: 61ch; color: #cccbd0; font-size: clamp(.95rem, 1.1vw, 1.1rem); }
.intro-copy p:last-child { margin-bottom: 0; }
.work-section { padding-block: clamp(4rem, 7vw, 7rem); border-block: 1px solid var(--line); background: linear-gradient(135deg, #101116 0%, #120b0f 65%, #0a0a0c 100%); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading > p { max-width: 41ch; margin-bottom: 0; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.work-item { min-height: 300px; padding: clamp(1.5rem, 3vw, 3rem); background: #0d0e12; scroll-margin-top: 2rem; }
.work-index { color: var(--red-soft); font: 700 .72rem/1.3 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.work-item h3 { max-width: 18ch; margin: 1.5rem 0 .7rem; font: 400 clamp(1.65rem, 2.6vw, 2.6rem)/1.15 var(--display); letter-spacing: .025em; text-transform: uppercase; }
.work-item p { max-width: 59ch; color: #c4c2c7; }
.work-item a { color: #f3ebed; font-size: .83rem; font-weight: 650; text-decoration-color: var(--red); text-underline-offset: .35rem; }
.work-item a:hover { color: var(--red-soft); }
.closing-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(4rem, 8vw, 8rem); }
.closing-image { min-height: clamp(270px, 37vw, 530px); background: url('/operations/agents/carly/assets/sunset-writing.png') 34% center / cover no-repeat; border: 1px solid var(--line); }
.closing-copy { max-width: 520px; }
.closing-copy h2 { margin-bottom: 1.3rem; }
.closing-copy p:not(.eyebrow) { color: var(--muted); }
.closing-copy .button { margin-top: .7rem; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.7rem; border-top: 1px solid var(--line); color: #aaa8ae; font-size: .75rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--red-soft); }
@media (max-width: 1050px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .4rem; padding-inline: 3vw; }
  .primary-nav { justify-content: flex-start; }
  .hero { min-height: 740px; }
  .hero-content { width: min(500px, 55vw); margin-bottom: 13rem; }
  .hero-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-card { min-height: 90px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 1rem; }
  .page-width { width: min(100% - 2rem, 540px); }
  .site-header { padding: .9rem 1rem .7rem; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-type { font-size: .85rem; }
  .primary-nav { gap: .05rem 1rem; }
  .primary-nav a { font-size: .61rem; }
  .hero { min-height: 0; display: block; padding-top: clamp(320px, 96vw, 540px); }
  .hero-image { bottom: auto; height: clamp(400px, 113vw, 620px); background-position: 36% top; transform: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(5,6,8,.05) 0%, rgba(5,6,8,.13) 23%, rgba(5,6,8,.88) 46%, #08090c 65%); }
  .hero-content { position: relative; width: auto; margin: 0 1rem 2rem; text-shadow: 0 2px 12px #000; }
  .hero h1 { font-size: clamp(3.3rem, 13vw, 5.3rem); white-space: normal; }
  .hero-line { font-size: .75rem; }
  .hero-intro { max-width: 52ch; }
  .hero-quote { display: none; }
  .hero-cards { position: relative; inset: auto; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .5rem; margin: 0 1rem 2rem; }
  .hero-card { min-height: 140px; grid-template-columns: 1fr 12px; gap: .3rem; padding: .85rem; }
  .hero-card svg { grid-column: 1 / -1; width: 27px; height: 27px; }
  .hero-card strong { font-size: .62rem; }
  .hero-card small { font-size: .68rem; }
  .intro-section, .closing-section { grid-template-columns: 1fr; gap: 1.7rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .6rem; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item { min-height: 0; }
  .closing-image { min-height: 320px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 360px) {
  .hero-cards { grid-template-columns: 1fr; }
  .hero-card { min-height: 84px; grid-template-columns: 30px 1fr 12px; align-items: start; }
  .hero-card svg { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
