/* carlbrunson.design V2 home, design E
   Template: haptic.studio (archived 2025-08-25). Colour blocks, a light roman serif for statements,
   SF Pro Display Medium for UI, 40px page margins. SF Pro can't be self-hosted under Apple's
   licence, so the UI stack calls the system font: Apple devices render SF Pro, other platforms
   fall back to the site's Inter. The serif is IvyJournal from Adobe Fonts, with Newsreader as the fallback. */

@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-300-latin.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-300-italic-latin.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-var-latin.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
    --accent: #124dff;          /* cobalt; was orange #ff4d12 */
    --accent-soft: #7a98ff;     /* light cobalt accent text; was #ff6937 */
    --yellow: #fbba10;
    --pink: #ffbef2;
    --accent-deep: #121d45;     /* navy; was brown #482f22 */
    --black: #000000;
    --ink: #101214;
    --grey: #8a8a8a;
    --grey-light: #bbbbbb;
    --tile: #f2f2f2;
    --chip: #efefef;
    --white: #ffffff;
    --serif: 'ivyjournal', 'Newsreader', Georgia, serif;  /* IvyJournal from the Adobe Fonts web kit (use.typekit.net/bgf2vue.css); Newsreader is the self-hosted fallback */
    --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', sans-serif;
    --m: 40px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.hp {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
:where(.hp) :is(img, video) { display: block; max-width: 100%; }
:where(.hp) a { color: inherit; text-decoration: none; }
:where(.hp) :is(h1, h2, h3, p, figure, blockquote, ul, ol) { margin: 0; }
/* No widows: body copy keeps 2+ words on its last line; display type balances its lines */
:where(.hp) :is(p, li, dd, figcaption, td) { text-wrap: pretty; }
:where(.hp) :is(h1, h2, h3, h4, blockquote, dt, .statement, .hero__title, .page-hero__title, .sec__title, .pull) { text-wrap: balance; }
:where(.hp) :is(ul, ol) { padding: 0; list-style: none; }
.hp :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shared ---------- */
.label { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 24px; letter-spacing: -0.04em; }
.label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.label--light { color: var(--white); }
.label--orange { color: var(--white); }
.statement { max-width: 760px; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.45vw, 64px); line-height: 1.1; letter-spacing: -0.06em; }
.statement--orange { color: var(--white); }
.arrow-btn { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--chip); color: var(--black); cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.arrow-btn svg { width: 16px; height: 16px; }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 22px; border-radius: 100px; background: var(--white); color: var(--black); font-size: 16px; letter-spacing: -0.02em; transition: background-color 0.3s, color 0.3s; }
.pill-btn:hover { background: var(--accent); color: var(--white); }

/* ---------- Menu ---------- */
/* Menu button and full-screen menu live in css/site-nav.css, shared by every page */

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 677px; height: 75vh; padding: var(--m); background: var(--accent); color: var(--white); }
.wordmark { align-self: flex-start; font-size: clamp(44px, 4.5vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -0.055em; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-right: -15px; }
.hero__title { max-width: 860px; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.45vw, 64px); line-height: 1.1; letter-spacing: -0.06em; color: inherit; }
.inline-media { display: inline-block; width: 1.5em; height: 0.78em; margin: 0 0.06em; border-radius: 0.14em; overflow: hidden; vertical-align: -0.06em; background: var(--black); }
.inline-media video { width: 100%; height: 100%; object-fit: cover; }
.call-card { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 346px; min-height: 98px; padding: 16px 16px 16px 106px; background: var(--white); color: var(--black); transition: transform 0.4s var(--ease); }
.call-card__text { display: flex; flex-direction: column; gap: 3px; font-size: 16px; line-height: 1.2; }
.call-card__text span { color: var(--grey); }
.call-card__text b { font-weight: 500; }
.call-card:hover .arrow-btn { background: var(--accent); color: var(--white); }

/* ---------- Work spotlights ---------- */
/* Six-column grid: the first two tiles span three columns each, the next three span two.
   Tiles touch edge to edge in both directions. The caption lives inside each tile: on hover
   the image fades and the icon, name and line slide up into the lower third. */
.spots { padding: 0; }
.spots__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile { position: relative; grid-column: span 2; display: block; overflow: hidden; background: var(--black); color: var(--white); }
.tile:nth-child(-n + 2) { grid-column: span 3; }
.tile__media { position: relative; display: block; aspect-ratio: 651 / 797; overflow: hidden; background: var(--tile); transition: opacity 0.6s var(--ease); }
.tile__media > :is(img, video) { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile__media--shot { background: #e8e5df; }
.tile__media--shot > img { position: absolute; top: 18%; left: 10%; width: 165%; height: auto; max-width: none; object-fit: initial; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.35); }

/* Shade that carries the caption: darkest at the bottom, clear by the middle */
.tile::after {
    content: '';
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    pointer-events: none;
}
.tile__meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: var(--m);
    opacity: 0;
    transform: translate3d(0, 100%, 0);
    transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}
.tile__meta > span:last-child { display: flex; flex-direction: column; gap: 6px; max-width: 30em; }
.tile__meta b { font-size: clamp(22px, 2vw, 30px); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.tile__meta > span:last-child > span { font-size: 16px; line-height: 1.35; color: rgba(255, 255, 255, 0.75); }
.tile:is(:hover, :focus-visible) .tile__media { opacity: 0.55; }
.tile:is(:hover, :focus-visible) .tile__media > :is(img, video) { transform: scale(1.04); }
.tile:is(:hover, :focus-visible)::after { opacity: 1; }
.tile:is(:hover, :focus-visible) .tile__meta { opacity: 1; transform: none; transition-delay: 0.05s; }
.tile:focus-visible { outline-offset: -4px; outline-color: var(--white); }

/* Touch screens have no hover, so the caption stays visible there */
@media (hover: none) {
    .tile::after, .tile__meta { opacity: 1; transform: none; }
}

/* Spotlight tiles show the project name only, at every size: no icon or description */
.tile .tile__icon, .tile__meta > span:last-child > span { display: none; }
.tile::after { inset: 65% 0 0; }

.tile__icon, .person__icon { flex: none; width: 42px; height: 42px; border-radius: 9px; overflow: hidden; background: var(--chip); }
.tile__icon img, .person__icon img { width: 100%; height: 100%; object-fit: cover; }
/* White logo marks (no app-icon artwork) sit centred on black */
.tile__icon--mark { display: grid; place-items: center; background: var(--black); }
.tile__icon--mark img { width: 64%; height: auto; object-fit: contain; }
.person > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 16px; line-height: 1.2; }
.person b { font-weight: 500; color: var(--ink); }
.person > span:last-child > span { color: var(--grey); }

/* ---------- Logos over video ---------- */
/* The clips are logo-free; each logo is an SVG laid over its clip so it stays sharp at any size.
   Every clip is square and fills its frame with object-fit: cover, so the rendered video is
   max(frame width, frame height) on a side. --w is the logo's width as a share of that side,
   measured from the original footage, so the logo lands where it was baked in. */
.has-vlogo { container-type: size; }
.vlogo { position: absolute; top: 50%; left: 50%; z-index: 1; width: calc(var(--w) * max(100cqw, 100cqh)); transform: translate(-50%, -50%); pointer-events: none; transition: transform 1.2s var(--ease); }
.vlogo img { display: block; width: 100%; height: auto; }
.tile:is(:hover, :focus-visible) .vlogo { transform: translate(-50%, -50%) scale(1.04); }

/* ---------- Colour blocks ---------- */
.block { display: flex; flex-direction: column; justify-content: space-between; gap: 160px; min-height: 572px; padding: 48px var(--m) 44px; }
.block--yellow { background: var(--yellow); padding-top: 80px; }
.block--pink { background: var(--pink); min-height: 0; gap: 200px; padding-bottom: 40px; }
.block--brown { background: var(--accent-deep); gap: 0; padding-bottom: 120px; }

/* ---------- Voices ---------- */
.voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.voice { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; min-height: 560px; padding: 40px; overflow: hidden; color: var(--white); background: var(--black); }
.voice video, .voice__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voice__media video { position: static; }
/* The WriteWise logo sits at the centre of its clip; lift the clip so the logo clears the quote */
.voice--lift .voice__media { top: -40%; height: 140%; }
.voice::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.15) 100%); }
.voice blockquote, .voice .person { position: relative; z-index: 1; }
.voice blockquote { max-width: 30ch; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.15; letter-spacing: -0.04em; }
.person { display: flex; align-items: center; gap: 12px; }
.voice .person { gap: 20px; }
.person__logo { flex: none; width: auto; height: 24px; padding-right: 20px; border-right: 1px solid rgba(255,255,255,0.35); box-sizing: content-box; }
.voice .person b { color: var(--white); }
.voice .person > span:last-child > span { color: rgba(255,255,255,0.7); }
.block__note { max-width: 52ch; margin-top: 24px; font-size: 14px; line-height: 1.4; color: rgba(0,0,0,0.6); }
.block__note a { color: #080303; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.block__note a:hover { text-decoration-thickness: 2px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.services li { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.05em; padding: 4px 0; }

/* ---------- Index ---------- */
.index { padding: 48px var(--m) 160px; }
.index .label { margin-bottom: 20px; }
.index__body { position: relative; }
.index__list a { display: grid; grid-template-columns: 1fr 260px 140px; align-items: center; gap: 20px; padding: 18px 0; }
/* Hairline between entries, inside the page gutters */
.index__list li + li { border-top: 1px solid rgba(0, 0, 0, 0.12); }
.index__name { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.45vw, 64px); line-height: 1.28; letter-spacing: -0.06em; color: var(--grey-light); transition: color 0.3s; }
.index__tags, .index__role { font-size: 16px; color: var(--grey); letter-spacing: -0.02em; }
.index__role { text-align: right; }
.index__list a.is-active .index__name, .index__list a:hover .index__name { color: var(--black); }
.index__list a.is-active .index__tags, .index__list a.is-active .index__role { color: var(--ink); }
.index__preview { position: absolute; top: 0; left: 37.5%; width: 26%; aspect-ratio: 374 / 281; overflow: hidden; background: var(--tile); pointer-events: none; transition: transform 0.6s var(--ease); }
.index__preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Outcomes (pricing layout) ---------- */
.outcomes { background: var(--black); color: #f0f0f0; padding-top: 40px; }
.outcomes > .label { padding: 0 var(--m); margin-bottom: 128px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); border-top: 1px solid #262626; }
.plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; padding: 40px var(--m) 0; border-right: 1px solid #262626; }
.plan:last-child { border-right: 0; }
.plan__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 60px; }
.plan__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; overflow: hidden; }
.plan__icon img { width: 100%; height: 100%; object-fit: cover; }
.plan__icon--yellow { background: var(--yellow); }
.plan__icon--blue { background: #2443e8; }
.plan__icon--orange { background: var(--accent); }
.plan__icon--dark, .tile__icon--dark { background: #0b0b0b; } /* matches the SlateRoom icon fill and the headshot backdrop, so no colour shows at the rounded corners */
.pill { padding: 6px 12px; border-radius: 100px; background: #1e1e1e; color: #9a9a9a; font-size: 13px; }
.pill--accent { background: var(--accent-deep); color: var(--accent-soft); }
.plan__title { margin-bottom: 28px; font-family: var(--serif); font-weight: 300; font-size: 48px; line-height: 1.1; letter-spacing: -0.06em; }
.plan__text { max-width: 36ch; font-size: 15px; line-height: 1.3; color: #9a9a9a; font-weight: 500; }
.plan__figure { align-self: end; margin: 120px 0 28px; font-family: var(--serif); font-weight: 300; font-size: 48px; line-height: 1.1; letter-spacing: -0.06em; }
.plan__figure span { margin-left: 4px; font-size: 13px; font-weight: 400; letter-spacing: -0.02em; }
.plan .pill-btn { justify-self: start; margin-bottom: 40px; }
.plan__list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin: 0 calc(var(--m) * -1); padding: 24px var(--m) 60px; border-top: 1px solid #262626; font-size: 13px; line-height: 1.3; color: #9a9a9a; }

/* ---------- Research (careers layout) ---------- */
.block--brown .statement { margin: 96px 0 96px; }
.research__label { margin-bottom: 64px; }
.roles a { display: grid; grid-template-columns: 1fr 360px 140px; align-items: baseline; gap: 20px; padding: 10px 0; color: var(--white); }
.roles__name { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.35vw, 48px); line-height: 1.1; letter-spacing: -0.06em; opacity: 0.55; transition: opacity 0.3s; }
.roles a > span:not(.roles__name) { font-size: 16px; opacity: 0.75; }
.roles a > span:last-child { text-align: right; }
.roles a:hover .roles__name { opacity: 1; }

/* ---------- Footer ---------- */
.footer { display: grid; grid-template-columns: 320px 1fr; gap: 20px; padding: 80px var(--m) 60px; }
/* Video mark with name and tagline set like the footer links */
.footer__brand { align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.25; letter-spacing: -0.02em; color: var(--grey); }
.footer__brand .footer__mark { margin-bottom: 18px; }
.footer__name { color: #080303; font-weight: 700; }
.footer__mark { align-self: start; display: block; width: 168px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--black); }
.footer__mark video { width: 100%; height: 100%; object-fit: cover; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 100px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; letter-spacing: -0.02em; }
.footer__head { margin-bottom: 14px; color: #080303; }
.footer__cols a { width: fit-content; color: var(--grey); transition: color 0.3s; }
.footer__cols a:hover { color: var(--black); }
.footer__legal { grid-column: 1 / -1; font-size: 14px; color: var(--grey); }

/* ---------- Motion ---------- */
.js [data-in] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-in].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js [data-in] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    /* svh = the viewport with the browser bars showing, so the whole hero fits on first view */
    .hero { height: auto; min-height: 100vh; min-height: 100svh; }
    .hero__row { flex-direction: column; align-items: flex-start; margin-right: 0; }
    .call-card { padding-left: 24px; }
    .voices { grid-template-columns: 1fr; }
    .index__list a { grid-template-columns: 1fr auto; }
    .index__role { display: none; }
    .index__preview { display: none; }
    .plans { grid-template-columns: 1fr; }
    .plans { grid-template-rows: none; }
    .plan { grid-row: auto; grid-template-rows: none; border-right: 0; border-bottom: 1px solid #262626; }
    .plan__figure { margin-top: 48px; }
    .roles a { grid-template-columns: 1fr auto; }
    .roles a > span:nth-child(2) { display: none; }
    .footer { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 767px) {
    :root { --m: 20px; }
    .call-card { width: 100%; }
    .spots__grid { grid-template-columns: 1fr; }
    .tile, .tile:nth-child(-n + 2) { grid-column: auto; }
    .block { gap: 96px; min-height: 0; padding-top: 32px; }
    .block--yellow { padding-top: 56px; }
    .block--pink { gap: 96px; }
    .services { grid-template-columns: 1fr; }
    .voice { min-height: 460px; padding: 24px var(--m); }
    .voice .person { gap: 16px; }
    .person__logo { height: 18px; padding-right: 16px; }
    .index { padding-bottom: 96px; }
    .index__list a { grid-template-columns: 1fr; gap: 0; padding: 14px 0 18px; }
    .index__tags { margin-top: -4px; }
    .outcomes > .label { margin-bottom: 64px; }
    .plan__list { grid-template-columns: 1fr; }
    .block--brown .statement { margin: 64px 0; }
    .research__label { margin-bottom: 32px; }
    .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
