/* Bemonix: cream and plum from the logo; Jost (the wordmark's geometric sans) for type, with
   Instrument Serif italics for emphasis. Motion lives in motion.js (kit) and main.js. */

:root {
  --bg: #F4EEE3;
  --paper: #FBF8F1;
  --ink: #241019;
  --muted: #6C5862;
  --line: rgba(36, 16, 25, .14);
  --plum: #5A1530;
  --plum-soft: rgba(90, 21, 48, .08);
  --night: #22101A;
  --night-2: #2E1723;
  --night-line: rgba(244, 238, 227, .15);
  --cream: #F4EEE3;
  --cream-muted: #BEABB3;
  --rose: #E6B9C6;

  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
::selection { background: var(--plum); color: var(--cream); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.label { display: block; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 16px; }
.kit-mask { padding-bottom: .22em; margin-bottom: -.22em; }

/* ---- Buttons and links ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--ink); color: var(--cream); font: 500 15px/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background-color .3s var(--ease); }
.btn:hover { background: var(--plum); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--rose); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---- Header ---- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ink); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.header.is-scrolled { background: rgba(244, 238, 227, .88); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-dark { color: var(--cream); }
.header.is-dark.is-scrolled { background: rgba(34, 16, 26, .84); box-shadow: 0 1px 0 var(--night-line); }
.header.is-dark .btn { background: var(--cream); color: var(--ink); }
.header.is-dark .btn:hover { background: var(--rose); }
.header.is-dark .logo__mark { filter: brightness(0) invert(.93) sepia(.15); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-height: 44px; }
.logo__mark { height: 34px; width: auto; }
.logo__word { font: 500 19px/1 var(--sans); letter-spacing: .2em; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 14px; text-decoration: none; font-size: 15px; letter-spacing: .03em; opacity: .72; transition: opacity .25s var(--ease); }
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.menu-btn { display: none; }

.menu { position: fixed; inset: 0; z-index: 40; background: var(--bg); padding: 120px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
.menu-open .menu { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
.menu-open { overflow: hidden; }
.menu-open .header { color: var(--ink); }
.menu-open .header .logo__mark { filter: none; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { font: 300 clamp(40px, 11vw, 64px)/1.2 var(--sans); text-decoration: none; padding: 2px 0; }
.menu__foot { color: var(--muted); font-size: 15px; }

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 0 10px; border: 0; background: none; cursor: pointer; color: inherit; }
  .menu-btn span { display: block; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
  .menu-open .menu-btn span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
}

/* ---- Shared type ---- */
.display { font: 300 clamp(48px, 7.6vw, 124px)/.98 var(--sans); letter-spacing: -.035em; }
.display em { color: var(--rose); }
.h2 { font: 300 clamp(38px, 5.4vw, 84px)/1.02 var(--sans); letter-spacing: -.03em; max-width: 15em; }
.h2 em { color: var(--plum); }
.lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; color: var(--muted); max-width: 34em; }
.section { padding-block: clamp(96px, 13vw, 190px); }
.section-head { margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .lede { margin-top: 26px; }

/* ---- Dark hero (home) ---- */
.hero { background: var(--night); color: var(--cream); padding: 150px 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.hero .display { font-size: clamp(46px, 6vw, 100px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero .label { color: var(--rose); }
.hero__lede { margin-top: 32px; font-size: clamp(18px, 1.45vw, 21px); color: var(--cream-muted); max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 40px; }
.hero__stack { position: relative; aspect-ratio: 1 / .86; }
.browser { position: absolute; border-radius: 12px; overflow: hidden; background: var(--night-2); box-shadow: 0 0 0 1px var(--night-line), 0 40px 80px -30px rgba(0, 0, 0, .7); }
.browser::before { content: ''; display: block; height: 22px; background: radial-gradient(circle at 14px 11px, rgba(244, 238, 227, .25) 3px, transparent 3.5px), radial-gradient(circle at 26px 11px, rgba(244, 238, 227, .25) 3px, transparent 3.5px), radial-gradient(circle at 38px 11px, rgba(244, 238, 227, .25) 3px, transparent 3.5px); }
.browser img { width: 100%; aspect-ratio: 1600 / 731; object-fit: cover; object-position: top; }
.browser--a { width: 78%; left: 0; top: 0; }
.browser--b { width: 64%; right: 0; top: 34%; z-index: 2; }
.browser--c { width: 54%; left: 8%; bottom: 0; z-index: 3; }
@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stack { margin-top: 12px; }
}

/* ---- Statement ---- */
.statement__text { font: 300 clamp(30px, 4.2vw, 62px)/1.18 var(--sans); letter-spacing: -.02em; max-width: 21em; }
.statement__text em { color: var(--plum); }

/* ---- Work grid ---- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 3.4vw, 48px) clamp(16px, 2vw, 28px); }
.shot { grid-column: span 6; }
.shot--wide { grid-column: span 7; }
.shot--narrow { grid-column: span 5; align-self: end; }
.shot__frame { border-radius: 12px; overflow: hidden; background: #ddd; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(36, 16, 25, .4); }
.shot__frame img { width: 100%; aspect-ratio: 1600 / 731; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.shot:hover .shot__frame img { transform: scale(1.02); }
.shot figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.shot figcaption b { font: 400 21px/1.2 var(--sans); }
.shot figcaption span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.work-more { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
.work-more p { color: var(--muted); }
@media (max-width: 800px) {
  .work-grid { grid-template-columns: 1fr; }
  .shot, .shot--wide, .shot--narrow { grid-column: 1; }
}

/* ---- Included list ---- */
.included { background: var(--paper); border-block: 1px solid var(--line); }
.included__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.included__head { position: sticky; top: 120px; }
.checks { border-top: 1px solid var(--ink); }
.checks li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.checks svg { width: 26px; height: 26px; color: var(--plum); margin-top: 3px; }
.checks b { display: block; font-weight: 500; font-size: 19px; }
.checks p { color: var(--muted); font-size: 16px; margin-top: 2px; }
@media (max-width: 900px) {
  .included__grid { grid-template-columns: 1fr; }
  .included__head { position: static; }
}

/* ---- Process ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 30px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps__n { display: block; font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--plum); margin-bottom: 36px; }
.steps h3 { font: 400 clamp(26px, 2.3vw, 32px)/1.1 var(--sans); letter-spacing: -.01em; margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li, .steps li + li { padding: 26px 16px 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps__n { margin-bottom: 14px; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---- Person (one person, start to finish) ---- */
.person { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.person__photo { border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; max-width: 380px; box-shadow: 0 0 0 1px var(--line); }
.person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.person .lede + .lede { margin-top: 18px; }
.person .link-arrow { margin-top: 22px; }
@media (max-width: 800px) { .person { grid-template-columns: 1fr; } .person__photo { max-width: 300px; } }

/* ---- Call to action band ---- */
.cta { background: var(--night); color: var(--cream); padding-block: clamp(110px, 14vw, 200px); }
.cta .label { color: var(--rose); }
.cta__title { font: 300 clamp(52px, 9vw, 150px)/.95 var(--sans); letter-spacing: -.04em; max-width: 11em; }
.cta__title em { color: var(--rose); }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 48px; }
.cta__row p { color: var(--cream-muted); max-width: 30em; }

/* ---- Page heads (inner pages) ---- */
.page-head { padding-top: 170px; padding-bottom: clamp(64px, 8vw, 110px); }
.page-head .display { color: var(--ink); max-width: 13em; }
.page-head .display em { color: var(--plum); }
.page-head .lede { margin-top: 30px; }

/* ---- Services ---- */
.svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.svc h2 { font: 300 clamp(32px, 3.4vw, 50px)/1.05 var(--sans); letter-spacing: -.02em; }
.svc h2 em { color: var(--plum); }
.svc__intro { color: var(--muted); margin-top: 16px; max-width: 24em; }
.rows { border-top: 1px solid var(--ink); }
.rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows b { font-weight: 500; font-size: 18px; }
.rows p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rows li { grid-template-columns: 1fr; gap: 4px; } }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-size: clamp(19px, 1.6vw, 23px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 14px; height: 14px; flex: none; background: linear-gradient(var(--plum), var(--plum)) center / 100% 1.5px no-repeat, linear-gradient(var(--plum), var(--plum)) center / 1.5px 100% no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 26px; max-width: 46em; }

/* ---- About ---- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.values li { padding: 30px 28px 10px 0; }
.values li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.values h3 { font: 400 clamp(26px, 2.3vw, 32px)/1.1 var(--sans); margin-bottom: 12px; }
.values h3 em { color: var(--plum); }
.values p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) {
  .values { grid-template-columns: 1fr; }
  .values li, .values li + li { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: clamp(96px, 12vw, 170px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 500; letter-spacing: .04em; margin-bottom: 8px; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--sans); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--plum-soft); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__privacy { color: var(--muted); font-size: 14px; max-width: 26em; }
.form__note { grid-column: 1 / -1; padding: 16px 18px; border-radius: 12px; font-size: 16px; }
.form__note:empty { display: none; }
.form__note.is-ok { background: #E3EFE4; color: #24502C; }
.form__note.is-error { background: #F6E1E3; color: #7A1F2B; }
.form.is-sent .field, .form.is-sent .form__foot { display: none; }
.aside { padding: clamp(28px, 3vw, 40px); border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.aside h2 { font: 400 26px/1.15 var(--sans); margin-bottom: 18px; }
.aside ol { counter-reset: n; }
.aside ol li { counter-increment: n; position: relative; padding: 0 0 18px 40px; color: var(--muted); font-size: 16px; }
.aside ol li::before { content: counter(n); position: absolute; left: 0; top: -2px; font: italic 24px/1 var(--serif); color: var(--plum); }
.aside__mail { margin-top: 14px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 16px; }
.aside__mail a { font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.footer { background: var(--night); color: var(--cream-muted); border-top: 1px solid var(--night-line); }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)); gap: 32px; padding-block: 64px 48px; }
.footer .logo { color: var(--cream); margin-bottom: 16px; }
.footer .logo__mark { filter: brightness(0) invert(.93) sepia(.15); }
.footer p { font-size: 15px; max-width: 26em; }
.footer h2 { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); margin-bottom: 14px; }
.footer li a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; font-size: 15px; transition: color .25s var(--ease); }
.footer li a:hover { color: var(--cream); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 24px; border-top: 1px solid var(--night-line); font-size: 14px; }
.footer__bottom a { text-decoration: none; color: var(--cream); }
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---- 404 ---- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.notfound .display { color: var(--ink); }
.notfound .lede { margin: 24px auto 36px; }

/* ---- Live preview viewer (Work page) ----
   The agency showcase's viewer, styled as part of this site: a bar that mirrors the header (mark,
   pill buttons, the caption's name and type), with the live site below. */
.shot__link { display: block; color: inherit; text-decoration: none; border-radius: 12px; }
.shot figcaption .shot__link { display: inline; border-radius: 4px; }
.shot figcaption .shot__link:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.viewer { display: none; position: fixed; inset: 0; z-index: 500; background: var(--night); color: var(--cream); flex-direction: column; }
.viewer.open { display: flex; }
.viewer-bar { flex-shrink: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; height: 76px; padding: 0 var(--gutter); border-bottom: 1px solid var(--night-line); }
.viewer-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.viewer-left .logo__mark { height: 30px; width: auto; filter: brightness(0) invert(.93) sepia(.15); }
.viewer-back { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--night-line); background: none; color: var(--cream); font: 500 14px/1 var(--sans); letter-spacing: .04em; cursor: pointer; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.viewer-back:hover { background: var(--night-2); border-color: rgba(244, 238, 227, .3); }
.viewer-back span { transition: transform .3s var(--ease); }
.viewer-back:hover span { transform: translateX(-3px); }
.viewer-title { text-align: center; min-width: 0; }
.viewer-title b { display: block; font: 400 19px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-title small { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.viewer-right { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.viewer-nav { display: flex; align-items: center; gap: 10px; }
.viewer-nav button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--night-line); background: none; color: var(--cream); cursor: pointer; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.viewer-nav button:hover { background: var(--night-2); border-color: rgba(244, 238, 227, .3); }
.viewer-nav svg { width: 16px; height: 16px; }
.viewer-nav span { min-width: 3.6em; text-align: center; font-size: 13px; letter-spacing: .08em; color: var(--cream-muted); font-variant-numeric: tabular-nums; }
.viewer-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.viewer-open { overflow: hidden; }
@media (max-width: 1000px) { .viewer .btn { display: none; } }
@media (max-width: 700px) {
  .viewer-bar { grid-template-columns: auto 1fr auto; gap: 12px; height: 64px; }
  .viewer-left .logo__mark, .viewer-back__text { display: none; }
  .viewer-back { padding: 0 14px; }
  .viewer-title b { font-size: 16px; }
  .viewer-title small { font-size: 10px; letter-spacing: .12em; }
  .viewer-nav span { display: none; }
  .viewer-nav button { width: 40px; height: 40px; }
}
.viewer :focus-visible { outline-color: var(--rose); }
