/* ============================================================
   WebHouse Studio - portfolio
   Brand identity: deep navy (#1F3A5F) + mint-teal (#45C9A5),
   echoing the house-and-slash logo. Cool light canvas,
   Montserrat display + wordmark / Hanken Grotesk body / IBM Plex Mono labels.
   ============================================================ */

:root {
  /* brand core */
  --navy: #1F3A5F;
  --navy-deep: #15273d;
  --teal: #45C9A5;
  --teal-deep: #127a5c;       /* readable teal for text/links on light */
  --teal-glow: rgba(69, 201, 165, 0.16);

  /* semantic tokens (drive the whole skin) */
  --paper: #eef2f5;           /* cool light canvas */
  --paper-deep: #e1e8ee;      /* panel */
  --ink: var(--navy);         /* primary text */
  --ink-soft: #51637a;        /* muted body copy */
  --accent: var(--teal);
  --accent-deep: var(--teal-deep);

  --line: rgba(31, 58, 95, 0.14);   /* hairline borders */

  --font-display: "Montserrat", sans-serif;
  --font-body: "Hanken Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-brand: "Montserrat", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at 82% -8%, var(--teal-glow), transparent 42%),
    radial-gradient(circle at 0% 8%, rgba(31, 58, 95, 0.06), transparent 38%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--teal); color: var(--navy); }

a { color: inherit; }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(6) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- shared bits ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.kicker .slash { color: var(--teal); font-weight: 500; margin-right: 0.35em; }

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
  background: var(--navy);
  color: #fff;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.btn:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18, 122, 92, 0.32);
}
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { color: #fff; }
.btn-small { padding: 0.55rem 1.2rem; font-size: 0.8rem; }
.btn-big { font-size: clamp(0.95rem, 2.4vw, 1.35rem); padding: 1.2rem 2.4rem; }

section { padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 6vw, 6rem); }

.section-head { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
}
.section-head em, .cta em, .hero-title em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-deep);
}

/* ============ header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-logo {
  width: 40px;
  height: 40px;
  display: block;
  transition: transform 0.4s var(--ease-out);
}
.brand:hover .brand-logo { transform: translateY(-2px) rotate(-3deg); }
.brand-name {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
}

.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============ hero ============ */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.6rem, 8.4vw, 6.8rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero-title .line { display: block; }
.hero-title .line:nth-child(2) { margin-left: clamp(0rem, 4vw, 4rem); }

.circled { position: relative; white-space: nowrap; color: var(--teal-deep); }
.circled::after {
  content: "";
  position: absolute;
  inset: -8% -7% -16% -7%;
  border: 3px solid var(--teal);
  border-radius: 50%;
  transform: rotate(-3deg);
  opacity: 0;
  animation: draw-circle 0.7s var(--ease-out) 1.1s forwards;
}
@keyframes draw-circle {
  from { opacity: 0; transform: rotate(-3deg) scale(1.25); }
  to   { opacity: 1; transform: rotate(-3deg) scale(1); }
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem;
}
.hero-sub { max-width: 32rem; color: var(--ink-soft); font-size: 1.15rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-note {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--teal-deep);
}
.hero-note .hn-check { font-weight: 600; margin-right: 0.3em; }

/* staggered hero entrance */
.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-title .line:nth-child(1) { transition-delay: 0.15s; }
.hero-title .line:nth-child(2) { transition-delay: 0.27s; }
.hero-title .line:nth-child(3) { transition-delay: 0.39s; }
.hero-sub { transition-delay: 0.5s; }
.hero-cta { transition-delay: 0.6s; }

/* ============ marquee ============ */
/* wrapper clips the tilted/over-wide bar so it never causes horizontal scroll */
.marquee-wrap { overflow: hidden; width: 100%; }
.marquee {
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
  padding: 0.85rem 0;
  width: 100%;
  border-top: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  /* keep the scroll on its own compositing layer (fixes iOS Safari repaint) */
  will-change: transform;
  backface-visibility: hidden;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.marquee-track .mq-set { white-space: nowrap; padding-right: 1rem; }
.marquee-track .slash { color: var(--teal); padding: 0 0.5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ trust strip ============ */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem 2.4rem;
  padding: 2.2rem clamp(1.25rem, 6vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.trust-item span { color: var(--teal); font-weight: 700; }

/* ============ testimonials ============ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.testi-card {
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 1.8rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}
.testi-stars { color: var(--teal); letter-spacing: 0.15em; font-size: 1rem; }
.testi-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--navy);
}
.testi-card figcaption {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--teal-deep);
}

/* ============ work / cases ============ */
.work-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 2.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.work-head .section-head { margin-bottom: 0; }
.work-cats { display: flex; flex-direction: column; gap: 0.55rem; }
.work-cats .kicker { margin-bottom: 0.4rem; }
.work-cats a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: var(--navy);
  text-decoration: none;
}
.work-cats a span { color: var(--teal); transition: transform 0.25s var(--ease-out); }
.work-cats a:hover { color: var(--teal-deep); }
.work-cats a:hover span { transform: translateX(5px); }

.case {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}
.case-flip .case-mock { order: 2; }
.case-flip .case-info { order: 1; }

.case-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 0.6rem;
}
.case-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 640;
  letter-spacing: -0.015em;
  margin-bottom: 0.8rem;
}
.case-info h3 a { text-decoration: none; }
.case-info h3 a:hover { color: var(--accent-deep); }
.case-info p { color: var(--ink-soft); max-width: 30rem; }

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.4rem;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
}

.case-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}
.case-link span { display: inline-block; transition: transform 0.3s var(--ease-out); }
.case-link:hover span { transform: translateX(6px); }
.case-link:hover { color: var(--accent-deep); }

/* ---------- browser frame + live screenshots ---------- */
.browser {
  display: block;
  text-decoration: none;
  border: 2.5px solid var(--navy);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 8px 8px 0 var(--navy);
  transform: rotate(-1deg);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.case-flip .browser { transform: rotate(1deg); }
.browser:hover {
  transform: rotate(0deg) translate(-3px, -3px);
  box-shadow: 14px 14px 0 var(--teal);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  padding: 0.55rem 0.9rem;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #5b6b80; }
.browser-bar .dot:first-child { background: var(--teal); }
.browser-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.15rem 0.7rem;
  margin-left: 0.5rem;
}
.browser-shot {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease-out);
}
.browser:hover .browser-shot { transform: scale(1.025); }

/* ============ services ============ */
.services { background: var(--paper-deep); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}
.service {
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.service:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 6px 8px 0 var(--teal);
}
.service-icon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.9rem;
  color: var(--teal-deep);
}
.service h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 640;
  margin-bottom: 0.5rem;
}
.service p { color: var(--ink-soft); font-size: 0.98rem; }
.service p i { font-style: italic; }
.service p a { color: var(--accent-deep); font-weight: 600; text-decoration: none; white-space: nowrap; }
.service p a:hover { text-decoration: underline; }
.services-grid .service:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service:nth-child(3) { transition-delay: 0.16s; }
.services-grid .service:nth-child(4) { transition-delay: 0.24s; }

/* ============ data systems spotlight ============ */
.datafeature {
  background:
    radial-gradient(circle at 88% 0%, var(--teal-glow), transparent 55%),
    var(--navy-deep);
  color: var(--paper);
}
.datafeature-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.df-copy .kicker { color: var(--teal); }
.df-copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0.7rem 0 1rem;
}
.df-copy h2 em { font-style: normal; color: var(--teal); }
.df-copy > p { color: rgba(238, 242, 245, 0.78); max-width: 34rem; margin-bottom: 1.7rem; }
.df-copy .btn { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.df-copy .btn:hover { background: #fff; border-color: #fff; color: var(--navy); }
.df-examples { display: grid; gap: 1rem; }
.df-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}
.df-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.df-ic { font-family: var(--font-mono); font-size: 1.6rem; color: var(--teal); display: block; margin-bottom: 0.5rem; }
.df-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: 0.3rem; }
.df-card p { color: rgba(238, 242, 245, 0.72); font-size: 0.93rem; }
@media (max-width: 800px) { .datafeature-inner { grid-template-columns: 1fr; } }

/* ============ pricing ============ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  align-items: start;
}
.price-card {
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 1.9rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.price-card:hover { transform: translateY(-6px); box-shadow: 6px 8px 0 var(--teal); }
.price-card.featured { border-color: var(--teal); box-shadow: 6px 8px 0 var(--teal); }
.price-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; color: var(--navy); line-height: 1; margin: 0.1rem 0 0.5rem; }
.price .from { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-deep); font-weight: 500; margin-bottom: 0.25rem; }
.price-desc { color: var(--ink-soft); font-size: 0.95rem; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; margin: 0.7rem 0 1.3rem; }
.price-card ul li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: 0.92rem; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 600; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.tag-pop {
  position: absolute; top: -13px; left: 1.6rem;
  background: var(--teal); color: var(--navy);
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 999px;
}
.price-foot { text-align: center; margin-top: 1.4rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }

/* care plan callout */
.care {
  margin-top: 1.6rem;
  background:
    radial-gradient(circle at 92% 0%, var(--teal-glow), transparent 55%),
    var(--navy);
  color: var(--paper);
  border-radius: 18px;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.care-head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.care-price { font-family: var(--font-mono); font-size: 0.95rem; color: var(--teal); font-weight: 500; }
.care-head p { color: rgba(238, 242, 245, 0.78); margin-top: 0.6rem; font-size: 0.98rem; max-width: 34rem; }
.care-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.6rem 1.6rem;
}
.care-list li { position: relative; padding-left: 1.5rem; font-size: 0.96rem; color: #dfe7ee; }
.care-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 600; }
.care-note {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(238, 242, 245, 0.72);
}
.care-note b { color: var(--teal); font-weight: 500; }

/* ============ process ============ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
  counter-reset: step;
}
.step {
  border-top: 2.5px solid var(--navy);
  padding-top: 1.2rem;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
  display: block;
  margin-bottom: 0.6rem;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 640;
  margin-bottom: 0.4rem;
}
.step p { color: var(--ink-soft); font-size: 0.96rem; }
.steps .step:nth-child(2) { transition-delay: 0.08s; }
.steps .step:nth-child(3) { transition-delay: 0.16s; }
.steps .step:nth-child(4) { transition-delay: 0.24s; }

/* ============ CTA ============ */
.cta {
  background:
    radial-gradient(circle at 50% 130%, var(--teal-glow), transparent 55%),
    var(--navy-deep);
  color: var(--paper);
  text-align: center;
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}
.cta .kicker { color: var(--teal); }
.cta .kicker .slash { color: var(--teal); }
.cta-title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 1rem 0 1.5rem;
}
.cta-title .line { display: block; }
.cta-title em { color: var(--teal); }
.cta-sub {
  max-width: 30rem;
  margin: 0 auto 2.2rem;
  color: rgba(238, 242, 245, 0.72);
}
.cta .btn-big {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}
.cta .btn-big:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(69, 201, 165, 0.35);
}

/* ---------- contact methods (call / email) ---------- */
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 1rem;
}
.contact-method {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(238, 242, 245, 0.18);
  border-radius: 14px;
  padding: 0.8rem 1.3rem;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.contact-method:hover {
  border-color: var(--teal);
  background: rgba(69, 201, 165, 0.08);
  transform: translateY(-2px);
}
.cm-icon { font-size: 1.5rem; color: var(--teal); line-height: 1; }
.cm-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.35;
}
.cm-text strong {
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.contact-hours {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(238, 242, 245, 0.6);
  margin: 0 auto 2.4rem;
}
.contact-divider {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(238, 242, 245, 0.4);
  margin-bottom: 1.6rem;
}

/* ---------- inquiry form ---------- */
.inquiry-form {
  max-width: 38rem;
  margin: 0 auto;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.45rem;
}
.form-field label .opt {
  color: rgba(238, 242, 245, 0.4);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(238, 242, 245, 0.22);
  border-radius: 10px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s, background 0.25s;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(238, 242, 245, 0.38); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.1);
}
.form-honey { position: absolute; left: -9999px; height: 0; opacity: 0; }
.form-submit { width: 100%; cursor: pointer; margin-top: 0.4rem; }
.form-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-status {
  min-height: 1.4rem;
  margin-top: 0.9rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.form-status.ok { color: #7fe3bf; }
.form-status.err { color: #f0907a; }
.form-alt {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(238, 242, 245, 0.62);
}
.form-alt a { color: var(--teal); }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============ footer ============ */
.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.4rem;
}
.footer-row-sub {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
}
.footer-logo { width: 24px; height: 24px; display: block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.site-footer a { color: var(--navy); text-decoration: none; }
.footer-nav a {
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-nav a:hover {
  color: var(--navy);
  border-color: var(--teal);
  background: rgba(69, 201, 165, 0.1);
}
.footer-contact a:hover { color: var(--accent-deep); }
.footer-legal {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.footer-legal a { color: var(--ink-soft); }
.footer-legal a:hover { color: var(--accent-deep); text-decoration: underline; }

/* ============ content pages (services, privacy) ============ */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 6vw, 6rem) clamp(1.5rem, 3vw, 2.5rem);
  max-width: 58rem;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 1.3rem;
}
.breadcrumb a { color: var(--accent-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.page-hero h1 em { font-style: normal; color: var(--accent-deep); }
.page-lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 42rem;
  margin-top: 1.2rem;
}
.prose {
  padding: 0 clamp(1.25rem, 6vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  max-width: 50rem;
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  letter-spacing: -0.015em;
  margin: 2.6rem 0 0.8rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul { list-style: none; margin: 0 0 1.4rem; display: grid; gap: 0.6rem; }
.prose ul li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); }
.prose ul li::before {
  content: "/";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-family: var(--font-mono);
  font-weight: 500;
}
.prose a { color: var(--accent-deep); }
.prose strong { color: var(--ink); }

.page-cta {
  margin: 0 clamp(1.25rem, 6vw, 6rem) clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(circle at 75% 0%, var(--teal-glow), transparent 60%),
    var(--navy-deep);
  color: var(--paper);
  border-radius: 20px;
  padding: clamp(2.2rem, 5vw, 3.4rem);
  text-align: center;
}
.page-cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: #fff;
  letter-spacing: -0.02em;
}
.page-cta p { color: rgba(238, 242, 245, 0.75); max-width: 34rem; margin: 0.8rem auto 1.6rem; }
.page-cta .btn { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.page-cta .btn:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* ============ responsive ============ */
.brand-name { white-space: nowrap; }
.site-header .btn-small { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 800px) {
  .site-nav { display: none; }
  .case, .case-flip { grid-template-columns: 1fr; }
  .case-flip .case-mock { order: 1; }
  .case-flip .case-info { order: 2; }
  .hero { min-height: 70vh; }
  /* on mobile, the "what we build" links read better above the heading than under it */
  .work-head { flex-direction: column-reverse; align-items: flex-start; gap: 1.6rem; }
}

/* tablet / large phone: tighten the header so the brand + CTA share the row comfortably */
@media (max-width: 560px) {
  .site-header { padding: 0.7rem 1rem; gap: 0.6rem; }
  .brand { gap: 0.5rem; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-name { font-size: 0.78rem; letter-spacing: 0.04em; }
  .site-header .btn-small { padding: 0.6rem 1rem; font-size: 0.72rem; }

  .contact-methods { flex-direction: column; align-items: center; }
  .contact-method { width: 100%; max-width: 340px; }
}

/* small phone: drop the wordmark so the logo + CTA never crowd */
@media (max-width: 400px) {
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* The keyword ribbon keeps scrolling for everyone, by request. Other,
     more distracting motion (grain shimmer, scroll reveals) is still paused
     for reduced-motion users. People who need accommodations can reach us
     via the Accessibility page. */
  .grain { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
