/* ==========================================================================
   Sheila Oliveira · Personal Organizer
   ========================================================================== */

:root {
  --bg: #f4efe7;
  --paper: #fbf8f3;
  --sand: #e9e0d2;
  --sand-2: #ddd1bd;
  --ink: #1e2a22;
  --ink-soft: #4d5a50;
  --forest: #34463a;
  --forest-2: #29382e;
  --night: #19231c;
  --moss: #5f7361;
  --sage: #a9b6a4;
  --sage-l: #d7ddd1;
  --clay: #b98a6a;
  --clay-l: #d9b89f;
  --line: rgba(30, 42, 34, 0.14);
  --line-light: rgba(244, 239, 231, 0.18);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Mrs Saint Delafield", "Brush Script MT", cursive;

  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(96px, 13vw, 190px);
  --max: 1400px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 84px;
}

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

html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }

/* Scrollbar */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: var(--sage) var(--bg); }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--moss); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; text-wrap: balance; }
em { font-style: italic; }
strong { font-weight: 600; }
::selection { background: var(--forest); color: var(--bg); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 2000;
  background: var(--forest); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  transition: top .3s var(--ease);
}
.skip:focus { top: 16px; }

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

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-soft); margin-bottom: 28px;
}
.eyebrow .num {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; letter-spacing: 0;
  text-transform: none; color: var(--clay);
}
.eyebrow--light { color: rgba(244, 239, 231, 0.7); }
.eyebrow--light .num { color: var(--clay-l); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); display: inline-block; }

.h2 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 0.5em;
  max-width: 17ch;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h2 em, .h3 em { color: var(--clay); font-weight: 300; }
.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 34ch;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 28px; font-weight: 500; font-size: 0.97rem; letter-spacing: 0.01em;
  border-radius: 999px; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), background-color .5s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--dark { background: var(--forest); color: var(--bg); }
.btn--dark::before { background: var(--night); }
.btn--light { background: var(--bg); color: var(--forest); }
.btn--light::before { background: var(--clay-l); }
.btn--pill { border: 1px solid transparent; }
.btn--small { padding: 11px 20px; font-size: 0.88rem; background: var(--forest); color: var(--bg); }
.btn--small::before { background: var(--clay); }
.btn--block { width: 100%; }

.link-arrow {
  position: relative; font-weight: 500; font-size: 0.97rem; padding-bottom: 4px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor;
  transform-origin: right; transition: transform .6s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(0); }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  animation: loaderFailsafe 0s 6s forwards;
  transition: transform 1s var(--ease-in-out);
}
.loader.is-done { transform: translateY(-100%); }
.loader.is-gone, .no-loader .loader { display: none !important; }
.loader__stack { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; }
.loader__stack span {
  display: block; height: 15px; border-radius: 999px;
  opacity: 0; transform: translateY(-40vh) rotate(-8deg);
  animation: drop .9s var(--ease) forwards;
}
.loader__stack span:nth-child(1) { width: 132px; background: var(--moss); animation-delay: .05s; }
.loader__stack span:nth-child(2) { width: 124px; background: var(--sage); animation-delay: .22s; transform: translateY(-40vh) rotate(6deg); }
.loader__stack span:nth-child(3) { width: 130px; background: var(--sand-2); animation-delay: .39s; }
.loader__stack span:nth-child(4) { width: 118px; background: var(--clay); animation-delay: .56s; transform: translateY(-40vh) rotate(10deg); }
.loader__word { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); margin: 0; }
.loader__dots i { font-style: normal; animation: blink 1.2s infinite; opacity: .2; }
.loader__dots i:nth-child(2) { animation-delay: .2s; }
.loader__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes drop { to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes blink { 50% { opacity: 1; } }
@keyframes loaderFailsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }

/* ---------- Grain + cursor ---------- */
.grain {
  position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: .07; transform: translateZ(0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 950; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
  .cursor__dot { width: 6px; height: 6px; background: var(--clay); }
  .cursor__ring {
    width: 38px; height: 38px; border: 1px solid rgba(185, 138, 106, .7);
    transition: width .4s var(--ease), height .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease), opacity .3s;
  }
  .cursor.is-hover .cursor__ring { width: 70px; height: 70px; background: rgba(185, 138, 106, .12); border-color: transparent; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 500;
  display: flex; align-items: center; gap: 32px;
  height: var(--header-h); padding: 0 var(--gutter);
  transition: transform .6s var(--ease), background-color .5s var(--ease), height .5s var(--ease), box-shadow .5s var(--ease);
}
.header.is-scrolled {
  --header-h: 68px;
  background: rgba(244, 239, 231, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; flex-direction: column; line-height: 1; margin-right: auto; position: relative; z-index: 2; }
.brand__name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.01em; }
.brand__role { font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.nav { display: none; gap: 34px; font-size: 0.92rem; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.header__cta { display: none; }

.burger {
  position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease), background-color .3s;
}
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.menu-open .burger { border-color: var(--line-light); color: var(--bg); }
.menu-open .burger span:first-child { transform: rotate(45deg); }
.menu-open .burger span:last-child { transform: rotate(-45deg); }
.menu-open .brand { color: var(--bg); }
.menu-open .brand__role { color: rgba(244, 239, 231, .6); }
.menu-open .header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }

@media (min-width: 640px) { .header__cta { display: inline-flex; } }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .burger { display: none; }
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 400; background: var(--forest); color: var(--bg);
  clip-path: circle(0% at calc(100% - var(--gutter) - 23px) 42px);
  transition: clip-path .9s var(--ease-in-out); visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - var(--gutter) - 23px) 42px); visibility: visible; }
.menu__inner {
  height: 100%; display: flex; flex-direction: column; justify-content: safe center; overflow-y: auto;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
}
.menu__list { list-style: none; margin: 0 0 40px; padding: 0; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: flex; align-items: baseline; gap: 16px; padding: 6px 0;
  font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1.12; letter-spacing: -0.02em;
  transform: translateY(110%); transition: transform .8s var(--ease);
}
.menu__list a em { font-variant-numeric: tabular-nums; font-size: 0.85rem; font-family: var(--sans); font-style: normal; letter-spacing: .1em; color: var(--clay-l); }
.menu-open .menu__list a { transform: translateY(0); }
.menu__list li:nth-child(1) a { transition-delay: .25s; }
.menu__list li:nth-child(2) a { transition-delay: .3s; }
.menu__list li:nth-child(3) a { transition-delay: .35s; }
.menu__list li:nth-child(4) a { transition-delay: .4s; }
.menu__list li:nth-child(5) a { transition-delay: .45s; }
.menu__list li:nth-child(6) a { transition-delay: .5s; }
.menu__quote { font-family: var(--serif); font-style: italic; color: rgba(244, 239, 231, .6); max-width: 26ch; text-wrap: balance; opacity: 0; transition: opacity .6s .6s; }
.menu-open .menu__quote { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center; gap: 48px;
  padding: calc(var(--header-h) + 32px) var(--gutter) 72px;
  max-width: var(--max); margin-inline: auto;
}
.hero__eyebrow { margin-bottom: 32px; }
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.6rem, 1.5rem + 7.4vw, 8.6rem);
  line-height: 0.96; letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 36px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line__in { display: inline-block; }
.hero__title em { color: var(--clay); padding-right: .06em; }
.hero__lead { max-width: 40ch; color: var(--ink-soft); font-size: clamp(1.02rem, .95rem + .3vw, 1.16rem); margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; }

.hero__art { position: relative; width: min(100%, 520px); justify-self: center; }
.shelf { width: 100%; height: auto; overflow: visible; }
.shelf__wall { fill: #ebe3d5; }
.shelf__sun { fill: #f3ede3; }
.shelf__floor { fill: #ded2bf; }
.cab__back { fill: #f7f2ea; }
.cab__wood { fill: #d5c5aa; }
.shelf .towel path { stroke: rgba(30, 42, 34, .09); stroke-width: 2; stroke-linecap: round; fill: none; }
.shelf .weave { stroke: #b39b77; stroke-width: 1.5; fill: none; }
.lamp__cord { stroke: var(--ink); stroke-width: 1.4; }
.lamp__shade { fill: var(--forest); }
.lamp__glow { fill: #f7dfae; opacity: .75; }
.shelf__outline { fill: none; stroke: rgba(30, 42, 34, .18); stroke-width: 1.5; }


.scroll-cue {
  display: none; position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; background: var(--line); overflow: hidden;
}
.scroll-cue span { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--ink); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr .85fr; gap: 5vw; padding-bottom: 96px; }
  .hero__art { justify-self: end; }
  .scroll-cue { display: block; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--forest); color: var(--bg); overflow: hidden; padding: clamp(18px, 2.4vw, 30px) 0; }
.marquee__track {
  display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); width: max-content;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.4rem); line-height: 1; white-space: nowrap;
  will-change: transform;
}
.marquee__track i { font-style: normal; color: var(--clay-l); font-size: .5em; }
html:not(.js) .marquee__track, .reduced .marquee__track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { display: grid; gap: clamp(48px, 7vw, 120px); align-items: center; }
.about__media { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.arch-photo {
  margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 9999px 9999px 0 0; background: var(--sand);
}
.arch-photo img { width: 100%; height: 118%; object-fit: cover; object-position: 30% 40%; transform: translateY(-8%); }
.about__caption {
  margin-top: 18px; font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 0.98rem;
}
.about__text p:not(.eyebrow):not(.lead) { max-width: 46ch; color: var(--ink-soft); }
.about__text .lead { margin-bottom: 1.2em; }
.about__text .lead strong { font-weight: 500; color: var(--forest); }
@media (min-width: 900px) {
  .about { grid-template-columns: .9fr 1.1fr; }
}

/* ---------- Manifesto ---------- */
.manifesto { background: var(--sand); padding: clamp(110px, 16vw, 240px) var(--gutter); }
.manifesto__text {
  margin: 0 auto; max-width: 15ch; text-align: center; text-wrap: balance;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 1.2rem + 5.4vw, 6.4rem); line-height: 1.1; letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
}
.manifesto__text em { color: var(--clay); white-space: nowrap; padding-right: .06em; }
.manifesto__text .w { display: inline-block; opacity: .14; transition: opacity .2s linear; }

/* ---------- Process ---------- */
.process { background: var(--forest); color: var(--bg); }
.process .h2 em { color: var(--clay-l); }
.process .lead { color: rgba(244, 239, 231, .78); max-width: 42ch; }

.process__pin { padding: var(--section-y) var(--gutter); max-width: var(--max); margin-inline: auto; }
.process__grid { display: grid; gap: 40px; align-items: center; }

.phase-box { margin-top: 2em; padding-top: 1.6em; border-top: 1px solid var(--line-light); max-width: 40ch; }
.phase-box__count { font-family: var(--serif); font-style: italic; color: var(--clay-l); font-size: 1rem; margin-bottom: .6em; font-variant-numeric: tabular-nums; }
.phase-box__items { display: grid; gap: 28px; }
.phase-item__title { font-family: var(--serif); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 10px; }
.phase-item__desc { color: rgba(244, 239, 231, .75); margin: 0; }
.phase-item__desc strong { color: var(--bg); font-weight: 500; }

/* While pinned, only the current phase is shown and the text swaps with the animation */
.process.is-pinnable .phase-box__items { gap: 0; overflow: hidden; }
.process.is-pinnable .phase-item {
  grid-area: 1 / 1; opacity: 0; transform: translateY(40px); pointer-events: none;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.process.is-pinnable .phase-item.is-past { transform: translateY(-40px); }
.process.is-pinnable .phase-item.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }

.stage-wrap { width: 100%; max-width: 620px; justify-self: center; }
.stage {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  background: radial-gradient(120% 100% at 30% 0%, #3c5043 0%, var(--forest-2) 70%);
  box-shadow: inset 0 0 0 1px var(--line-light); overflow: hidden;
}
.obj {
  position: absolute; left: 0; top: 0; border-radius: 999px;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .45);
  will-change: transform;
}
.obj::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; margin-top: -1px;
  background: rgba(0, 0, 0, .08); border-radius: 2px;
}
.obj--misc { border-radius: 8px; }
.obj--misc::after { display: none; }
.obj--round { border-radius: 50%; }
.stage__cabinet {
  position: absolute; left: 7%; right: 7%; top: 13%; bottom: 12%;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 2px solid rgba(217, 184, 159, .55); border-radius: 10px;
  opacity: 0;
}
.stage__cabinet::after { content: ""; position: absolute; left: 0; right: 0; top: 49.33%; height: 2px; background: rgba(217, 184, 159, .55); }
.stage__cabinet span { border-right: 2px solid rgba(217, 184, 159, .55); }
.stage__cabinet span:last-child { border-right: 0; }
.stage__progress { height: 2px; background: var(--line-light); margin-top: 20px; border-radius: 2px; overflow: hidden; }
.stage__progress span { display: block; height: 100%; width: 100%; background: var(--clay-l); transform-origin: left; transform: scaleX(0); }

/* Pinned layout on phones: compact text above the stage */
@media (max-width: 899px) {
  .process.is-pinnable .process__pin { min-height: 100vh; min-height: 100svh; padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; }
  .process.is-pinnable .process__grid { gap: 20px; width: 100%; }
  .process.is-pinnable .eyebrow { margin-bottom: 14px; }
  .process.is-pinnable .h2 { font-size: clamp(1.8rem, 7.4vw, 2.4rem); margin-bottom: .35em; }
  .process.is-pinnable .lead { font-size: 1rem; }
  .process.is-pinnable .phase-box { margin-top: 1em; padding-top: 1em; }
  .process.is-pinnable .phase-box__count { margin-bottom: .3em; font-size: .9rem; }
  .process.is-pinnable .phase-item__title { font-size: 1.7rem; margin-bottom: 6px; }
  .process.is-pinnable .phase-item__desc { font-size: .95rem; line-height: 1.55; }
  .process.is-pinnable .stage-wrap { max-width: min(100%, 44svh); }
  .process.is-pinnable .stage__progress { margin-top: 12px; }
}
@media (max-width: 899px) and (max-height: 880px) {
  .process.is-pinnable .lead { display: none; }
}
@media (min-width: 900px) {
  .process__grid { grid-template-columns: .9fr 1.1fr; gap: 6vw; }
  .process.is-pinnable .process__pin { height: 100vh; display: flex; align-items: center; padding-top: calc(var(--header-h) - 10px); padding-bottom: 40px; }
  .process.is-pinnable .process__grid { width: 100%; }
  .process.is-pinnable .h2 { font-size: clamp(2.3rem, 1.2rem + 2.6vw, 4.2rem); }
  .process.is-pinnable .stage-wrap { max-width: min(620px, 76vh); }
}

/* ---------- Services ---------- */
.services__head { display: grid; gap: 0 48px; margin-bottom: clamp(40px, 6vw, 80px); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.svc {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto;
  grid-template-areas: "icon num arrow" "icon title arrow" "icon desc arrow";
  align-content: center; gap: 4px 22px; padding: 26px 26px 28px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: color .6s var(--ease), border-color .6s var(--ease);
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--forest);
  transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease);
}
.svc__num { grid-area: num; font-family: var(--serif); font-style: italic; color: var(--clay); font-size: 1rem; }
.svc__title {
  grid-area: title; font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1.08; letter-spacing: -0.02em;
}
.svc__desc { grid-area: desc; margin: 0; color: var(--ink-soft); max-width: 36ch; font-size: .95rem; line-height: 1.55; transition: color .6s var(--ease); }
.svc__icon {
  grid-area: icon; align-self: center; width: 52px; height: 52px; fill: none; stroke: var(--forest); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .6s var(--ease), transform .8s var(--ease);
}
.svc__arrow {
  grid-area: arrow; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; align-self: center;
  transition: background-color .6s var(--ease), border-color .6s var(--ease), transform .6s var(--ease);
}
.svc__arrow::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.svc__arrow svg { transition: transform .6s var(--ease); width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (hover: hover) {
  .svc:hover { color: var(--bg); border-color: var(--forest); }
  .svc:hover::before { transform: scaleY(1); }
  .svc:hover .svc__desc { color: rgba(244, 239, 231, .78); }
  .svc:hover .svc__icon { stroke: var(--clay-l); transform: scale(1.06); }
  .svc:hover .svc__arrow { background: var(--clay); border-color: var(--clay); }
  .svc:hover .svc__arrow svg { transform: rotate(45deg); }
}

.svc-list { grid-template-columns: repeat(2, 1fr); }
.svc:last-child { grid-column: 1 / -1; }
@media (max-width: 639px) {
  .svc-list { grid-template-columns: 1fr; gap: 10px; }
  .svc {
    grid-template-columns: auto 1fr auto; grid-template-rows: auto auto;
    grid-template-areas: "icon title arrow" "icon desc arrow";
    min-height: 0; padding: 18px 18px 20px; border-radius: 18px; gap: 4px 16px;
  }
  .svc__num { display: none; }
  .svc__arrow { width: 34px; height: 34px; align-self: center; }
  .svc__arrow svg { width: 14px; height: 14px; }
  .svc__icon { width: 42px; height: 42px; }
  .svc__title { font-size: 1.35rem; }
  .svc__desc { font-size: .88rem; line-height: 1.45; }
}
@media (min-width: 900px) {
  .services__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .services__head .eyebrow { grid-column: 1 / -1; }
  .svc-list { grid-template-columns: repeat(6, 1fr); gap: 18px; }
  .svc { grid-column: span 2; padding: 30px 30px 32px; }
  .svc:nth-child(-n+2) { grid-column: span 3; }
  .svc:nth-child(n+3) .svc__title { font-size: clamp(1.5rem, 0.9rem + 1vw, 1.95rem); }
  .svc:nth-child(n+3) { gap: 4px 18px; padding-inline: 26px; }
  .svc:last-child { grid-column: span 2; }
}

/* ---------- Benefits ---------- */
.benefits { background: var(--sand); }
.benefits__inner { padding-block: clamp(80px, 10vw, 140px); }
.benefits .h3 { max-width: 20ch; margin-bottom: clamp(40px, 5vw, 64px); }
.benefits__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.benefit { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.benefit__k { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); color: var(--forest); margin-bottom: 12px; line-height: 1; }
.benefit p { color: var(--ink-soft); max-width: 28ch; margin: 0; }
@media (min-width: 900px) {
  .benefits__grid { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .benefit { border-bottom: 0; padding: 36px 28px 40px; border-left: 1px solid var(--line); }
  .benefit:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Portfolio ---------- */
.portfolio__head { margin-bottom: clamp(40px, 5vw, 72px); }
.bento { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.bento__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 1; }
.bento__item--big { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.bento__img { position: absolute; inset: 0; overflow: hidden; }
.bento__img img { width: 100%; height: 112%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento__item:hover .bento__img img { transform: scale(1.04); }
.bento__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px;
  display: flex; flex-direction: column; color: var(--bg);
  background: linear-gradient(to top, rgba(25, 35, 28, .72), rgba(25, 35, 28, 0));
}
.bento__item figcaption span { font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); line-height: 1.2; }
.bento__item figcaption em { font-size: .82rem; opacity: .8; font-style: normal; letter-spacing: .04em; }
.bento__cta {
  grid-column: 1 / -1; border-radius: var(--radius); background: var(--forest); color: var(--bg);
  padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 220px; position: relative; overflow: hidden; isolation: isolate;
}
.bento__cta::after {
  content: ""; position: absolute; right: -30%; top: -60%; width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 138, 106, .35), transparent 65%); z-index: -1; transition: transform 1.2s var(--ease);
}
.bento__cta:hover::after { transform: translate(-12%, 14%) scale(1.15); }
.bento__cta-k { font-family: var(--serif); font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 14ch; }
.bento__cta-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.bento__cta-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.bento__cta:hover .bento__cta-link svg { transform: translateX(6px); }

@media (min-width: 900px) {
  .bento { grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: auto 1fr; gap: 20px; }
  .bento__item--big { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: 5 / 6.4; }
  .bento__cta { grid-column: 2 / -1; grid-row: 2; min-height: 0; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 32px 80px; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--serif); font-size: clamp(1.18rem, 1.05rem + .6vw, 1.5rem); line-height: 1.3; letter-spacing: -0.01em;
  transition: color .4s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--moss); }
.qa__icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: background-color .4s var(--ease), border-color .4s; }
.qa__icon::before, .qa__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor;
  transition: transform .5s var(--ease);
}
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { background: var(--forest); border-color: var(--forest); color: var(--bg); }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa__body { overflow: hidden; }
.qa__body p { padding: 0 60px 28px 0; color: var(--ink-soft); max-width: 60ch; }
@media (min-width: 900px) {
  .faq { grid-template-columns: .8fr 1.2fr; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}

/* ---------- Contact ---------- */
.contact { background: var(--forest-2); color: var(--bg); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 70vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%;
  left: -20vw; top: -30%; background: radial-gradient(circle, rgba(169, 182, 164, .16), transparent 62%); pointer-events: none;
}
.contact__inner { position: relative; display: grid; gap: 56px; }
.contact__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.8rem, 1.4rem + 5.6vw, 6.4rem); line-height: .98; letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144; margin-bottom: .45em; max-width: 12ch;
}
.contact__title em { color: var(--clay-l); }
.contact .lead { color: rgba(244, 239, 231, .78); max-width: 38ch; }
.contact__links { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
.contact__links:empty { display: none; }
.contact__links a {
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 1.05rem;
  border-bottom: 1px solid transparent; transition: border-color .4s, color .4s;
}
.contact__links a:hover { color: var(--clay-l); }
.contact__links small { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(244, 239, 231, .55); min-width: 92px; }

.form {
  background: rgba(244, 239, 231, .05); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px); display: grid; gap: 28px; align-self: start;
}
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(244, 239, 231, .3);
  color: var(--bg); font: inherit; font-size: 1.08rem; padding: 26px 0 12px; resize: vertical; border-radius: 0;
  transition: border-color .4s var(--ease);
}
.field textarea { min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--clay-l); }
.field label {
  position: absolute; left: 0; top: 26px; color: rgba(244, 239, 231, .6); pointer-events: none; transform-origin: left top;
  transition: transform .45s var(--ease), color .45s var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-24px) scale(.78); color: var(--clay-l);
}
.field.is-invalid input { border-color: #e7a38a; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { width: 100%; margin-bottom: 14px; color: rgba(244, 239, 231, .6); font-size: .95rem; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(244, 239, 231, .3); font-size: .9rem;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.chips label:hover span { border-color: var(--clay-l); }
.chips input:checked + span { background: var(--clay-l); border-color: var(--clay-l); color: var(--night); }
.chips input:focus-visible + span { outline: 2px solid var(--clay-l); outline-offset: 3px; }
.form__note { font-size: .9rem; color: var(--clay-l); margin: -8px 0 0; min-height: 1.4em; }

@media (max-width: 899px) {
  .contact .form { display: none; }
}
@media (min-width: 900px) {
  .contact__inner { grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start; }
}

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--bg); padding: clamp(64px, 8vw, 110px) var(--gutter) 28px; overflow: hidden; }
.footer__top { max-width: var(--max); margin: 0 auto; display: flex; justify-content: center; text-align: center; }
.footer__quote { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; color: var(--clay-l); margin: 0; }
.footer__bottom {
  max-width: var(--max); margin: clamp(72px, 9vw, 130px) auto 0; padding-top: 24px; border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: .82rem; color: rgba(244, 239, 231, .55);
}

/* ---------- Lightbox ---------- */
.bento__item { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 940; display: flex; flex-direction: column;
  background: rgba(20, 28, 22, .985); color: var(--bg);
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 64px 16px 8px; }
.lightbox__img {
  max-width: min(100%, 1100px); max-height: 100%; object-fit: contain; border-radius: 14px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); transform: scale(.97); transition: transform .45s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__caption { margin: 0; padding: 14px var(--gutter) max(22px, env(safe-area-inset-bottom)); text-align: center; display: flex; flex-direction: column; gap: 2px; }
.lightbox__caption span { font-family: var(--serif); font-size: 1.35rem; }
.lightbox__caption em { font-style: normal; font-size: .85rem; opacity: .75; }
.lightbox__caption small { font-size: .75rem; letter-spacing: .12em; opacity: .5; margin-top: 6px; }
.lightbox button { appearance: none; border: 1px solid var(--line-light); background: rgba(25, 35, 28, .55); color: var(--bg); border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color .3s, border-color .3s; }
.lightbox button:hover { background: var(--clay); border-color: var(--clay); }
.lightbox button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; width: 46px; height: 46px; z-index: 2; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; z-index: 2; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 639px) {
  .lightbox__stage { padding: 70px 0 0; }
  .lightbox__img { border-radius: 0; }
  .lightbox__nav { top: auto; bottom: -58px; transform: none; width: 44px; height: 44px; }
  .lightbox__nav--prev { left: var(--gutter); }
  .lightbox__nav--next { right: var(--gutter); }
}

/* ---------- WhatsApp float ---------- */
.whats {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 300;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--clay); color: #fff; box-shadow: 0 14px 30px -12px rgba(30, 42, 34, .6);
  transform: translateY(140%) scale(.8); opacity: 0; transition: transform .6s var(--ease), opacity .4s, background-color .4s;
}
.whats[hidden] { display: none; }
.whats.is-visible { transform: none; opacity: 1; }
.whats.is-visible.is-away { transform: translateY(140%) scale(.8); opacity: 0; pointer-events: none; }
.whats:hover { background: var(--forest); }
.whats svg { width: 28px; height: 28px; fill: currentColor; }
.menu-open .whats { opacity: 0; pointer-events: none; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }

/* Hero intro (before JS animation takes over) */
.js .hero__title .line__in { transform: translateY(110%); }
.js .hero__eyebrow, .js .hero__lead, .js .hero__actions { opacity: 0; }
.js .hero .item, .js .hero .lamp { visibility: hidden; }
.js.hero-ready .hero .item, .js.hero-ready .hero .lamp { visibility: visible; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.reduced [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.reduced .hero__title .line__in { transform: none !important; }
.reduced .hero__eyebrow, .reduced .hero__lead, .reduced .hero__actions { opacity: 1 !important; }
.reduced .hero .item, .reduced .hero .lamp { visibility: visible !important; }
.reduced .manifesto__text .w { opacity: 1 !important; }
