@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --bg: #f4efe6;
  --bg-deep: #e8dece;
  --surface: rgba(255, 250, 243, 0.78);
  --surface-strong: #fffaf2;
  --surface-dark: #171513;
  --surface-dark-2: #26211d;
  --ink: #171513;
  --muted: #62594f;
  --line: rgba(23, 21, 19, 0.11);
  --line-soft: rgba(23, 21, 19, 0.08);
  --accent: #d96b35;
  --accent-soft: #f3d8c6;
  --accent-deep: #a94717;
  --card-shadow: 0 22px 70px rgba(46, 34, 21, 0.12);
  --blur-soft: 14px;
  --blur-strong: 18px;
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --max-width: 1200px;
  --motion-fast: 180ms ease;
  --motion-reveal: 650ms ease;
  --tone-dark: linear-gradient(145deg, #1f1b18, #352c25);
  --tone-highlight: linear-gradient(145deg, rgba(243, 216, 198, 0.9), rgba(255, 248, 241, 0.92));
  --tone-warm: linear-gradient(145deg, rgba(255, 250, 242, 0.95), rgba(244, 224, 206, 0.82));
  --tone-sand: linear-gradient(145deg, rgba(249, 244, 235, 0.95), rgba(236, 229, 216, 0.88));
  --tone-cream: linear-gradient(145deg, rgba(255, 253, 248, 0.95), rgba(242, 236, 224, 0.88));
  --tone-amber: linear-gradient(145deg, rgba(250, 241, 230, 0.95), rgba(246, 221, 199, 0.86));
  --tone-rose: linear-gradient(145deg, rgba(255, 248, 242, 0.98), rgba(247, 232, 221, 0.94));
  --tone-sage: linear-gradient(145deg, rgba(244, 250, 245, 0.98), rgba(226, 239, 228, 0.95));
  --tone-sky: linear-gradient(145deg, rgba(244, 248, 252, 0.98), rgba(228, 235, 243, 0.95));
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(217, 107, 53, 0.18), transparent 22%),
    radial-gradient(circle at 80% 10%, rgba(229, 209, 171, 0.42), transparent 24%),
    linear-gradient(180deg, #f8f4ec 0%, #f0e7da 52%, #ebe0d1 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */

main {
  display: grid;
  gap: 22px;
  padding-bottom: 48px;
}

.page-shell {
  width: min(calc(100% - 36px), var(--max-width));
  margin: 0 auto;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 20px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-pill);
  background: rgba(249, 244, 235, 0.78);
  backdrop-filter: blur(var(--blur-strong));
  box-shadow: 0 12px 34px rgba(43, 33, 23, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.12);
  transform-origin: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.93rem;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-fast);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Shared Components */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 800;
  transition:
    transform var(--motion-fast),
    background var(--motion-fast),
    color var(--motion-fast),
    border-color var(--motion-fast);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--surface-dark);
  color: #f8f0e3;
}

.button-dark:hover,
.button-dark:focus-visible {
  background: var(--surface-dark-2);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f6eee1;
  backdrop-filter: blur(var(--blur-soft));
}

.button-light:hover,
.button-light:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.section {
  padding: 18px 0 0;
}

/* Shared Typography */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 124px);
  padding-top: 70px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.contact-card h2,
.about-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 {
  max-width: 10.5ch;
  font-size: clamp(3.15rem, 6vw, 5.2rem);
  line-height: 0.9;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  color: rgba(23, 21, 19, 0.58);
}

.hero-text,
.section-summary,
.case-copy p,
.app-card p,
.timeline-step p,
.about-copy p,
.contact-card p,
.service-card p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
}

.hero-text {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: 1.05rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Hero */

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.hero-meta li {
  padding: 12px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.56);
  color: #443d35;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-meta li[data-emphasis="primary"] {
  background: var(--ink);
  color: #f5eddf;
  border-color: transparent;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 28px 22px 28px 48px;
  border-radius: 42px;
  background:
    linear-gradient(150deg, rgba(255, 252, 246, 0.65), rgba(242, 226, 209, 0.92));
  box-shadow: var(--card-shadow);
}

.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.portrait-card {
  position: absolute;
  inset: 0 26px 0 0;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.portrait-badge {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(17, 16, 15, 0.62);
  backdrop-filter: blur(var(--blur-soft));
  color: #f7efe1;
}

.portrait-badge span {
  color: rgba(247, 239, 225, 0.72);
  font-size: 0.86rem;
}

.portrait-badge strong {
  font-size: 1rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: var(--radius-pill);
  background: rgba(217, 107, 53, 0.12);
  color: var(--accent-deep);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}

/* Section Chrome */

.strip {
  overflow: auto;
  padding-top: 4px;
}

.strip div {
  display: flex;
  gap: 12px;
  padding: 0;
  white-space: nowrap;
}

.strip span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.42);
  color: rgba(23, 21, 19, 0.72);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.surface-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--blur-soft));
}

.stat-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.54);
}

.stat-card[data-tone="dark"] {
  background: var(--tone-dark);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f7efe3;
}

.stat-card[data-tone="highlight"] {
  background: var(--tone-highlight);
}

.stat-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.45rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: inherit;
  opacity: 0.82;
  font-weight: 700;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px 34px;
  align-items: end;
  max-width: none;
  margin-bottom: 28px;
}

.section-head .eyebrow,
.section-head h2 {
  grid-column: 1;
}

.section-summary {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 520px;
  margin: 0;
}

.section-head h2,
.contact-card h2,
.about-copy h2 {
  font-size: clamp(2.25rem, 4.8vw, 4.3rem);
  line-height: 0.95;
}

/* Stats And Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.services .section-head .eyebrow {
  margin-top: 16px;
}

.service-card {
  min-height: 228px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 16px 40px rgba(55, 39, 23, 0.06);
}

.service-card[data-tone="warm"],
.timeline-step[data-tone="warm"],
.about-panel[data-tone="warm"] {
  background: var(--tone-warm);
}

.service-card[data-tone="sand"],
.timeline-step[data-tone="sand"] {
  background: var(--tone-sand);
}

.service-card[data-tone="cream"],
.timeline-step[data-tone="cream"] {
  background: var(--tone-cream);
}

.service-card[data-tone="amber"],
.timeline-step[data-tone="amber"] {
  background: var(--tone-amber);
}

.service-card h3,
.case-copy h3,
.app-card h3,
.timeline-step h3 {
  margin: 20px 0 10px;
  font-size: 1.36rem;
  letter-spacing: -0.03em;
}

/* Work */

.work {
  margin-top: 10px;
  padding: 46px;
  border-radius: 46px;
  background:
    radial-gradient(circle at top right, rgba(217, 107, 53, 0.22), transparent 30%),
    radial-gradient(circle at 15% 100%, rgba(217, 107, 53, 0.1), transparent 26%),
    linear-gradient(180deg, #141210 0%, #1d1916 100%);
  box-shadow: var(--card-shadow);
}

.work .section-head .eyebrow {
  color: #ffb98e;
}

.work .section-head h2,
.work .section-summary {
  color: #f5ede0;
}

.work .section-summary {
  opacity: 0.78;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.case-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 251, 244, 0.98), rgba(244, 231, 216, 0.94));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.16);
}

.case-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.case-copy-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  width: 100%;
}

.case-tag {
  margin: 0;
  color: rgba(66, 59, 52, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-status,
.app-platform {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(217, 107, 53, 0.1);
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-feature h3 {
  margin: 22px 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.96;
}

.case-lead {
  max-width: 34rem;
  margin: 0;
  color: #4b443d;
  font-size: 1.08rem;
}

.case-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.case-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.62);
  color: #3f3932;
  font-weight: 700;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 800;
  transition:
    transform var(--motion-fast),
    background var(--motion-fast),
    color var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast);
}

.arrow-link::after {
  content: "->";
  font-size: var(--arrow-size, 0.95rem);
}

.arrow-link:hover,
.arrow-link:focus-visible {
  transform: translateY(-2px);
}

.arrow-link--dark {
  min-height: 52px;
  padding: 0 22px;
  background: var(--ink);
  color: #f8efe2;
  box-shadow: 0 14px 28px rgba(35, 27, 18, 0.14);
}

.arrow-link--dark:hover,
.arrow-link--dark:focus-visible {
  background: #2a2420;
  box-shadow: 0 18px 34px rgba(35, 27, 18, 0.18);
}

.arrow-link--soft {
  min-height: 42px;
  padding: 0 16px;
  border-color: rgba(23, 21, 19, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --arrow-size: 0.9rem;
}

.arrow-link--soft:hover,
.arrow-link--soft:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(23, 21, 19, 0.16);
  box-shadow: 0 12px 22px rgba(44, 31, 18, 0.08);
}

.case-link {
  margin-top: auto;
}

.case-proof {
  display: grid;
  gap: 16px;
  align-content: stretch;
}

.proof-card {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(44, 31, 18, 0.06);
}

.proof-card-highlight {
  background: linear-gradient(150deg, #1f1b18, #342922);
  border-color: rgba(255, 255, 255, 0.06);
}

.proof-card span,
.about-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-card strong,
.about-panel strong {
  font-size: 1.06rem;
  line-height: 1.55;
}

.proof-card p {
  margin: 10px 0 0;
  color: #5d554c;
  line-height: 1.65;
}

.proof-card-highlight span,
.proof-card-highlight strong,
.proof-card-highlight p {
  color: #f7eee1;
}

.proof-card-highlight span {
  opacity: 0.72;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.app-card[data-tone="rose"] {
  background: var(--tone-rose);
}

.app-card[data-tone="sage"] {
  background: var(--tone-sage);
}

.app-card[data-tone="sky"] {
  background: var(--tone-sky);
}

.app-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-card img {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
}

.app-card-meta {
  min-width: 0;
}

.app-card-meta .case-tag {
  margin-bottom: 8px;
}

.app-card h3 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1;
}

.app-summary {
  margin: 22px 0 0;
  color: #4f4841;
  line-height: 1.72;
}

.app-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
}

/* Process */

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: start;
}

.process .section-head {
  display: block;
  min-width: 0;
  margin-bottom: 0;
}

.process .section-head h2 {
  max-width: 10.5ch;
  font-size: clamp(2.55rem, 4vw, 4.15rem);
  line-height: 0.95;
}

.process .section-summary {
  display: none;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.timeline-step {
  min-height: 210px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.5);
}

/* About */

.about {
  padding: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 40px;
  background:
    radial-gradient(circle at top left, rgba(217, 107, 53, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.84), rgba(248, 241, 232, 0.8));
  box-shadow: 0 18px 40px rgba(46, 33, 20, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 28px;
  align-items: start;
}

.about-copy p + p {
  margin-top: 18px;
}

.about-panels {
  display: grid;
  gap: 16px;
}

.about-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.6);
}

/* Contact And Footer */

.contact-card {
  padding: clamp(30px, 5vw, 56px);
  border-radius: 38px;
  background:
    radial-gradient(circle at top left, rgba(217, 107, 53, 0.34), transparent 30%),
    linear-gradient(140deg, rgba(17, 16, 14, 0.98), rgba(45, 38, 31, 0.96));
  color: #f6eee1;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.contact-card p {
  max-width: 680px;
  color: rgba(246, 238, 225, 0.78);
}

.contact-actions .button {
  min-width: 0;
}

.contact-card .eyebrow {
  color: #ffb88b;
}

.site-footer {
  padding: 18px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.footer-block {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  background: rgba(255, 250, 244, 0.72);
  backdrop-filter: blur(var(--blur-strong));
  box-shadow: 0 18px 36px rgba(46, 33, 20, 0.08);
}

.footer-eyebrow,
.footer-brand,
.footer-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.footer-eyebrow {
  color: rgba(246, 238, 225, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-brand {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.footer-title {
  font-size: 0.94rem;
  color: var(--ink);
}

.footer-copy,
.footer-bottom p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-block-brand {
  background:
    radial-gradient(circle at top left, rgba(217, 107, 53, 0.22), transparent 30%),
    linear-gradient(145deg, #191614, #2f2924 60%, #3a322c 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f7efe3;
  box-shadow: 0 22px 44px rgba(36, 26, 18, 0.18);
}

.footer-block-brand .footer-brand,
.footer-block-brand .footer-copy {
  color: #f7efe3;
}

.footer-block-brand .footer-copy {
  max-width: 26ch;
  color: rgba(247, 239, 227, 0.78);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.footer-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: #f5eadc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a,
.footer-bottom a {
  display: inline-flex;
  color: #4e463d;
  overflow-wrap: anywhere;
  transition: color var(--motion-fast);
}

.site-footer a:hover,
.site-footer a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--accent-deep);
}

.footer-block:not(.footer-block-brand) a {
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 0 0 2px;
  border-bottom: 1px solid transparent;
}

.footer-block:not(.footer-block-brand) a:hover,
.footer-block:not(.footer-block-brand) a:focus-visible {
  border-color: currentColor;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 4px 6px 0;
}

.footer-back-link {
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(23, 21, 19, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(255, 250, 244, 0.58);
  color: var(--ink);
}

.footer-back-link:hover,
.footer-back-link:focus-visible {
  border-color: rgba(23, 21, 19, 0.18);
  background: rgba(255, 250, 244, 0.84);
  color: var(--ink);
}

/* Legal Pages */

.legal-main {
  display: grid;
  gap: 22px;
  padding-bottom: 48px;
}

.legal-header .site-nav a {
  white-space: nowrap;
}

.legal-hero {
  max-width: 760px;
  padding-top: 56px;
}

.legal-hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.legal-intro {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.legal-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 16px 36px rgba(46, 33, 20, 0.06);
}

.legal-card--full {
  grid-column: 1 / -1;
}

.legal-card h2 {
  margin: 0 0 14px;
  font-size: 1.34rem;
  letter-spacing: -0.03em;
}

.legal-card h2,
.legal-card strong {
  font-family: "Space Grotesk", sans-serif;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.72;
}

.legal-card p {
  margin: 0;
}

.legal-card p + p {
  margin-top: 14px;
}

.legal-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.legal-card li + li {
  margin-top: 10px;
}

.legal-card a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.legal-note {
  padding: 16px 18px;
  border: 1px solid rgba(217, 107, 53, 0.14);
  border-radius: 20px;
  background: rgba(243, 216, 198, 0.44);
  color: #473d33;
}

/* Motion */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--motion-reveal),
    transform var(--motion-reveal);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 1120px) {
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    border-radius: 32px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    white-space: nowrap;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.46);
    transition:
      background var(--motion-fast),
      border-color var(--motion-fast),
      transform var(--motion-fast);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(23, 21, 19, 0.16);
  }

  .header-cta {
    margin-left: auto;
  }

  .hero,
  .about,
  .process,
  .case-feature {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 30px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    min-height: 680px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-summary {
    grid-column: auto;
    grid-row: auto;
    max-width: 680px;
  }

  .stats,
  .timeline,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-feature {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-block-brand,
  .legal-card--full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    gap: 14px;
    padding: 13px 15px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .header-cta {
    display: none;
  }

  main {
    gap: 18px;
  }

  .hero {
    padding-top: 36px;
    gap: 24px;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .hero-visual {
    min-height: clamp(360px, 112vw, 500px);
  }

  .hero-visual::before {
    inset: 20px 10px 20px 28px;
  }

  .portrait-card {
    inset: 0 10px 0 0;
  }

  .portrait-card img {
    object-position: center 18%;
  }

  .portrait-badge {
    flex-direction: column;
    align-items: flex-start;
  }

  .strip span {
    min-height: 42px;
    font-size: 0.77rem;
  }

  .stats,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .work {
    padding: 26px 18px;
    border-radius: 30px;
  }

  .case-feature {
    padding: 22px;
    border-radius: 26px;
  }

  .case-copy-top,
  .app-card-top,
  .app-card-footer {
    align-items: flex-start;
  }

  .about {
    padding: 24px 20px;
    border-radius: 30px;
  }

  .app-card {
    min-height: auto;
  }

  .app-card img {
    width: 72px;
    height: 72px;
  }

  .footer-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .footer-block {
    padding: 22px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-hero {
    padding-top: 36px;
  }

  .legal-card {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(calc(100% - 16px), var(--max-width));
  }

  .site-header {
    margin-top: 12px;
    padding: 12px;
    border-radius: 24px;
  }

  .site-nav {
    gap: 6px;
    padding-bottom: 2px;
  }

  .site-nav a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  .hero-text {
    margin-top: 20px;
  }

  .hero-meta,
  .case-pills {
    gap: 8px;
  }

  .hero-meta li,
  .case-pills span {
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  .hero-visual::before {
    inset: 16px 8px 16px 20px;
    border-radius: 28px;
  }

  .portrait-card {
    inset: 0 8px 0 0;
  }

  .portrait-badge {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .section-head h2,
  .contact-card h2,
  .about-copy h2 {
    font-size: clamp(1.95rem, 9vw, 2.8rem);
  }

  .service-card,
  .timeline-step,
  .proof-card,
  .app-card,
  .about-panel,
  .stat-card {
    padding: 20px;
  }

  .work {
    padding: 22px 14px;
  }

  .case-feature {
    padding: 18px;
  }

  .case-copy-top {
    gap: 10px;
  }

  .case-tag {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .app-card-top {
    gap: 14px;
  }

  .app-card h3 {
    font-size: 1.6rem;
  }

  .app-card-footer {
    gap: 10px;
    padding-top: 18px;
  }

  .contact-card {
    padding: 24px 18px;
    border-radius: 30px;
  }

  .contact-actions,
  .contact-actions .button {
    width: 100%;
  }

  .contact-actions .button {
    justify-content: flex-start;
    padding: 14px 16px;
    min-height: auto;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .footer-grid {
    gap: 12px;
  }

  .footer-bottom {
    padding-top: 14px;
  }

  .footer-block {
    padding: 18px 16px;
    border-radius: 24px;
  }

  .legal-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
  }

  .legal-intro {
    margin-top: 18px;
    font-size: 0.98rem;
  }

  .legal-card {
    padding: 18px;
  }
}

@media (max-width: 390px) {
  .page-shell {
    width: min(calc(100% - 12px), var(--max-width));
  }

  .site-header {
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .hero {
    gap: 20px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.1rem, 13vw, 3rem);
  }

  .hero-text,
  .section-summary,
  .case-copy p,
  .app-card p,
  .timeline-step p,
  .about-copy p,
  .contact-card p,
  .service-card p {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .hero-visual {
    min-height: clamp(320px, 110vw, 420px);
  }

  .portrait-badge strong {
    font-size: 0.94rem;
  }

  .strip span,
  .hero-meta li,
  .case-pills span {
    font-size: 0.78rem;
  }

  .step-badge {
    min-width: 38px;
    min-height: 38px;
    font-size: 0.88rem;
  }

  .service-card h3,
  .case-copy h3,
  .app-card h3,
  .timeline-step h3 {
    font-size: 1.24rem;
  }

  .case-feature h3 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .app-card-top,
  .app-card-footer,
  .case-copy-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-card-meta,
  .app-card-footer .arrow-link--soft,
  .case-link {
    width: 100%;
  }

  .app-card-footer .arrow-link--soft,
  .case-link {
    justify-content: space-between;
  }

  .proof-card strong,
  .about-panel strong {
    font-size: 1rem;
    line-height: 1.45;
  }

  .footer-brand {
    font-size: 1.45rem;
  }

  .footer-block {
    padding: 16px 14px;
    gap: 8px;
    border-radius: 22px;
  }

  .footer-tags {
    gap: 8px;
  }

  .footer-tags span {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .legal-card h2 {
    font-size: 1.18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .reveal,
  .site-nav a::after {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
