@font-face {
  font-family: "Prata";
  src: url("assets/fonts/prata.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ivory: #fbf8f3;
  --blush: #f5ebe6;        /* services band, same warm family as the ivory */
  --raspberry: #8c1438;
  --raspberry-deep: #6f0f2c;
  --ink: #5a4553;          /* body copy: plum-grey, 8.4:1 on ivory */
  --muted: #6e5b66;        /* small labels, 5.9:1 on ivory, 5.4:1 on blush */
  --rule: #d58aa0;
  --gutter: clamp(20px, 6vw, 92px);
  --serif: "Prata", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--raspberry); color: var(--ivory); }

a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--raspberry); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--raspberry);
  color: var(--ivory);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 10;
}
.skip:focus { top: 12px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--raspberry);
  margin: 0;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.wrap { padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px 10px;
}
.logo {
  font-family: var(--serif);
  color: var(--raspberry);
  text-decoration: none;
  font-size: clamp(1.9rem, 2.9vw, 2.6rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  padding-bottom: 0.1em;
}
nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav-link {
  color: var(--raspberry);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.4s var(--ease);
}
.nav-link:hover { background-size: 100% 1px; }

/* Buttons: one pill language everywhere */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  white-space: nowrap;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.8em 1.85em;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-outline { color: var(--raspberry); background: transparent; border: 1.5px solid var(--raspberry); padding: 0.62em 1.8em; }
.btn-outline:hover { background: var(--raspberry); color: var(--ivory); }
.btn-solid { background: var(--raspberry); color: var(--ivory); border: 1.5px solid var(--raspberry); }
.btn-solid:hover { background: var(--raspberry-deep); border-color: var(--raspberry-deep); }
.btn-lg { font-size: 1.25rem; padding: 0.72em 1.75em; }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:hover .icon-diag { transform: translate(2px, -2px); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  column-gap: clamp(32px, 4vw, 64px);
  align-items: start;
  max-width: 1600px;
  margin-inline: auto;
  padding-bottom: clamp(28px, 3vw, 44px);
}
.wrap-left { padding-left: var(--gutter); }
.hero-copy { padding-top: clamp(28px, 3.4vw, 52px); }
.eyebrow {
  margin: 0 0 clamp(18px, 2vw, 28px);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}
h1 {
  font-size: clamp(3rem, 6vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: clamp(22px, 2.4vw, 34px);
}
h1 .line { display: block; }
.lede {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.4;
  max-width: 34ch;
  margin: 0 0 clamp(30px, 3.2vw, 44px);
}

.hero-media { margin: 0; overflow: hidden; } /* clips the unveil scale so it never widens the page */
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 702 / 448;
  object-fit: cover;
  object-position: 60% 50%;
  background: #e9cfc4;
}
.hero-media figcaption {
  padding-top: 14px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-block: clamp(40px, 4.5vw, 72px);
}
.pillar { padding-right: clamp(24px, 4vw, 72px); }
.pillar + .pillar {
  border-left: 1px solid var(--rule);
  padding-left: clamp(24px, 4vw, 64px);
  padding-right: 0;
}
.pillars h2 {
  font-size: clamp(1.9rem, 2.9vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.6em;
}
.pillars p { font-size: clamp(1.05rem, 1.25vw, 1.18rem); line-height: 1.6; max-width: 52ch; margin: 0; }

/* Services: one tinted band to change the pace */
.services { background: var(--blush); }
.services-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(36px, 6vw, 110px);
  padding-block: clamp(56px, 7vw, 112px);
}
.services-intro h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0.6em;
}
.services-intro p { margin: 0; max-width: 40ch; font-size: clamp(1.05rem, 1.25vw, 1.18rem); line-height: 1.6; }
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3vw, 44px) clamp(28px, 4vw, 64px);
  align-content: start;
}
.service-list li { border-top: 1px solid var(--rule); padding-top: 18px; }
.service-list h3 { font-size: clamp(1.35rem, 1.7vw, 1.6rem); line-height: 1.2; margin-bottom: 0.35em; }
.service-list p { margin: 0; line-height: 1.55; }

/* Contact */
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  flex-wrap: wrap;
  padding-block: clamp(56px, 6vw, 96px);
}
.contact h2 { font-size: clamp(2.1rem, 3.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; }
.contact p { margin: 0.35em 0 0; font-size: clamp(1.05rem, 1.35vw, 1.28rem); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; position: relative; }
.contact-actions .btn { font-size: 1.05rem; }
.copy { min-width: 9.5em; padding: 0.8em 1.85em; }
.copy-status {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
footer { padding-bottom: 28px; }
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-top: 18px;
  color: var(--raspberry);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* Motion: one entrance for the hero, a quiet rise for what follows */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: unveil 1.4s var(--ease) 0.1s both; }
  .eyebrow, h1 .line, .lede, .hero-copy .btn { animation: rise 1s var(--ease) both; }
  .eyebrow { animation-delay: 0.15s; }
  h1 .line:nth-child(1) { animation-delay: 0.25s; }
  h1 .line:nth-child(2) { animation-delay: 0.37s; }
  .lede { animation-delay: 0.5s; }
  .hero-copy .btn { animation-delay: 0.62s; }
  .hero-media figcaption { animation: fade 1s ease 1s both; }

  /* One-shot, time-based reveal: always finishes fully opaque. Hidden only when JS is running. */
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes unveil {
  from { clip-path: inset(0 0 0 100%); transform: scale(1.06); }
  to   { clip-path: inset(0 0 0 0); transform: scale(1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Tablet */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
  .services-inner { grid-template-columns: 1fr; }
  .contact { flex-direction: column; align-items: flex-start; }
  .copy-status { left: 0; right: auto; }
}

/* Phone */
@media (max-width: 820px) {
  .site-header { padding-block: 16px 4px; }
  .nav-link { display: none; }
  .btn-outline { font-size: 0.92rem; padding: 0.55em 1.35em; }

  .hero { grid-template-columns: 1fr; row-gap: 36px; padding-bottom: 36px; }
  .wrap-left { padding-right: var(--gutter); }
  .hero-copy { padding-top: 36px; }
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.24em; }
  h1 { font-size: clamp(2.7rem, 12.5vw, 4.2rem); }
  .btn-lg { font-size: 1.15rem; }
  .hero-media figcaption { padding-inline: var(--gutter); font-size: 0.82rem; }

  .pillars { grid-template-columns: 1fr; padding-block: 0; }
  .pillars h2, .services-intro h2 { font-size: clamp(1.55rem, 7.4vw, 2.4rem); }
  .pillar, .pillar + .pillar { padding: 40px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--rule); }

  .service-list { grid-template-columns: 1fr; }

  .contact-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .contact-actions .btn { width: 100%; }
  .btn-solid .icon { margin-left: auto; }
  .contact-actions .btn-solid { justify-content: flex-start; }
  .copy-status { position: static; text-align: center; }

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

/* Small phones: taller crop so the arch keeps presence */
@media (max-width: 600px) {
  .hero-media img { aspect-ratio: 4 / 3.3; }
}
