:root {
  color-scheme: light;
  --ink: #141514;
  --muted: #626862;
  --soft: #eef0eb;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #deded5;
  --accent: #1f7a63;
  --accent-strong: #10543f;
  --warm: #c56f3b;
  --blue: #2f5f8f;
  --shadow: 0 24px 70px rgba(20, 21, 20, 0.11);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(31, 122, 99, 0.42);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(20, 21, 20, 0.08);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 780;
}

.brand span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 560;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a,
.nav-cta {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--soft);
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: white;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.25rem;
}

.section-tight {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.hero {
  min-height: calc(100vh - 4.75rem);
  display: grid;
  align-items: center;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.3rem;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.22rem;
  line-height: 1.25;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.compact-actions {
  margin-top: 0;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.72rem 1rem;
  font-weight: 760;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--line);
  background: var(--panel);
}

.button.secondary:hover {
  border-color: rgba(20, 21, 20, 0.28);
  transform: translateY(-1px);
}

.button.ghost {
  color: var(--accent-strong);
  padding-left: 0;
}

.button.ghost:hover {
  transform: translateX(3px);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 2.7rem;
}

.metric,
.card,
.project-card,
.contact-tile,
.case-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.metric {
  padding: 1rem;
}

.metric strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-visual {
  align-self: end;
}

.mockup-stage {
  display: grid;
  gap: 1rem;
}

.device-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0.25rem;
}

.device-tab {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  font-weight: 740;
}

.device-tab.is-active {
  background: var(--ink);
  color: white;
}

.device {
  position: relative;
  border: 1px solid rgba(20, 21, 20, 0.18);
  background: #171815;
  box-shadow: var(--shadow);
}

.device.laptop {
  border-radius: 18px;
  padding: 1rem 1rem 1.45rem;
}

.device.phone {
  width: min(100%, 310px);
  margin-left: auto;
  border-radius: 34px;
  padding: 0.8rem;
  display: none;
}

.device.phone::before {
  content: "";
  display: block;
  width: 4.8rem;
  height: 0.38rem;
  margin: 0 auto 0.55rem;
  border-radius: 999px;
  background: #050505;
}

.device.is-active {
  display: block;
}

.screen {
  overflow: hidden;
  border-radius: 10px;
  background: #f7f2ea;
}

.device.phone .screen {
  height: 560px;
  border-radius: 24px;
}

.device.laptop .screen {
  aspect-ratio: 16 / 10;
}

.scroll-shot {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.device-shot {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mockup-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.control-group {
  display: flex;
  gap: 0.5rem;
}

.icon-button {
  min-width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
  font-weight: 850;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-head p {
  max-width: 34rem;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card,
.project-card,
.contact-tile,
.case-summary {
  padding: 1.25rem;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.project-card {
  display: grid;
  gap: 1rem;
}

.project-card:hover,
.contact-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 21, 20, 0.28);
  box-shadow: 0 18px 45px rgba(20, 21, 20, 0.08);
}

.project-thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(20, 21, 20, 0.1);
  background: var(--soft);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.case-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.case-proof .metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.live-preview {
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}

.preview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.preview-head h2 {
  margin-bottom: 0;
}

.preview-frame {
  overflow: hidden;
  height: min(78vh, 760px);
  min-height: 520px;
  border: 1px solid rgba(20, 21, 20, 0.18);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 45px rgba(20, 21, 20, 0.08);
}

.preview-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: white;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.process-list {
  display: grid;
  gap: 0.8rem;
  counter-reset: process;
}

.process-item {
  position: relative;
  border-left: 2px solid var(--line);
  padding: 0.2rem 0 1.2rem 1.4rem;
}

.process-item::before {
  counter-increment: process;
  content: counter(process);
  position: absolute;
  left: -0.82rem;
  top: 0;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 2.5rem;
}

.page-hero h1 {
  max-width: 12ch;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.22fr);
  gap: 2rem;
  align-items: start;
}

.case-article {
  max-width: 780px;
}

.case-article section {
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}

.case-article h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.case-article p,
.case-article li {
  color: var(--muted);
  font-size: 1.04rem;
}

.case-summary {
  position: sticky;
  top: 6rem;
}

.case-summary dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.case-summary dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-summary dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.25rem;
}

.timeline-item p {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.credential-list {
  display: grid;
  gap: 0.75rem;
}

.credential {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem;
}

.credential strong,
.credential span {
  display: block;
}

.credential span {
  margin-top: 0.25rem;
  color: var(--muted);
}

.quote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  padding-left: 1rem;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 720;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
}

.contact-panel {
  display: grid;
  gap: 1rem;
}

.brief-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.25rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-weight: 760;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0.72rem 0.78rem;
}

.form-row textarea {
  resize: vertical;
}

.form-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.form-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-options {
  align-items: stretch;
}

.contact-tile strong {
  display: block;
}

.contact-tile span {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner a {
  color: var(--ink);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

@media (max-width: 920px) {
  .hero,
  .grid-4,
  .grid-3,
  .grid-2,
  .form-split,
  .case-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 3rem;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

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

  .section-head {
    display: block;
  }

  .preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-summary {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .nav-links a {
    display: none;
  }

  .nav-cta {
    min-height: 2.4rem;
  }

  .section,
  .page-hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mockup-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
  }

  .preview-frame {
    height: 620px;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

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