/* ==========================================================================
   Web & AI Solutions — one page, dark only.
   Two reference widths: 1440 (desktop) and 390 (mobile). One breakpoint, 900px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts
   Drop the three Inter weights into fonts/ with these exact names. Until they
   are there the stack falls through to Helvetica Neue / Arial.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: Inter;
  src: url("../fonts/Inter-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #121212;
  --fg: #FFFFFF;
  --muted: #9A9A9A;
  --surface: #1C1C1C;
  --hairline: #2E2E2E;

  /* The flat accent, used for the status dot. */
  --accent: #3B82F6;
  /* Button fill: the design's darkest accent option, so white text on it
     clears WCAG AA (7.0:1 instead of 3.7:1). */
  --accent-strong: #1D4ED8;

  --font: Inter, "Helvetica Neue", Arial, sans-serif;

  --wrap-max: 1344px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 128px);
  --section-gap: clamp(40px, 5vw, 64px);

  --control-h: 52px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Links, buttons, focus
   -------------------------------------------------------------------------- */
a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
}

.skip-link:focus {
  left: var(--gutter);
  top: 12px;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--control-h);
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--accent-strong);
  color: var(--fg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.btn:hover {
  color: var(--fg);
  filter: brightness(1.12);
}

.textlink {
  display: inline-flex;
  align-items: center;
  height: var(--control-h);
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 15px;
}

.nav a {
  display: inline-block;
  padding: 12px 0;
  color: var(--muted);
}

.nav a:hover {
  color: var(--fg);
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}

.footer-mark {
  color: var(--fg);
  font-weight: 500;
}

.site-footer .nav {
  gap: 24px;
}

/* --------------------------------------------------------------------------
   Headings and section intros
   -------------------------------------------------------------------------- */
h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}

.section-lead {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] minmax(0, 600px) minmax(0, 680px)
    [content-end] minmax(var(--gutter), 1fr) [full-end];
  align-items: center;
}

.hero-text {
  grid-column: content-start / 3;
  padding: 96px 72px 96px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero-media {
  grid-column: 3 / full-end;
  height: 720px;
}

.hero-media picture,
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The box is a fixed 720px tall but widens with the viewport, so cover scales
     the 4:5 capture up by width and the surplus height is cropped. Centred, that
     surplus comes off the top as well, and past ~1400px it takes the site's
     headline with it. Anchoring to the top keeps the headline in frame at every
     width; what gets dropped is footer content, which costs nothing. */
  object-position: 50% 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-lead {
  margin: 0;
  max-width: 520px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-top: 8px;
}

/* --------------------------------------------------------------------------
   Work
   -------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 56px 48px;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-name {
  font-size: 18px;
  font-weight: 500;
}

.project-note {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  column-gap: 96px;
  align-items: start;
}

.phone-col {
  position: sticky;
  top: 96px;
  display: flex;
  justify-content: center;
}

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}

.step-phone {
  display: none;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}

.step-price {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.step-copy {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Phone mockup
   -------------------------------------------------------------------------- */
.phone {
  width: 320px;
  height: 660px;
  flex: none;
  padding: 11px;
  border: 1px solid var(--hairline);
  border-radius: 44px;
  background: #0A0A0A;
  color: #111111;
  font-family: var(--font);
}

.phone-screens {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: #FFFFFF;
}

.phone-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease-out;
}

.phone[data-stage="1"] .phone-screen[data-screen="1"],
.phone[data-stage="2"] .phone-screen[data-screen="2"],
.phone[data-stage="3"] .phone-screen[data-screen="3"] {
  opacity: 1;
  pointer-events: auto;
}

.ps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px 14px 18px;
}

.ps-brand {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ps-call {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: #111111;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
}

.ps-hero {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.ps-hero-2 {
  height: 150px;
  object-position: 60% 30%;
}

.ps-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 0 18px;
}

.ps-h1 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.ps-sub {
  font-size: 12px;
  line-height: 1.5;
  color: #666666;
}

.ps-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin-top: 4px;
  border-radius: 8px;
  background: #111111;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
}

.ps-work {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px 0 18px;
}

.ps-work-2 {
  padding-top: 20px;
}

.ps-label {
  font-size: 12px;
  font-weight: 500;
  color: #666666;
}

.ps-thumbs {
  display: grid;
  gap: 8px;
}

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

.ps-thumbs-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ps-thumb {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.ps-thumb-sm {
  height: 64px;
}

.ps-thumb-off {
  object-position: 20% 80%;
}

.ps-strip {
  display: flex;
  align-items: center;
  margin: 0 18px 12px 18px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #F2F2F2;
  font-size: 11.5px;
  color: #444444;
}

.ps-search-wrap {
  padding: 22px 16px 0 16px;
}

.ps-search {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 21px;
  background: #F1F3F4;
  font-size: 13.5px;
  color: #111111;
}

.ps-tabs {
  display: flex;
  gap: 18px;
  padding: 16px 16px 0 16px;
  font-size: 12px;
  color: #666666;
}

.ps-tab-on {
  color: #111111;
  font-weight: 500;
}

.ps-results {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px 0 16px;
}

.ps-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ps-url {
  font-size: 11px;
  color: #666666;
}

.ps-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ps-snippet {
  font-size: 12px;
  line-height: 1.45;
  color: #444444;
}

.ps-result-dim {
  color: #767676;
}

.ps-result-dim .ps-url,
.ps-result-dim .ps-title,
.ps-result-dim .ps-snippet {
  color: inherit;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 64px 96px;
  align-items: center;
}

.about-photo {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
}

.about-photo picture,
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
}

.about-copy {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.about-pull {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Prose — the privacy page
   -------------------------------------------------------------------------- */
.prose {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 720px;
}

.prose section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prose h2 {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose .meta {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 48px 96px;
  align-items: start;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  font-size: 17px;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.input {
  width: 100%;
  height: var(--control-h);
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  font-family: inherit;
  font-size: 16px;
  padding: 0 16px;
  outline: none;
}

.input:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

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

textarea.input {
  height: 150px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.5;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.contact-form[data-sending] .btn {
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Mobile — 390 is the reference width
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns:
      [full-start] 16px
      [content-start] minmax(0, 1fr)
      [content-end] 16px [full-end];
  }

  .hero-text {
    grid-column: content-start / content-end;
    padding: 48px 0 40px 0;
  }

  .hero-media {
    grid-column: full-start / full-end;
    height: 460px;
  }

  .services {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  .phone-col {
    display: none;
  }

  .step {
    min-height: 0;
    padding: 0 0 80px 0;
  }

  .step-phone {
    display: flex;
    justify-content: center;
    padding: 0 0 32px 0;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion — the phone screens swap with no cross-fade
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .phone-screen {
    transition: none;
  }
}
