:root {
  --field: #f1f4f8;
  --ink: #101827;
  --cobalt: #1b3a8a;
  --cobalt-wash: #132b66;
  --cobalt-wash-soft: rgba(19, 43, 102, 0.86);
  --copper: #c1652e;
  --copper-hover: #9c4f22;
  --mist: #e4eaf2;
  --paper-on-photo: #f7f9fc;
  --muted: #55617a;
  --rule: rgba(16, 24, 39, 0.12);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 0.3s;
  --dur-hover: 0.5s;
  --dur-enter: 0.8s;
  --dur-hero: 1.5s;
  --header-h: 4.5rem;
  --max: 78rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--field);
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform var(--dur-hover) var(--ease-out-expo),
    background-color var(--dur-hover) var(--ease-out-expo),
    border-color var(--dur-hover) var(--ease-out-expo);
}

/* Call links always stay one line, in or out of a .btn */
.call-nowrap {
  white-space: nowrap;
}

.btn .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.btn-fill {
  background: var(--copper);
  color: #fff;
}

.btn-fill:hover {
  background: var(--copper-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(247, 249, 252, 0.55);
  color: var(--paper-on-photo);
}

.btn-ghost:hover {
  border-color: var(--paper-on-photo);
  transform: translateY(-1px);
}

.btn-ghost.on-light {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.btn-ghost.on-light:hover {
  background: var(--cobalt);
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cobalt);
  color: var(--paper-on-photo);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.75rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--paper-on-photo);
  margin-right: auto;
}

.brand .brand-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(247, 249, 252, 0.7);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-links a {
  transition: opacity var(--dur-fast) var(--ease-out-expo);
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

.header-call {
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: stretch;
  overflow: clip;
  background: var(--ink);
}

/* Oversized inside the hero's overflow clip so the parallax cannot leak an edge. */
.hero-media {
  position: absolute;
  inset: -7% 0;
  height: 114%;
  z-index: 0;
  will-change: transform;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero-gesture {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  max-width: 34rem;
  height: auto;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6.5rem 1.75rem 5rem;
  display: flex;
}

.hero-copy {
  max-width: 34rem;
  background: linear-gradient(
    115deg,
    var(--cobalt-wash-soft) 0%,
    var(--cobalt-wash-soft) 62%,
    rgba(19, 43, 102, 0.35) 85%,
    rgba(19, 43, 102, 0) 100%
  );
  color: var(--paper-on-photo);
  padding: 2.75rem 2.75rem 2.75rem 0;
  border-radius: 0;
}

.hero-copy .kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.9rem;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  margin-bottom: 1.1rem;
}

.hero-copy .hero-sub {
  font-size: 1.05rem;
  color: rgba(247, 249, 252, 0.88);
  margin-bottom: 1rem;
}

.hero-copy .hero-body {
  font-size: 1rem;
  color: rgba(247, 249, 252, 0.82);
  margin-bottom: 1.4rem;
}

.hero-proof {
  font-size: 0.9rem;
  color: rgba(247, 249, 252, 0.75);
  margin-bottom: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 249, 252, 0.25);
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Trust strip */
.trust-strip {
  background: var(--mist);
  border-bottom: 1px solid var(--rule);
}

.trust-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.1rem 1.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.trust-item .icon {
  color: var(--copper);
}

.trust-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

/* Services */
.services {
  padding: 5.5rem 0 3rem;
}

.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
  margin-bottom: 3rem;
}

.kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  max-width: 42rem;
  color: var(--cobalt);
}

.service-row {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.service-row + .service-row {
  border-top: 1px solid rgba(193, 101, 46, 0.28);
}

.service-row.flip {
  direction: rtl;
}

.service-row.flip > * {
  direction: ltr;
}

.service-illus {
  background: var(--mist);
  overflow: hidden;
}

.service-illus img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 4 / 3;
}

.service-text h3 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.service-text p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Craft strip */
.craft-strip {
  padding: 1rem 0 5.5rem;
}

.craft-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.craft-grid figure {
  margin: 0;
  overflow: hidden;
}

.craft-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* About */
.about {
  background: #fff;
  padding: 5.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.about h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  color: var(--cobalt);
  margin-bottom: 0.75rem;
}

.about .sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.about p.body {
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.about ul {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.about li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.98rem;
}

.about li .icon {
  color: var(--copper);
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
}

.about .about-mail {
  font-weight: 600;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 0.1rem;
}

/* Area */
.area {
  background: var(--cobalt);
  color: var(--paper-on-photo);
  padding: 5rem 0;
}

.area-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.area h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.area .sub {
  color: rgba(247, 249, 252, 0.8);
  margin-bottom: 1rem;
}

.area .body {
  color: rgba(247, 249, 252, 0.85);
  max-width: 32rem;
  margin-bottom: 1.25rem;
}

.place-line {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--paper-on-photo);
}

/* Contact */
.contact {
  padding: 5.5rem 0;
  background: var(--mist);
}

.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  color: var(--cobalt);
  margin-bottom: 1.5rem;
}

.contact-fact {
  margin-bottom: 1.25rem;
}

.contact-fact .label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-fact .value {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-fact a:hover {
  color: var(--copper);
}

form.contact-form {
  background: #fff;
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
}

.form-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--rule);
  background: var(--field);
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form .submit {
  justify-self: start;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(247, 249, 252, 0.75);
  padding: 2.25rem 0 6.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-inner a:hover {
  color: var(--copper);
}

/* Sticky mobile call dock */
.call-dock {
  display: none;
}

/* Reveal animation hook (motion.js) */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity var(--dur-enter) var(--ease-out-expo),
    transform var(--dur-enter) var(--ease-out-expo);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* A block of copy that belongs together: the container holds still and its
   children come in one after another, top first. motion.js sets the delays. */
[data-reveal="cascade"] {
  opacity: 1;
  transform: none;
  transition: none;
}

[data-reveal="cascade"] > * {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity var(--dur-enter) var(--ease-out-expo),
    transform var(--dur-enter) var(--ease-out-expo);
}

[data-reveal="cascade"].is-in > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal="cascade"] > *,
  .hero-media {
    opacity: 1;
    transform: none !important;
    transition: none;
  }
}

/* ---------- Mobile (390) ---------- */
@media (max-width: 640px) {
  .wrap {
    padding: 0 1.25rem;
  }

  .header-inner {
    padding: 0.65rem 1.25rem;
    gap: 0.85rem;
  }

  .nav-links {
    display: none;
  }

  .brand {
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .brand .brand-sub {
    display: none;
  }

  .header-call .btn-label {
    display: none;
  }

  .header-call .btn {
    padding: 0.7rem 0.9rem;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-inner {
    padding: 6rem 1.25rem 7.5rem;
  }

  .hero-copy {
    max-width: none;
    padding: 2rem 1.5rem;
    background: var(--cobalt-wash-soft);
  }

  .hero-gesture {
    width: 60%;
    top: -2%;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.75rem 1.25rem;
  }

  .section-head {
    padding: 0 1.25rem;
    margin-bottom: 2rem;
  }

  .service-row {
    grid-template-columns: 1fr;
    padding: 2.25rem 1.25rem;
    gap: 1.5rem;
  }

  .service-row.flip {
    direction: ltr;
  }

  .craft-grid {
    grid-template-columns: 1fr;
    padding: 0 1.25rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 0 1.25rem;
    gap: 2rem;
  }

  .area-inner {
    padding: 0 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

  form.contact-form {
    padding: 1.5rem;
  }

  .site-footer {
    padding: 1.75rem 0 6.5rem;
  }

  .footer-inner {
    padding: 0 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Sticky Call dock — always tappable, one line, no motion */
  .call-dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom));
    background: var(--copper);
  }

  .call-dock a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
  }
}
