@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-italic-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-italic-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-normal-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-normal-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* Shared palette, foundation, and compatibility aliases for migrated tools. */
:root {
  color-scheme: dark;
  --bg: #0c1009;
  --ink: #f4f5ec;
  --muted: #b4bca7;
  --accent: #95bf47;
  --line: #374229;
  --button: #95bf47;
  --surface: #191b19;
  --tile: #354226;
  --deep: #1a2313;
  --star: #e7edce;
  --button-ink: #101807;
  --button-hover: #aed464;
  --button-pressed: #85ad3e;
  --tile-border: #839d5166;
  --strong-border: #627d3d;
  --glow-shadow: rgba(127, 160, 66, 0.12);
  --light: rgba(127, 160, 66, 0.19);
  --light-dim: rgba(127, 160, 66, 0.07);
  --orbit: #95bf4720;
  --edge: #95bf4729;
  --color-bg: var(--bg);
  --color-bg-card: var(--surface);
  --color-bg-card-hover: #22281e;
  --color-text: var(--ink);
  --color-text-body: var(--ink);
  --color-text-secondary: var(--muted);
  --color-text-muted: var(--muted);
  --color-green: var(--accent);
  --color-green-bright: #aed464;
  --color-green-glow: var(--glow-shadow);
  --color-green-dim: #95bf4714;
  --color-cyan: var(--accent);
  --color-cyan-dim: #95bf4714;
  --color-cyan-glow: var(--glow-shadow);
  --color-teal: var(--accent);
  --color-amber: #e2b764;
  --color-amber-dim: #e2b76414;
  --color-border: #ffffff1a;
  --font-display: var(--font);
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 600;
  --fw-extrabold: 600;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --container-max: 1100px;
  --container-padding: 20px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
[hidden] {
  display: none;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.skip {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 200;
  background: var(--accent);
  color: var(--bg);
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.space {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background-image: url("/assets/site/stars.svg");
  background-size: 1440px 1000px;
}
.space__light {
  position: absolute;
  top: -100px;
  right: -400px;
  width: 1050px;
  height: 1000px;
  background: radial-gradient(
    ellipse,
    var(--light),
    var(--light-dim) 42%,
    transparent 68%
  );
  opacity: 0.55;
}
.header,
.hero,
.site-footer {
  width: min(1250px, calc(100% - 40px));
  margin-inline: auto;
}
.container {
  width: min(var(--container-max), 100%);
  margin-inline: auto;
}
main {
  flex: 1;
  min-width: 0;
}
.content-page {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 56px 80px;
}
.header {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 12px 4px;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}
.brand__image {
  width: 160px;
  height: auto;
}
.header nav {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  gap: 16px;
}
.header nav a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.header nav a:hover,
.header nav [aria-current] {
  color: var(--accent);
}
.header .nav-call {
  padding-inline: 13px;
  border: 1px solid #95bf4759;
  border-radius: 7px;
  background: #95bf470f;
  color: var(--ink);
}
.header .nav-call:hover {
  background: #95bf471f;
  border-color: #95bf4780;
}
.nav-call svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.site-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 28px;
  padding-block: 14px;
  border-top: 1px solid #ffffff17;
  color: #a4aaa0;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer a:hover {
  color: var(--ink);
}
.hero-screen {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
@media (min-width: 480px) {
  .header {
    flex-wrap: nowrap;
    padding-block: 0;
  }
  .header nav {
    width: auto;
    gap: 22px;
  }
}
@media (min-width: 650px) {
  :root {
    --container-padding: 40px;
  }
  .header,
  .hero,
  .site-footer {
    width: min(1250px, calc(100% - 80px));
  }
  .header {
    min-height: 100px;
  }
  .brand__image {
    width: 215px;
  }
  .header nav {
    gap: 28px;
  }
  .header .nav-call {
    padding-inline: 16px;
  }
  .content-page {
    width: min(1100px, calc(100% - 80px));
    padding-block: 80px 100px;
  }
}
@media (min-width: 1100px) {
  .header {
    margin-top: 14px;
    min-height: 86px;
  }
  .brand__image {
    width: 240px;
  }
  .header nav {
    gap: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tool {
    animation: none;
  }
}

/* Reusable actions, fields, cards, and notices. */
.button,
.btn,
.guide-optin__submit,
.lp-card__cta,
.cert-actions__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-height: 52px;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--accent);
  color: var(--button-ink);
  font-size: var(--type-ui);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
.button:hover,
.btn:hover,
.guide-optin__submit:hover,
.lp-card__cta:hover {
  background: var(--button-hover);
  box-shadow: 0 6px 30px var(--glow-shadow);
}
.button svg {
  width: 20px;
  height: 20px;
}
.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.results-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
}
.results-link svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.results-link:hover {
  color: var(--accent);
}
.form {
  display: grid;
  gap: 20px;
}
.form__group {
  min-width: 0;
}
.form__label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--type-small);
  font-weight: 600;
}
.form__optional {
  color: var(--muted);
  font-weight: 400;
}
input:not([type="hidden"]):not([type="range"]):not([type="checkbox"]):not(
    [type="radio"]
  ),
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #58624f;
  border-radius: 7px;
  background: var(--bg);
  color: var(--ink);
  font-size: max(1rem, var(--type-body));
  line-height: 1.5;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #a3ad98;
}
label {
  cursor: pointer;
}
.form__hint,
.form__note {
  font-size: var(--type-small);
  color: var(--muted);
}
input[type="checkbox"],
input[type="radio"],
input[type="range"] {
  accent-color: var(--accent);
}
.notice,
.content-cta {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.content-cta {
  margin-top: 48px;
}
.content-cta p {
  margin-block: 16px 24px;
}
.eyebrow {
  font-size: var(--type-caption);
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (min-width: 1100px) {
  .button,
  .btn {
    padding: 17px 26px;
    gap: 30px;
  }
}

.hero {
  width: min(1250px, calc(100% - 40px));
  margin-inline: auto;
}
.hero {
  display: grid;
  align-items: center;
  padding-top: 40px;
  gap: 20px;
  flex: 1;
}
.hero__copy {
  position: relative;
  z-index: 3;
}
.hero h1 {
  font-size: clamp(36px, 8.7vw, 64px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero h1 span {
  color: var(--accent);
  white-space: nowrap;
}
/* Second headline line ("as a Shopify AI Dev") stays white, not accent. */
.hero h1 .hero__line2 {
  color: var(--ink);
  white-space: normal;
}
.hero__copy > p {
  max-width: 490px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 24px;
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 25px;
  margin-top: 28px;
}
.hero__visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  height: 390px;
  min-width: 0;
}
.portrait {
  position: absolute;
  width: 94%;
  height: 92%;
  max-width: none;
  object-fit: contain;
  object-position: bottom;
  bottom: 0;
  left: 3%;
  z-index: 2;
  mask-image: linear-gradient(to bottom, #000 0%, #000 73%, transparent 99%);
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 73%,
    transparent 99%
  );
}
.orbit {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 32%;
  height: 42%;
  border: 1px solid #b5e58416;
  border-radius: 50%;
  transform: rotate(-24deg);
  z-index: 1;
}
.tool {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: drift var(--duration, 6s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.tool__face {
  width: 62px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #2a392b, #152019 64%);
  border: 1px solid #687e5866;
  box-shadow:
    inset 1px 1px 0 #c2d6b029,
    inset -2px -3px 0 #03090688,
    5px 13px 28px #0005;
  transform: rotate(var(--tilt, 0deg));
  color: var(--accent);
}
.tool__face > svg {
  width: 32px;
  height: 32px;
  stroke: none;
}
.tool > span {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #adc0ad;
}
.tool--shopify {
  top: 7%;
  right: 3%;
  --tilt: 12deg;
  --duration: 5.7s;
  --delay: -2s;
}
.tool--claude {
  top: 17%;
  left: 0;
  --tilt: -13deg;
  --duration: 6.5s;
  --delay: -1s;
}
.tool--terminal {
  top: 59%;
  right: -1%;
  --tilt: 9deg;
  --duration: 7s;
  --delay: -3s;
}
.tool--liquid {
  top: 66%;
  left: 0;
  --tilt: -9deg;
  --duration: 5.3s;
  --delay: -2s;
}
.tool--liquid .tool__face > span {
  font:
    500 24px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: -2px;
}
.motion-paused .tool {
  animation-play-state: paused;
}
@keyframes drift {
  from {
    transform: translateY(0) rotate(-1deg);
  }
  to {
    transform: translateY(-12px) rotate(1deg);
  }
}
@media (min-width: 650px) {
  .hero {
    width: min(1250px, calc(100% - 80px));
  }
  .hero {
    grid-template-columns: 1.1fr 1fr;
    gap: 15px;
    padding-top: 20px;
  }
  .hero h1 {
    font-size: clamp(39px, 5.2vw, 72px);
  }
  .hero__copy > p {
    font-size: 15px;
  }
  .hero__actions {
    gap: 14px 20px;
  }
  .hero__visual {
    height: 460px;
  }
  .portrait {
    height: 100%;
    width: 115%;
    left: -7.5%;
  }
  .tool__face {
    width: 64px;
    height: 67px;
  }
  .tool--shopify {
    top: 8%;
    right: 0;
  }
  .tool--claude {
    top: 23%;
    left: -1%;
  }
  .tool--terminal {
    right: -4%;
    top: 58%;
  }
  .tool--liquid {
    top: 68%;
    left: 1%;
  }
}
@media (min-width: 1100px) {
  .hero {
    grid-template-columns: 1.15fr 1fr;
    gap: 8px;
    padding-block: 45px 35px;
    min-height: 650px;
  }
  .hero h1 {
    font-size: clamp(66px, 5.2vw, 78px);
    line-height: 1.12;
    letter-spacing: -0.045em;
  }
  .hero__copy > p {
    font-size: 17px;
    max-width: 470px;
    margin-top: 28px;
  }
  .hero__actions {
    margin-top: 35px;
    gap: 30px;
  }
  .hero__visual {
    height: 570px;
    max-width: none;
  }
  .portrait {
    width: 118%;
    height: 107%;
    left: -9%;
    bottom: -5%;
  }
  .tool__face {
    width: 80px;
    height: 84px;
    border-radius: 19px;
  }
  .tool__face > svg {
    width: 40px;
    height: 40px;
  }
  .tool > span {
    font-size: 11px;
  }
  .tool--liquid .tool__face > span {
    font-size: 29px;
  }
  .tool--shopify {
    top: 3%;
    right: 6%;
    --tilt: 14deg;
  }
  .tool--claude {
    top: 24%;
    left: -1%;
  }
  .tool--terminal {
    top: 57%;
    right: -4%;
    --tilt: 12deg;
  }
  .tool--liquid {
    top: 71%;
    left: 4%;
  }
  .orbit {
    left: 0;
    right: 0;
    top: 28%;
    height: 45%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tool {
    animation: none;
    will-change: auto;
  }
}
.tool--shopify .tool__face {
  background: linear-gradient(145deg, #34472b, #192719 64%);
  border-color: #8fa76777;
}
.tool--code {
  top: 65%;
  right: -1%;
  --duration: 7s;
  --delay: -3s;
  align-items: flex-start;
}
.code-card {
  min-width: 155px;
  padding: 12px 14px 15px;
  background: linear-gradient(145deg, #1c2a21, #101b15);
  border: 1px solid #4b6549;
  border-radius: 10px;
  box-shadow: 5px 13px 28px #0004;
  transform: rotate(5deg);
}
.code-card__file {
  display: flex;
  align-items: center;
  gap: 7px;
  font:
    400 10px ui-monospace,
    SFMono-Regular,
    monospace;
  color: #c1d1bb;
  margin-bottom: 12px;
}
.code-card__dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.code-card code {
  white-space: nowrap;
  color: #e0eadb;
  font:
    400 11px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: -0.2px;
}
.code-card code span {
  color: var(--accent);
}
@media (min-width: 650px) {
  .tool--code {
    top: 65%;
    right: -5%;
  }
  .code-card {
    min-width: 160px;
  }
}
@media (min-width: 1100px) {
  .tool--code {
    top: 64%;
    right: -3%;
  }
  .code-card {
    min-width: 205px;
    padding: 16px 19px 19px;
    border-radius: 12px;
  }
  .code-card__file {
    font-size: 11px;
    margin-bottom: 15px;
  }
  .code-card code {
    font-size: 13px;
  }
}
/* Branded floating tiles and a simple illustrative client card. */
.tool__face .tool__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.tool--shopify .tool__face,
.tool--claude .tool__face {
  transform: rotate(var(--tilt, 0deg));
}
.tool--claude {
  top: 16%;
  left: 0;
}
.tool--client {
  top: 67%;
  left: 1%;
  --duration: 5.3s;
  --delay: -2s;
  --tilt: -8deg;
}
.tool__face .briefcase-icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool--project {
  top: 66%;
  right: 0;
  --duration: 7s;
  --delay: -3s;
  align-items: flex-start;
}
.project-card {
  width: 208px;
  padding: 14px 16px;
  background: linear-gradient(145deg, var(--surface), var(--deep));
  border: 1px solid var(--strong-border);
  border-radius: 10px;
  box-shadow: 5px 13px 28px #0004;
  transform: rotate(5deg);
}
.project-card__heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font:
    400 10px/1.5 ui-monospace,
    SFMono-Regular,
    monospace;
  color: var(--muted);
  white-space: nowrap;
}
.project-card__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.project-card .project-card__amount {
  font:
    500 21px/1.3 ui-monospace,
    SFMono-Regular,
    monospace;
  color: var(--ink);
  margin-top: 10px;
  letter-spacing: -0.035em;
}
@media (min-width: 650px) {
  .tool--claude {
    top: 17%;
    left: -1%;
  }
  .tool--client {
    top: 69%;
    left: 1%;
  }
  .tool--project {
    top: 66%;
    right: -3%;
  }
}
@media (min-width: 1100px) {
  .tool__face .tool__logo {
    width: 43px;
    height: 43px;
  }
  .tool__face .briefcase-icon {
    width: 40px;
    height: 40px;
  }
  .tool--claude {
    top: 17%;
    left: -1%;
  }
  .tool--client {
    top: 71%;
    left: 4%;
  }
  .tool--project {
    top: 64%;
    right: -3%;
  }
  .project-card {
    width: 240px;
    padding: 16px 19px 19px;
    border-radius: 12px;
  }
  .project-card__heading {
    font-size: 11px;
    gap: 8px;
  }
  .project-card .project-card__amount {
    font-size: 24px;
    margin-top: 12px;
  }
}

/* Keep each label at the same angle as its icon tile. */
.tool > span {
  transform: rotate(var(--tilt, 0deg));
}

/* Rotate each branded icon and its centered caption as one unit. */
.tool__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: rotate(var(--tilt, 0deg));
  transform-origin: center 42px;
}
.tool__content .tool__face {
  transform: none;
}
.tool__content > span {
  width: 100%;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
@media (min-width: 1100px) {
  .tool__content > span {
    font-size: 11px;
  }
}

/* Larger type for the shorter headline; natural wrapping on phones. */
.hero h1 {
  font-size: clamp(30px, 7.6vw, 60px);
  text-wrap: initial;
}
@media (min-width: 650px) {
  .hero h1 {
    font-size: clamp(30px, 4.3vw, 56px);
  }
}
@media (min-width: 1100px) {
  .hero h1 {
    font-size: clamp(50px, 4.3vw, 62px);
    max-width: 620px;
  }
  .portrait {
    width: 116%;
    left: -8%;
  }
}

/* Jakarta’s normal space is .175em; add 20% only between AI and Dev. */
.hero h1 .hero__role {
  color: var(--ink);
  word-spacing: 0.035em;
}

/* Approved desktop spacing for the homepage. */
@media (min-width: 1100px) {
  /* Shorten the screen by 80px to raise its content center by roughly 40px. */
  .hero-spacing .hero-screen {
    min-height: calc(100svh - 80px);
  }
  .hero-spacing .hero {
    min-height: 620px;
    padding-block: 20px 35px;
  }
  .hero-spacing .hero__copy {
    transform: translateY(-10px);
  }
  .hero-spacing .hero__visual {
    transform: translateY(-10px) scale(1.1);
    transform-origin: center;
  }
}
/* Keep the enlarged portrait inside the available space on smaller laptops. */
@media (min-width: 1100px) and (max-width: 1349px) {
  .hero-spacing .hero__visual {
    transform-origin: right center;
  }
  .hero-spacing .portrait {
    width: 108%;
    left: -4%;
  }
}

.orbit {
  border-color: var(--orbit);
}
.tool__face {
  background: linear-gradient(145deg, var(--tile), var(--deep) 64%);
  border-color: var(--tile-border);
  box-shadow:
    inset 1px 1px 0 var(--edge),
    inset -2px -3px 0 #03090688,
    5px 13px 28px #0005;
}
.tool--shopify .tool__face {
  background: linear-gradient(145deg, var(--tile), var(--surface) 64%);
  border-color: var(--tile-border);
}
.tool > span,
.code-card__file {
  color: var(--muted);
}
.code-card {
  background: linear-gradient(145deg, var(--surface), var(--deep));
  border-color: var(--strong-border);
}
.code-card code {
  color: var(--ink);
}
.code-card code span {
  color: var(--accent);
}

/* Homepage hero photo (Photo 5). Replaces the former portrait + orbit + tool-card
   illustration. Ported from the comparison preview so it matches the approved look. */
.hero-spacing .header {
  position: relative;
  z-index: 4;
}
.hero-spacing .hero {
  position: relative;
  isolation: isolate;
}
.hero-spacing .hero__visual {
  max-width: none;
  height: clamp(300px, 80vw, 420px);
  margin: 0;
  transform: none;
  pointer-events: none;
  opacity: 0.94;
  mask-image: radial-gradient(ellipse at 60% 45%, #000 30%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 45%, #000 30%, transparent 76%);
}
.hero-spacing .home-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
@media (max-width: 649px) {
  .hero-spacing .hero { align-content: center; }
}
@media (min-width: 650px) {
  .hero-spacing .hero__visual { height: 460px; }
}
@media (min-width: 1000px) {
  .hero-spacing .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-spacing .hero__copy {
    width: min(640px, 56%);
    transform: none;
  }
  .hero-spacing .hero__visual {
    position: absolute;
    z-index: 0;
    top: 50%;
    /* Keep the photo beside the centered copy beyond the 1440px desktop layout. */
    right: calc((100% - min(100vw, 1440px)) / 2);
    width: min(1140px, 88vw);
    height: min(780px, 72svh);
    transform: translate(-10%, -50%);
    mask-image:
      linear-gradient(to right, transparent 26%, #000 58%, #000 92%, transparent),
      linear-gradient(to bottom, transparent, #000 14%, #000 72%, transparent);
    -webkit-mask-image:
      linear-gradient(to right, transparent 26%, #000 58%, #000 92%, transparent),
      linear-gradient(to bottom, transparent, #000 14%, #000 72%, transparent);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
  }
  .hero-spacing .home-photo { object-position: 72% center; }
}

/*
 * Approved site typography. Load after component/layout CSS.
 * This file owns the shared type scale and approved Home, About, and Results roles.
 * New components should reuse a role below or its --type-* token, never add a one-off size.
 */

:root {
  --font: "Open Sans", Arial, sans-serif;
  /* Fluid sizes respect the reader's base font size; ranges assume 16px. */
  --type-page: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem); /* 36–56px */
  --type-section: clamp(1.75rem, 1.375rem + 1.5vw, 2.5rem); /* 28–40px */
  --type-subheading: clamp(1.375rem, 1.25rem + 0.75vw, 1.75rem); /* 22–28px */
  --type-card: 1.25rem; /* 20px */
  --type-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); /* 16–18px */
  --type-ui: clamp(0.875rem, 0.825rem + 0.25vw, 1rem); /* 14–16px */
  --type-small: 0.875rem; /* 14px */
  --type-caption: 0.75rem; /* 12px */

  --leading-title: 1.2;
  --leading-subheading: 1.35;
  --leading-body: 1.75;
  --leading-ui: 1.5;
  --weight-body: 400;
  --weight-heading: 600;
  --tracking-heading: -0.012em;
}

body {
  font-family: var(--font);
  font-size: var(--type-body);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
}

/* Heading levels describe structure. Role classes let new components reuse the scale. */
.type-page-title,
.about-intro h1,
.reviews-intro__heading h1,
.head h1 {
  font-size: var(--type-page);
  line-height: var(--leading-title);
}
.type-section-title,
.about h2,
.reviews-with-intro .head h2,
.reviews-cta h2 {
  font-size: var(--type-section);
  line-height: var(--leading-title);
}
.type-subheading,
.story-chapter h3,
.timeline-years .story-chapter h3,
.story-year,
.booking h2 {
  font-size: var(--type-subheading);
  line-height: var(--leading-subheading);
}
.type-card-title,
.story-invitation h3,
.reviews-page .t h3,
.reviews-large-cards .t > h3 {
  font-size: var(--type-card);
  line-height: var(--leading-subheading);
}
.type-page-title,
.type-section-title,
.type-subheading,
.type-card-title,
.about-intro h1,
.about h2,
.about .section-heading__question,
.story-chapter h3,
.story-year,
.story-invitation h3,
.reviews-intro__heading h1,
.head h1,
.reviews-with-intro .head h2,
.reviews-cta h2,
.reviews-page .t h3,
.reviews-large-cards .t > h3,
.booking h2 {
  font-weight: var(--weight-heading);
  letter-spacing: var(--tracking-heading);
  word-spacing: normal;
  text-wrap: balance;
}
.reviews-page .t h3 {
  text-wrap: pretty;
}

/* All reading text shares one size and rhythm, including quotes and closing CTAs. */
.type-body,
.section-heading__description,
.about-page .member-quote blockquote,
.story-chapter__copy > p:not(.story-chapter__era),
.story-invitation p,
.purpose__copy,
.reviews-intro__heading p,
.reviews-intro__copy,
.head__description,
.reviews-cta > p:not(.reviews-eyebrow),
.booking > p {
  font-size: var(--type-body);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  letter-spacing: normal;
  word-spacing: normal;
}

/* Names, attribution, dates, and supporting notes sit one step below body copy. */
.type-small,
.about-page .member-quote figcaption,
.head__total,
.reviews-page .t > span,
.story-date-note,
.quote-placeholder-note,
.booking__notice {
  font-size: var(--type-small);
  line-height: var(--leading-ui);
  letter-spacing: normal;
}

/* UI is consistent between pages and independent of the hero display size. */
.type-ui,
.header nav a,
.button,
.results-link,
.about-results,
.story-invitation a,
.v-controls button {
  font-size: var(--type-ui);
  font-weight: var(--weight-heading);
  line-height: var(--leading-ui);
  letter-spacing: normal;
}
.header nav a {
  font-weight: 500;
}

/* Captions and compact controls: never shrink ordinary reading text to this role. */
.type-caption,
.site-footer,
.eyebrow,
.reviews-eyebrow,
.story-chapter__era,
.story-photo figcaption,
.transformation-photo figcaption,
.freemote-photo figcaption,
.mission-photo figcaption,
.rail__progress,
.wall-order,
.label,
.end,
.v-controls span,
.tag-tools #tagStatus,
.top-win-badge,
.reviews-page .t .top-win-badge {
  font-family: var(--font);
  font-size: var(--type-caption);
  line-height: var(--leading-ui);
}
.count {
  font-size: var(--type-card);
  font-weight: var(--weight-heading);
  line-height: var(--leading-title);
  letter-spacing: var(--tracking-heading);
}

/* The homepage display and illustrative artwork are deliberate exceptions. */
.hero h1 {
  font-size: clamp(28px, 7.2vw, 56px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
  word-spacing: 0.035em;
}
.hero h1 .hero__role {
  word-spacing: inherit;
}
.project-card__heading,
.project-card .project-card__amount,
.code-card__file,
.code-card code {
  font-family: var(--font);
}
.keep-word {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (min-width: 650px) {
  .hero h1 {
    font-size: clamp(27px, 3.95vw, 56px);
  }
}
@media (min-width: 1000px) {
  .about-intro {
    max-width: 1100px;
  }
  /* Preserve the intended two-line quote, but allow wrapping when text is enlarged. */
  .about-intro__line {
    display: block;
  }
}
@media (min-width: 1100px) {
  .hero h1 {
    font-size: clamp(44px, 4vw, 58px);
    max-width: 640px;
  }
}
