/*
  Rooted Intimacy · redesign v1 (2.12.2026)
  Concept: the scroll goes from the head down into the body and the ground.
  Light at the top, teal in the middle, deep earth-teal at the end.
  Signature: one thin root line that grows through the three areas of the work.
  Fonts: Frank Re (headings) + Simona Pro (text), from Roei's licensed library.
  Colors: the four existing brand values only (#F6F8F6, #114B5F, #DF9A57) + one deeper teal for the ground.
*/

@font-face { font-family: "Frank Re"; src: url("assets/fonts/frank-re-regular-aaa.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Simona Pro"; src: url("assets/fonts/SimonaPro-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Simona Pro"; src: url("assets/fonts/SimonaPro-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #F6F8F6;
  --teal: #114B5F;
  --deep: #0B3644;
  --accent: #DF9A57;
  --line: rgba(17, 75, 95, .16);
  --line-light: rgba(246, 248, 246, .16);

  --serif: "Frank Re", Georgia, "Times New Roman", serif;
  --sans: "Simona Pro", "Helvetica Neue", Arial, sans-serif;

  --gutter: 40px;
  --container: 1760px;
  --header: 84px;
  --S: clamp(80px, 8.5vw, 144px);
  --gap: clamp(40px, 4.4vw, 88px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --fs-h1: clamp(36px, calc(4vw + 6px), 84px);
  --fs-h2: clamp(28px, calc(2.4vw + 8px), 54px);
  --fs-h3: clamp(22px, calc(1vw + 12px), 32px);
  --fs-lead: clamp(19px, calc(.6vw + 12px), 23px);
  --fs-body: clamp(17px, calc(.2vw + 15px), 19px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--teal);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
p { margin: 0 0 1.1em; max-width: 38em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
strong, b { font-weight: 700; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--teal); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.voices :focus-visible, .closing :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.h1, .h2, .h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.012em; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.01em; margin-bottom: .55em; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; margin-bottom: .45em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  background: var(--accent); color: var(--deep);
  font-family: var(--sans); font-weight: 700; font-size: var(--fs-body); line-height: 1;
  text-decoration: none; white-space: nowrap;
  border-radius: 999px;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--teal); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 46px; padding: 0 24px; }
.voices .btn:hover, .closing .btn:hover { background: var(--bg); color: var(--deep); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header);
  pointer-events: none;
}
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-row > * { pointer-events: auto; }
.logo {
  display: flex; align-items: center;
  height: 46px; padding: 0 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.logo-img { width: 210px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding-top: var(--header);
  display: flex; align-items: center;
}
.hero-grid { display: flex; align-items: center; min-height: calc(100svh - var(--header)); }
.hero-text { width: calc(54vw - var(--gutter) - var(--gap)); max-width: 820px; padding-block: 64px; }
.hero-text .h1 { margin-bottom: .42em; }
.hero-text .lead { max-width: 31em; margin-bottom: 2.1em; }
.hero-media {
  position: absolute; top: var(--header); right: 0; bottom: 0;
  width: 46vw;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }

.enter { opacity: 0; transform: translateY(16px); animation: enter .9s var(--ease) forwards; }
.enter:nth-child(2) { animation-delay: .12s; }
.enter:nth-child(3) { animation-delay: .24s; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ---------- Sections: light run counts the space once ---------- */
.section { padding-block: 0 var(--S); }
.about-work { padding-top: var(--S); }

/* 2. Statement: the sentence is the area's one focal point (declared exception: just under H1, two lines beside the explanation) */
.aw-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
.aw-statement {
  grid-column: 1 / 6;
  font-family: var(--serif); font-weight: 400;
  font-size: calc(var(--fs-h1) * .92); line-height: 1.04; letter-spacing: -.012em;
  margin: 0; text-wrap: balance;
}
.aw-text {
  grid-column: 7 / 13;
  padding-block: 8px;
  padding-left: clamp(32px, 3vw, 56px);
  border-left: 1px solid var(--line);
}
.aw-text .lead { margin-bottom: 1.2em; }

/* 3. The work */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
.work-media { grid-column: 1 / 6; position: sticky; top: calc(var(--header) + 40px); }
.work-media img { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header) - 80px); object-fit: cover; object-position: 60% 40%; border-radius: var(--radius); }
.work-text { grid-column: 7 / 13; padding-top: 8px; }
.work-text .lead { margin-bottom: 2.6em; }

.pillars { position: relative; padding-left: 52px; }
.root { position: absolute; left: 7px; top: 12px; width: 1px; height: var(--root-h, 70%); background: var(--line); }
.root-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--root-p, 0)); }
.pillar { position: relative; padding-bottom: 52px; }
.pillar:last-child { padding-bottom: 0; }
.node {
  position: absolute; left: -52px; top: 6px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--teal);
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
.pillar.is-on .node { background: var(--accent); border-color: var(--accent); }

/* 4. How */
.how-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
.how-head { grid-column: 1 / 6; position: sticky; top: calc(var(--header) + 40px); }
.how-cta { margin-top: 8px; }
.steps { grid-column: 7 / 13; }
.step { padding-block: 40px; border-top: 1px solid var(--line); }
.step:first-child { padding-top: 0; border-top: 0; }
.step:last-child { padding-bottom: 0; }

/* 5. About */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
.about-text { grid-column: 1 / 7; }
.about-text .h2 { margin-bottom: .75em; }
.about-media { grid-column: 8 / 13; position: sticky; top: calc(var(--header) + 40px); }
.about-media img { width: 100%; aspect-ratio: 3 / 4; max-height: calc(100vh - var(--header) - 80px); object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); }
.pull { margin: 2em 0; padding-left: 28px; border-left: 2px solid var(--accent); }
.pull p { font-size: var(--fs-lead); line-height: 1.5; max-width: 30em; }
.about-cta { margin-top: 2.4em; }

/* 6. Voices */
.voices { position: relative; isolation: isolate; background: var(--teal); color: var(--bg); padding-block: var(--S); overflow: hidden; }
.voices::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("assets/img/foliage.webp") center / cover no-repeat;
  opacity: .08;
}
.voices .h2 { margin-bottom: 1.2em; max-width: 14em; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.quote {
  display: flex; flex-direction: column;
  padding: 40px 36px 36px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
}
.quote::before { content: "“"; font-family: var(--serif); font-size: 72px; line-height: .6; color: var(--accent); height: 34px; margin-bottom: 18px; }
.quote blockquote p { font-size: var(--fs-body); line-height: 1.6; max-width: none; }
.quote figcaption { margin-top: auto; padding-top: 28px; font-size: var(--fs-body); line-height: 1.35; font-weight: 700; }

/* 7. Closing */
.closing { position: relative; background: var(--deep); color: var(--bg); min-height: clamp(620px, 92vh, 1000px); display: flex; align-items: center; }
.closing-media { position: absolute; top: 0; bottom: 0; left: 0; width: 50vw; }
.closing-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.closing-media::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 28%; background: linear-gradient(to right, rgba(11, 54, 68, 0), var(--deep)); }
.closing-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; padding-block: var(--S); }
.closing-text { grid-column: 8 / 13; }
.closing-text .lead { margin-bottom: 2em; }

/* ---------- Accessibility page ---------- */
.legal { padding-block: calc(var(--header) + 64px) var(--S); }
.legal-wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal .h2 { margin-bottom: .5em; }
.legal .h3 { margin-top: 1.8em; }
.legal ul { margin: 0 0 1.1em; padding-left: 1.2em; max-width: 38em; }
.legal li { margin-bottom: .6em; }
.legal a { text-underline-offset: 3px; }
.legal-date { margin-top: 2.4em; opacity: .8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--bg); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 40px 48px; border-top: 1px solid var(--line-light); }
.footer-logo { width: 180px; }
.social { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.social a { text-decoration: none; font-size: var(--fs-body); opacity: .92; transition: color .3s var(--ease); }
.social a:hover { color: var(--accent); }
.copy { font-size: var(--fs-body); margin: 0; opacity: .8; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 62px; height: 62px; border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 6px 20px rgba(11, 54, 68, .22);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.wa-float.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.wa-float img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.wa-badge { position: absolute; left: -4px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: #25D366; display: grid; place-items: center; border: 2px solid var(--bg); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1099px) {
  .quotes { grid-template-columns: 1fr; max-width: 720px; }
  .quote { padding: 32px 28px 28px; }
}

@media (max-width: 899px) {
  :root { --gutter: 20px; --header: 68px; --S: clamp(72px, 14vw, 104px); --fs-lead: var(--fs-body); }
  .logo-img { width: 120px; }
  .btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
  .logo { height: 42px; padding: 0 16px; }

  .hero { display: block; padding-top: calc(var(--header) + 8px); min-height: 100svh; }
  .hero-media { position: static; width: auto; height: 52svh; margin-inline: var(--gutter); }
  .hero-media img { border-radius: var(--radius); }
  .hero-grid { min-height: 0; }
  .hero-text { width: 100%; padding-block: 28px 40px; }
  .hero-text .lead { margin-bottom: 1.6em; }

  .work-grid, .about-grid, .closing-grid, .aw-grid { display: block; }
  .aw-text { margin-top: 32px; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .how-grid { display: flex; flex-direction: column; }
  .how-head { display: contents; }
  .how-head .h2 { order: 1; }
  .steps { order: 2; }
  .how-cta { order: 3; margin-top: 40px; }
  .how-head .h2 { margin-bottom: 1em; }
  .work-media, .how-head, .about-media { position: static; }
  .work-media { margin-bottom: 40px; }
  .work-media img, .about-media img { max-height: none; }
  .about-media { margin-top: 48px; max-width: 520px; }

  .pillars { padding-left: 40px; }
  .node { left: -40px; }

  .closing { display: block; min-height: 0; }
  .closing-media { position: static; width: auto; margin: 0 var(--gutter); aspect-ratio: 4 / 5; max-height: 80svh; }
  .closing-media::after { display: none; }
  .closing-media img { border-radius: var(--radius); }
  .closing-grid { padding-block: 48px var(--S); }

  .footer-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .wa-float { right: 20px; bottom: 20px; width: 56px; height: 56px; }
}

@media (max-width: 899px) and (min-width: 600px) {
  .hero-media { height: 58svh; }
  .closing-media { max-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .enter, .js .reveal { opacity: 1; transform: none; }
  .root-fill { transform: scaleY(1); }
}
