/*
  Hinkle Productions — Concept B: cinematic (hinkle-child).
  Full-bleed night photograph as the hero; each major section is "lit" by one of Hinkle's own RGB light photos,
  darkened until only the color spill remains. Tungsten accent against blue/violet light.
  Brand values live ONLY in the :root block below. Everything else reads the tokens.

  Specificity notes (GeneratePress, guide §9):
  - GP styles a.wp-block-button__link:not(.has-background) at 0,2,1 (0,3,1 on hover/focus).
    Our buttons use .wp-block-button.wp-block-button (doubled class) to reach 0,3,0 / 0,4,0 in the editor too.
  - GP and core add margins to p, headings and figures. Inside .hp-main they are reset; spacing comes from gap.
*/

@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-var-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-var-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --night: #07090d;        /* canvas, matched to the hero's night sky */
  --night-2: #0d1117;      /* panels */
  --paper: #f1ede5;        /* text, logo band */
  --muted: #9ba4b0;        /* secondary text, cool to sit with the blue light */
  --line: rgba(241, 237, 229, .14);
  --tungsten: #e0a64e;     /* accent: buttons, key marks */
  --tungsten-ink: #1b1306;
  --ok: #7cc48f;
  --wait: #d0665a;         /* editor-only WAITING ON CLIENT boxes */
  --ink-on-paper: #15171b;

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  --step-4: clamp(2.8rem, 1rem + 4.6vw, 5.6rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --cut: 14px;
  --header-h: 80px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--night); color: var(--paper); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.hp-site .site, body.hp-site .site-content { display: block; padding: 0; margin: 0; max-width: none; background: none; }
.hp-main img, .hp-header img, .hp-footer img { max-width: 100%; height: auto; display: block; }
body a { color: inherit; }
body a:hover { color: inherit; }
body :focus-visible { outline: 2px solid var(--tungsten); outline-offset: 3px; }
body h1, body h2, body h3, body h4 { font-family: var(--font-display); font-weight: 800; line-height: .95; margin: 0; text-wrap: balance; color: inherit; text-transform: none; letter-spacing: normal; }
body h1 { font-size: var(--step-4); font-weight: 900; line-height: .92; }
body h2 { font-size: var(--step-3); }
body h3 { font-size: var(--step-2); line-height: 1.05; }
body h4 { font-size: var(--step-1); line-height: 1.1; }
.hp-main :is(p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.hp-main p:empty { display: none; }
.hp-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.hp-muted { color: var(--muted); }
.hp-eyebrow.hp-eyebrow { font-size: var(--step--1); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tungsten); line-height: 1.3; }

/* Editor-only notes: removed from the public page by PHP; this is a safety net. */
.hp-wait { display: none !important; }

/* ------------------------------------------------------------------ buttons (chamfered: echoes the HP hexagon) */
.hp-btn,
.wp-block-button.wp-block-button > .wp-block-button__link,
.hp-form .wpcf7-submit.wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.5em;
  font: 700 var(--step-0)/1 var(--font-body); text-decoration: none; text-align: center; border: 0; border-radius: 0; cursor: pointer; box-shadow: none;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background-color .15s, color .15s;
  background: var(--tungsten); color: var(--tungsten-ink);
}
.hp-btn:is(:hover, :focus-visible),
.wp-block-button.wp-block-button > .wp-block-button__link:is(:hover, :focus, :active),
.hp-form .wpcf7-submit.wpcf7-submit:is(:hover, :focus) { background: var(--paper); color: var(--tungsten-ink); }
.hp-btn--ghost,
.wp-block-button.is-style-ghost > .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link { background: rgba(241,237,229,.08); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(241,237,229,.3); }
.hp-btn--ghost:is(:hover, :focus-visible),
.wp-block-button.is-style-ghost > .wp-block-button__link:is(:hover, :focus, :active),
.wp-block-button.is-style-outline > .wp-block-button__link:is(:hover, :focus, :active) { background: rgba(241,237,229,.16); color: var(--paper); }
.hp-actions.hp-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hp-actions > .wp-block-button { margin: 0; }

/* ------------------------------------------------------------------ header (floats over the hero) */
.hp-header { position: fixed; inset: 0 0 auto 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(to bottom, rgba(7,9,13,.85), rgba(7,9,13,0)); transition: background-color .2s; }
.hp-header.is-scrolled, .hp-header.is-open { background: rgba(7,9,13,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .hp-header { top: 32px; }
.hp-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.hp-brand { display: block; flex: none; }
.hp-brand img { width: 190px; }
.hp-nav { display: flex; align-items: center; gap: 30px; }
.hp-nav .hp-nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.hp-nav .hp-nav__list a { text-decoration: none; font-weight: 600; font-size: var(--step--1); color: rgba(241,237,229,.8); }
.hp-nav .hp-nav__list a:hover, .hp-nav .hp-nav__list [aria-current="page"], .hp-nav .hp-nav__list .current-menu-item > a { color: var(--paper); }
.hp-nav .hp-btn { min-height: 42px; font-size: var(--step--1); }
.hp-header .hp-menu-toggle { display: none; background: rgba(7,9,13,.5); border: 1px solid var(--line); border-radius: 0; color: var(--paper); min-height: 44px; padding: 0 16px; font: 600 var(--step--1) var(--font-body); cursor: pointer; }
.hp-header .hp-menu-toggle:is(:hover, :focus) { background: rgba(7,9,13,.8); color: var(--paper); }

/* ------------------------------------------------------------------ hero (the photograph is the thesis) */
.hp-hero { position: relative; min-height: min(94vh, 900px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hp-hero > .hp-hero-photo { position: absolute; inset: 0; z-index: -3; margin: 0; }
.hp-hero > .hp-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 38%; }
.hp-hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, var(--night) 0%, rgba(7,9,13,.92) 22%, rgba(7,9,13,.5) 42%, rgba(7,9,13,0) 62%),
    linear-gradient(to right, rgba(7,9,13,.45) 0%, rgba(7,9,13,0) 50%); }
.hp-hero::after, .hp-lit::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; pointer-events: none; }
.hp-hero > .hp-wrap { padding-block: 160px clamp(48px, 7vw, 88px); }
.hp-hero h1 { max-width: 19ch; text-shadow: 0 2px 40px rgba(0,0,0,.45); }
.hp-hero .hp-hero-sub { margin-top: 24px; max-width: 33em; font-size: var(--step-1); line-height: 1.5; color: rgba(241,237,229,.9); }
.hp-hero .hp-actions { margin-top: 32px; }
@media (prefers-reduced-motion: no-preference) {
  .hp-hero > .hp-hero-photo img { animation: hp-push 2.4s cubic-bezier(.2,.6,.2,1) both; }
  @keyframes hp-push { from { transform: scale(1.06); filter: brightness(.6); } to { transform: none; filter: none; } }
}

/* ------------------------------------------------------------------ brands (solid, quiet, one color) */
.hp-brands { background: var(--paper); color: var(--ink-on-paper); padding-block: 34px; overflow: hidden; }
.hp-brands > .hp-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; }
.hp-brands .hp-brands__title { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; line-height: 1.3; max-width: 9em; color: #3b3f46; }
.hp-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.hp-marquee .hp-marquee__track { display: flex; width: max-content; }
.hp-marquee .hp-logos { display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); padding: 0 clamp(20px, 2.5vw, 36px); flex: none; }
.hp-logos > .hp-logo { margin: 0; flex: none; }
.hp-logos > .hp-logo img { height: 40px; width: auto; max-width: none; opacity: .82; }
.hp-logos > .hp-logo--sq img { height: 64px; }
.hp-logos > .hp-logo--wide img { height: 26px; }
.hp-logos > .hp-logo--tall img { height: 56px; }
@media (prefers-reduced-motion: no-preference) {
  .hp-marquee .hp-marquee__track { animation: hp-crawl 48s linear infinite; }
  .hp-marquee:hover .hp-marquee__track { animation-play-state: paused; }
  @keyframes hp-crawl { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hp-marquee { -webkit-mask-image: none; mask-image: none; }
  .hp-marquee .hp-marquee__track { width: auto; }
  .hp-marquee .hp-logos { flex-wrap: wrap; justify-content: center; row-gap: 28px; flex: 1 1 auto; }
  .hp-marquee .hp-logos[aria-hidden] { display: none; }
}

/* ------------------------------------------------------------------ lit sections (our own light, darkened until only the spill remains) */
.hp-lit { position: relative; isolation: isolate; overflow: hidden; }
.hp-lit > .hp-light { position: absolute; inset: 0; z-index: -3; margin: 0; }
.hp-lit > .hp-light img { width: 100%; height: 100%; object-fit: cover; }
.hp-lit::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(rgba(7,9,13,.82), rgba(7,9,13,.82)); }
.hp-section { padding-block: clamp(80px, 10vw, 144px); }
.hp-section.hp-section--compact { padding-block: clamp(56px, 7vw, 96px); }
.hp-section.hp-section--flush-top { padding-top: 0; }

/* Lit: violet (Nova panel, light from the right) */
.is-style-lit-violet > .hp-light img { object-position: 50% 45%; filter: saturate(1.15); }
.is-style-lit-violet::before { background: linear-gradient(90deg, var(--night) 0%, rgba(7,9,13,.92) 38%, rgba(7,9,13,.55) 70%, rgba(7,9,13,.8) 100%), linear-gradient(to bottom, var(--night), rgba(7,9,13,0) 25%, rgba(7,9,13,0) 75%, var(--night)); }
/* Lit: bulb (light from the left, copy on the right) */
.is-style-lit-bulb > .hp-light img { object-position: 62% 50%; }
.is-style-lit-bulb::before { background: linear-gradient(90deg, rgba(7,9,13,.55) 0%, rgba(7,9,13,.9) 55%, var(--night) 100%), linear-gradient(to bottom, var(--night), rgba(7,9,13,0) 22%, rgba(7,9,13,0) 78%, var(--night)); }
/* Lit: 600D (soft light from the left) */
.is-style-lit-600d > .hp-light img { object-position: 30% 50%; }
.is-style-lit-600d::before { background: linear-gradient(90deg, rgba(7,9,13,.6) 0%, rgba(7,9,13,.92) 45%, var(--night) 100%), linear-gradient(to bottom, var(--night), rgba(7,9,13,0) 25%); }
.is-style-paper-band { background: var(--paper); color: var(--ink-on-paper); }
.is-style-night { background: var(--night); }

/* ------------------------------------------------------------------ story + proof points */
.hp-story .hp-story__head { max-width: 15ch; }
.hp-story .hp-intro { margin-top: 24px; max-width: 34em; font-size: var(--step-1); line-height: 1.5; }
.hp-proof.hp-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(48px, 6vw, 80px); }
.hp-proof > .hp-proof__item { border-top: 2px solid var(--tungsten); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.hp-proof__item h3 { font-size: var(--step-2); line-height: 1.05; }
.hp-proof__item p { color: rgba(241,237,229,.78); }

/* ------------------------------------------------------------------ services row */
.hp-svc-head.hp-svc-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.hp-svc-head > h2 { grid-column: 1 / span 6; }
.hp-svc-head > p { grid-column: 8 / span 5; color: var(--muted); }
.hp-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hp-services > .hp-service { padding: 28px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.hp-services > .hp-service + .hp-service { border-left: 1px solid var(--line); padding-left: 28px; }
.hp-service h3 { font-size: 1.7rem; }
.hp-service h3 a { text-decoration: none; }
.hp-service h3 a:hover { color: var(--tungsten); }
.hp-service p { color: var(--muted); font-size: .98rem; }

/* ------------------------------------------------------------------ website work: project frames */
.hp-services-sec + .hp-work.hp-section { padding-top: 0; }   /* concept: work follows the services row directly */
.hp-work-head.hp-work-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.hp-work-head > p { color: var(--muted); max-width: 30em; }
.hp-frames { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.hp-frames > .hp-frame:first-child { grid-row: span 2; }
.hp-frames.is-index { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
.hp-frames.is-index > .hp-frame:first-child, .hp-frames.is-index > .hp-frame.is-tile { grid-row: auto; grid-column: 1 / -1; }
.hp-frames.is-index > .hp-frame.is-tile > .hp-shot { min-height: 0; padding: clamp(32px, 5vw, 56px); }
.hp-frame { position: relative; background: var(--night-2); border: 1px solid var(--line); display: grid; grid-template-rows: 1fr auto; min-width: 0; overflow: hidden; }
.hp-frame > .hp-shot { position: relative; display: grid; place-items: center; padding: 14% 12%; min-height: 220px; background: radial-gradient(120% 90% at 50% 0%, rgba(241,237,229,.06), transparent 60%); }
.hp-frames > .hp-frame:first-child > .hp-shot { padding: 18% 12%; }
.hp-frame > .hp-shot.is-paper { background: var(--paper); }
.hp-shot > .hp-shot__logo { margin: 0; }
.hp-shot > .hp-shot__logo img { max-height: 140px; width: auto; }
.hp-frames > .hp-frame:first-child .hp-shot__logo img { max-height: 170px; }
/* Screenshot in a CSS device frame (browser bar) */
.hp-frame > .hp-shot.is-screen { padding: clamp(20px, 4%, 48px) clamp(20px, 6%, 72px) 0; place-items: end center; align-content: end; overflow: hidden; }
.hp-frame > .hp-shot.is-screen > .hp-device { max-width: 820px; }
.hp-device { position: relative; margin: 0; width: 100%; background: #11151c; border: 1px solid rgba(241,237,229,.16); border-bottom: 0; border-radius: 10px 10px 0 0; padding-top: 26px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); overflow: hidden; }
.hp-device::before { content: ""; position: absolute; top: 9px; left: 12px; width: 44px; height: 8px;
  background: radial-gradient(circle 4px at 4px 4px, rgba(241,237,229,.35) 98%, transparent) 0 0 / 16px 8px repeat-x; }
.hp-device img { width: 100%; height: auto; display: block; }
.hp-device.hp-device--phone { width: min(100%, 300px); border: 1px solid rgba(241,237,229,.22); border-radius: 30px; padding: 10px; background: #0b0e13; }
.hp-device.hp-device--phone::before { display: none; }
.hp-device.hp-device--phone img { border-radius: 22px; }
.hp-frame > .hp-cap { padding: 22px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.hp-cap > .hp-cap-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hp-cap h3 { font-size: 1.9rem; }
.hp-cap h3 a { text-decoration: none; }
.hp-cap h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole frame is the link */
.hp-cap p { color: var(--muted); font-size: .98rem; }
.hp-frame:hover h3, .hp-frame:focus-within h3 { color: var(--tungsten); }
.hp-frame:focus-within { outline: 2px solid var(--tungsten); outline-offset: 3px; }
.hp-frame :focus-visible { outline: none; }
.hp-status.hp-status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); color: var(--muted); white-space: nowrap; }
.hp-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.hp-status.is-live::before { background: var(--ok); }
.hp-status.is-pre::before { background: var(--tungsten); }

/* ------------------------------------------------------------------ Command Post */
.hp-cp-grid.hp-cp-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.hp-cp-grid > .hp-cp-copy { grid-column: 7 / span 6; display: grid; gap: 22px; }
.hp-cp-copy > .hp-cp-sig { width: min(300px, 70%); }
.hp-cp-copy .hp-lede { font-size: var(--step-1); line-height: 1.5; }
.hp-verbs.hp-verbs { display: grid; margin-top: 4px; }
.hp-verbs > .hp-verb { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.hp-verbs > .hp-verb:last-child { border-bottom: 1px solid var(--line); }
.hp-verb h3 { font-size: 1.5rem; line-height: 1.1; color: var(--paper); }
.hp-verb p { color: rgba(241,237,229,.78); }
.hp-cp-grid > .hp-cp-screen { grid-column: 1 / span 5; align-self: center; aspect-ratio: 4 / 5; display: grid; place-items: center; align-content: center; gap: 14px; min-height: 360px; border: 1px solid rgba(110,160,255,.25); background: rgba(10,18,36,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 32px; text-align: center; }
.hp-cp-screen > .hp-cp-screen__mark img { width: 88px; }
.hp-cp-screen > .hp-device { align-self: stretch; }
.hp-cp-screen p { color: var(--muted); font-size: var(--step--1); max-width: 22em; }

/* ------------------------------------------------------------------ contact + form (Contact Form 7) */
.hp-contact-grid.hp-contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.hp-contact-grid > .hp-contact-intro { grid-column: 1 / span 5; display: grid; gap: 20px; align-content: start; }
.hp-contact-intro p { font-size: var(--step-1); line-height: 1.5; color: rgba(241,237,229,.85); }
.hp-contact-grid > .hp-form { grid-column: 7 / span 6; min-width: 0; }
.hp-form .wpcf7-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; }
.hp-form .hidden-fields-container { display: none; }
.hp-form .hp-field { display: grid; gap: 6px; min-width: 0; }
.hp-form .hp-field.is-full, .hp-form .hp-form-actions, .hp-form .wpcf7-response-output { grid-column: 1 / -1; }
.hp-form label { font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.hp-form .wpcf7-form-control-wrap { display: block; }
.hp-form .hp-field :is(input, select, textarea) { width: 100%; background: rgba(13,17,23,.85); color: var(--paper); border: 1px solid rgba(241,237,229,.2); border-radius: 0; font: inherit; font-size: var(--step-0); padding: 12px 14px; min-height: 50px; margin: 0; }
.hp-form .hp-field textarea { min-height: 140px; height: 160px; resize: vertical; }
.hp-form .hp-field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.hp-form .hp-field :is(input, select, textarea):focus { outline: none; border-color: var(--tungsten); box-shadow: 0 0 0 1px var(--tungsten); background-color: rgba(13,17,23,.95); color: var(--paper); }
.hp-form .hp-form-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hp-form .wpcf7-spinner { margin: 0; }
.hp-form .wpcf7-not-valid-tip { color: #f2b6ad; font-size: var(--step--1); margin-top: 6px; }
body .hp-form .wpcf7 form .wpcf7-response-output { margin: 0; padding: 0; border: 0; font-size: var(--step--1); min-height: 1.5em; color: var(--ok); }
body .hp-form .wpcf7 form:is(.invalid, .unaccepted, .payment-required, .failed, .aborted, .spam) .wpcf7-response-output { color: #f2b6ad; }

/* ------------------------------------------------------------------ inner pages */
.hp-page-hero { min-height: clamp(380px, 56vh, 600px); display: grid; align-items: end; }
.hp-page-hero > .hp-wrap { padding-block: calc(var(--header-h) + clamp(48px, 7vw, 96px)) clamp(44px, 6vw, 72px); display: grid; gap: 20px; justify-items: start; }
.hp-page-hero.hp-lit::before { background: linear-gradient(to top, var(--night) 0%, rgba(7,9,13,.82) 35%, rgba(7,9,13,.55) 100%), linear-gradient(to right, rgba(7,9,13,.75) 0%, rgba(7,9,13,.15) 70%); }
.hp-page-hero h1 { max-width: 16ch; text-shadow: 0 2px 40px rgba(0,0,0,.45); }
.hp-page-hero .hp-page-hero__line { max-width: 36em; font-size: var(--step-1); line-height: 1.5; color: rgba(241,237,229,.9); }
.hp-page-hero .hp-case-logo { margin: 8px 0 0; }
.hp-page-hero .hp-case-logo img { max-height: 64px; width: auto; }
.hp-page-hero .hp-case-logo.is-paper { background: var(--paper); padding: 12px 16px; }
.hp-page-hero .hp-case-logo.hp-cp-hero-sig img { max-height: none; width: min(300px, 64vw); }
.hp-legal.hp-legal { max-width: 46rem; }
.hp-legal > h3 { margin-top: 18px; }

/* Two-column text section: heading left, copy right */
.hp-split.hp-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: clamp(28px, 3vw, 40px); }
.hp-split > .hp-split__head { grid-column: 1 / span 5; display: grid; gap: 14px; align-content: start; }
.hp-split > .hp-split__body { grid-column: 7 / span 6; }
.hp-prose.hp-prose { display: grid; gap: 18px; color: rgba(241,237,229,.86); }
.hp-prose > h3 { font-size: var(--step-1); line-height: 1.15; color: var(--paper); margin-top: 10px; }
.hp-prose a { color: var(--tungsten); }
.hp-prose > .hp-actions { margin-top: 8px; }
.hp-lede.hp-lede { font-size: var(--step-1); line-height: 1.5; color: var(--paper); }
.hp-checklist.hp-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hp-checklist > li { position: relative; padding-left: 24px; }
.hp-checklist > li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 2px; background: var(--tungsten); }
.hp-section > .hp-wrap > .hp-split + .hp-split { margin-top: clamp(56px, 7vw, 96px); }

/* Portrait (About) */
.hp-portrait.hp-portrait { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); }
.hp-portrait.hp-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 30%; }

/* Case study screenshots */
.hp-case-shots.hp-case-shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: clamp(20px, 3vw, 40px); align-items: end; }
.hp-case-shots > .hp-device { border-bottom: 1px solid rgba(241,237,229,.16); border-radius: 10px; }
.hp-case-shots > .hp-device--phone { justify-self: center; }

/* Next project */
.hp-next.hp-next { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: clamp(28px, 3vw, 40px); }
.hp-next h2 a { text-decoration: none; }
.hp-next h2 a:hover { color: var(--tungsten); }

/* Closing CTA band */
.hp-cta > .hp-wrap { display: grid; gap: 22px; justify-items: start; }
.hp-cta h2 { max-width: 14ch; }
.hp-cta .hp-cta__line { max-width: 34em; font-size: var(--step-1); line-height: 1.5; color: rgba(241,237,229,.85); }
.hp-cta .hp-actions { margin-top: 8px; }

/* Plain WordPress text (Privacy Policy and anything typed into a page without a section) */
.hp-main > :is(p, h2, h3, h4, ul, ol) { max-width: 46rem; margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.hp-main > :is(h2, h3, h4) { margin-top: 2em; margin-bottom: .5em; }
.hp-main > p, .hp-main > :is(ul, ol) { margin-bottom: 1.1em; color: rgba(241,237,229,.86); }

/* ------------------------------------------------------------------ footer */
.hp-footer { padding-block: 44px 36px; border-top: 1px solid var(--line); background: var(--night); color: var(--paper); }
.hp-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.hp-footer__mark img { width: 40px; }
.hp-footer .hp-foot-nav, .hp-footer .hp-foot-social { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; font-size: var(--step--1); }
.hp-footer .hp-foot-nav a, .hp-footer .hp-foot-social a { color: var(--muted); text-decoration: none; }
.hp-footer .hp-foot-nav a:hover, .hp-footer .hp-foot-social a:hover { color: var(--paper); }
.hp-footer .hp-foot-legal { width: 100%; margin: 0; font-size: var(--step--1); color: var(--muted); }
body.hp-site .site-footer { background: none; padding: 0; }

/* Non-page views (404, search): keep them readable inside GeneratePress's layout */
body.hp-site:not(.hp-layout) .site-content { max-width: var(--max); margin-inline: auto; padding: calc(var(--header-h) + 64px) var(--gutter) 96px; }
body.hp-site:not(.hp-layout) .inside-article, body.hp-site:not(.hp-layout) .page-header, body.hp-site:not(.hp-layout) .widget { background: none; color: var(--paper); padding: 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .hp-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-services > .hp-service:nth-child(3) { border-left: 0; padding-left: 0; }
  .hp-services > .hp-service:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hp-svc-head.hp-svc-head, .hp-cp-grid.hp-cp-grid, .hp-contact-grid.hp-contact-grid, .hp-split.hp-split { grid-template-columns: minmax(0, 1fr); }
  .hp-svc-head.hp-svc-head > *, .hp-cp-grid > .hp-cp-copy, .hp-cp-grid > .hp-cp-screen, .hp-contact-grid > .hp-contact-intro, .hp-contact-grid > .hp-form,
  .hp-split > .hp-split__head, .hp-split > .hp-split__body { grid-column: 1 / -1; }
  .hp-cp-grid > .hp-cp-screen { min-height: 240px; order: 2; }
  .hp-frames, .hp-frames.is-index { grid-template-columns: minmax(0, 1fr); }
  .hp-frames > .hp-frame:first-child { grid-row: auto; }
  .hp-proof.hp-proof { grid-template-columns: minmax(0, 1fr); }
  .is-style-lit-bulb::before { background: linear-gradient(to bottom, var(--night), rgba(7,9,13,.55) 20%, rgba(7,9,13,.9) 60%, var(--night)); }
  .hp-case-shots.hp-case-shots { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .hp-header .hp-menu-toggle { display: inline-flex; align-items: center; }
  .hp-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--night); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .hp-nav[hidden] { display: none !important; }
  .hp-nav .hp-nav__list { flex-direction: column; gap: 0; }
  .hp-nav .hp-nav__list a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: var(--step-0); }
  .hp-nav .hp-btn { margin-top: 20px; min-height: 50px; font-size: var(--step-0); }
  .hp-brand img { width: 160px; }
  .hp-brands > .hp-wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hp-brands .hp-brands__title { max-width: none; }
}
@media (min-width: 821px) { .hp-nav[hidden] { display: flex !important; } }
@media (max-width: 782px) { .admin-bar .hp-header { top: 46px; } }
@media (max-width: 600px) {
  .admin-bar .hp-header { position: absolute; }
  .hp-hero { min-height: 0; }
  .hp-hero > .hp-hero-photo { position: relative; inset: auto; height: 62vh; min-height: 380px; }
  .hp-hero > .hp-hero-photo img { object-position: 44% 40%; }
  .hp-hero::before { background: linear-gradient(to top, var(--night) 0%, var(--night) 34%, rgba(7,9,13,.4) 55%, rgba(7,9,13,0) 75%); }
  .hp-hero > .hp-wrap { padding-block: 0 40px; margin-top: -120px; position: relative; }
  .hp-services { grid-template-columns: minmax(0, 1fr); }
  .hp-services > .hp-service, .hp-services > .hp-service + .hp-service { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .hp-services > .hp-service:first-child { border-top: 0; }
  .hp-verbs > .hp-verb { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hp-form .wpcf7-form { grid-template-columns: minmax(0, 1fr); }
}
