:root {
  --bg: hsl(30 20% 93%);         /* #f0ece8 warm cream */
  --bg-tint: #eae5df;
  --bg-light: #f7f5f2;
  --fg: hsl(27 19% 20%);         /* #3e332a dark taupe */
  --fg-80: hsl(27 19% 20% / .8);
  --fg-60: hsl(27 19% 20% / .6);
  --border: hsl(30 15% 85%);
  --taupe: hsl(27 28% 61%);
  --taupe-10: hsl(27 28% 61% / .1);
  --taupe-20: hsl(27 28% 61% / .2);
  --taupe-40: hsl(27 28% 61% / .4);
  --taupe-60: hsl(27 28% 61% / .6);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 6rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: hsl(27 19% 20% / .2); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: .025em; margin: 0; }
p { margin: 0; }
em { font-style: italic; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 3rem; } }

.accent { color: var(--taupe); font-weight: 300; }

/* Eyebrow (line — LABEL — line) */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--taupe);
}
.eyebrow.center { justify-content: center; }
.eyebrow-line { height: 1px; width: 2rem; background: var(--taupe-60); }
@media (min-width: 768px) {
  .eyebrow { font-size: .875rem; }
  .eyebrow-line { width: 3rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.btn .arrow {
  width: 1rem; height: 1rem;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: .75rem 1.5rem; gap: .5rem; }
.btn-sm .arrow { width: .75rem; height: .75rem; }
.btn-lg { padding: 1.25rem 2rem; }
.btn-dark { background: var(--fg); color: var(--bg); }
.btn-dark:hover { background: hsl(27 19% 14%); }
.btn-taupe { background: var(--taupe); color: var(--bg); padding-left: 2.5rem; padding-right: 2.5rem; }
.btn-taupe:hover { background: #fff; color: var(--fg); }

/* Navbar */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: hsl(30 20% 93% / .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(30 15% 85% / .4);
}
.navbar-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; align-items: center; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.brand-tag {
  display: flex; align-items: center; gap: .5rem; margin-top: .25rem;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe);
}
.brand-line { height: 1px; width: 1rem; background: hsl(27 28% 61% / .5); transition: width .5s var(--ease); }
.brand:hover .brand-line { width: 1.5rem; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-link { display: none; }
@media (min-width: 1024px) { .nav-link { display: inline-block; } }
@media (max-width: 480px) { .nav-links .btn-sm { padding: .6rem .9rem; letter-spacing: .2em; font-size: .7rem; } }
.nav-link {
  position: relative;
  padding: .5rem 0;
  font-size: .875rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--fg-80);
}
.nav-link:hover { color: var(--fg); }
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--taupe);
  transition: width .5s var(--ease);
}
.nav-link:hover::after { width: 100%; }

@media (max-width: 480px) {
  .brand-name { font-size: 1.15rem; letter-spacing: .16em; }
  .brand-tag { font-size: 8px; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: slow-zoom 20s linear infinite alternate;
}
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.05); } }
.hero-overlay { position: absolute; inset: 0; background: hsl(30 20% 93% / .4); }
.hero-corner {
  position: absolute; top: 8rem; right: 3rem; z-index: 1;
  display: none;
  font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe);
  opacity: 0; animation: fade 1s ease 1s forwards;
}
@media (min-width: 768px) { .hero-corner { display: block; } }

.hero-content { position: relative; z-index: 1; max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}
.hero-word {
  display: inline-block;
  margin-right: .2em;
  opacity: 0;
  animation: rise .8s var(--ease) var(--d, 0s) forwards;
}
.hero-sub {
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: var(--fg-80);
}
.hero-fade { opacity: 0; animation: rise 1s var(--ease) var(--d, 0s) forwards; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

.scroll-cue {
  position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  font-size: 10px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe);
  opacity: 0; animation: fade 1s ease 1.5s forwards;
}
.scroll-line {
  width: 1px; height: 3rem; background: var(--taupe-40); transform-origin: top;
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0) translateY(0); }
  50% { transform: scaleY(1) translateY(0); }
  100% { transform: scaleY(0) translateY(24px); }
}

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 2.5rem 0;
  border-top: 1px solid var(--taupe-10);
  border-bottom: 1px solid var(--taupe-10);
  white-space: nowrap;
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; }
.marquee span { font-size: .875rem; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe); }
.marquee em { font-family: var(--serif); font-size: 1.125rem; letter-spacing: .3em; color: var(--taupe); }
.marquee i { font-style: normal; font-size: .75rem; color: var(--taupe-40); }
@media (min-width: 768px) { .marquee span { font-size: 1rem; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { position: relative; padding: 10rem 0; }
@media (min-width: 768px) { .section { padding: 14rem 0; } }
.section.bordered { border-top: 1px solid var(--taupe-10); overflow: hidden; }
.section.tinted { background: var(--bg-tint); }
.section-head { text-align: center; margin-bottom: 6rem; }

.display { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.15; margin-bottom: 3rem; }
.display.xl { font-size: clamp(3rem, 6vw, 4.5rem); margin-bottom: 2rem; }
.display.md { font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1.2; margin-bottom: 0; }
.section-head .display { margin-bottom: 0; }
.narrow { max-width: 42rem; margin-left: auto; margin-right: auto; }

.body-copy { max-width: 540px; font-size: 1.125rem; line-height: 1.8; color: var(--fg-80); }
.body-copy > * + * { margin-top: 2rem; }
.body-copy.lg { max-width: 36rem; }
.body-copy.lg > * + * { margin-top: 1.5rem; }
@media (min-width: 768px) { .body-copy.lg { font-size: 1.25rem; } }

.grid-2, .grid-founders, .grid-services, .grid-process, .grid-contact {
  display: grid; grid-template-columns: 1fr; gap: 4rem;
}

/* Philosophy */
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 8rem; align-items: center; }
}
.philosophy-image { aspect-ratio: 3 / 4; overflow: hidden; background: var(--border); order: 2; }
.philosophy-image img, .founders-image img, .services-image img, .process-image img, .contact-image img {
  width: 100%; height: 100%; object-fit: cover;
}
@media (min-width: 1024px) { .philosophy-image { order: 0; } }

.for-you { padding: 2rem 0; margin: 2.5rem 0 !important; border-top: 1px solid var(--taupe-20); border-bottom: 1px solid var(--taupe-20); }
.for-you h3 { font-size: 1.5rem; color: var(--fg); margin-bottom: 1.5rem; }
.for-you ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.for-you li { display: flex; gap: 1rem; align-items: flex-start; }
.for-you li span { color: var(--taupe); font-size: .875rem; padding-top: .25rem; }
.tagline { padding-top: 1.5rem; font-family: var(--serif); font-style: italic; font-size: 1.875rem; color: var(--taupe); }

/* Founders */
@media (min-width: 1024px) {
  .grid-founders { grid-template-columns: 5fr 7fr; gap: 6rem; align-items: center; }
}
.founders-image { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
/* The photo fills the top 1060px of the 1350px Instagram post; oversize the
   image so the text band at the bottom falls outside the frame. */
.founders-image img { height: calc(100% * 1350 / 1060); object-position: center top; }
.founders-image .frame { position: absolute; inset: 1rem; border: 1px solid var(--taupe-20); pointer-events: none; }
.signoff { margin-top: 3rem; font-family: var(--serif); font-style: italic; font-size: 2.25rem; color: hsl(27 28% 61% / .8); }

/* Services */
.services-image { aspect-ratio: 4 / 5; overflow: hidden; }
@media (min-width: 1024px) {
  .grid-services { grid-template-columns: 5fr 7fr; gap: 8rem; align-items: start; }
  .services-image { position: sticky; top: 8rem; height: 700px; aspect-ratio: auto; }
}
.services-list { display: flex; flex-direction: column; gap: 4rem; padding: 2rem 0; }
.service { padding-bottom: 4rem; border-bottom: 1px solid var(--taupe-20); }
.service:last-child { border-bottom: 0; }
.service-head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 1.5rem; }
.service-num { font-family: var(--serif); font-size: 3.75rem; font-weight: 300; line-height: 1; color: var(--taupe-40); margin-left: -.25rem; }
.service h3 {
  font-family: var(--sans); font-size: 1.5rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  transition: color .3s ease;
}
.service:hover h3 { color: var(--taupe); }
.service-body p { max-width: 600px; margin-bottom: 1.5rem; font-size: 1.125rem; line-height: 1.8; color: var(--fg-80); }
.pill {
  display: inline-block; padding: .5rem 1rem; border: 1px solid hsl(27 28% 61% / .3);
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe);
}
@media (min-width: 768px) {
  .service-head { flex-direction: row; align-items: baseline; }
  .service-num { font-size: 4.5rem; }
  .service-body { padding-left: 5.5rem; }
}

/* Why work with us */
.why-star { position: absolute; top: 3rem; left: 50%; transform: translateX(-50%); fill: none; stroke: hsl(27 28% 61% / .3); stroke-width: .5; }
.pillars { display: grid; grid-template-columns: 1fr; gap: 5rem 4rem; }
@media (min-width: 768px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar { display: flex; flex-direction: column; }
.pillar-rule { height: 1px; width: 3rem; background: var(--taupe-40); margin-bottom: 1.5rem; }
.pillar-num { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--taupe); margin-bottom: 1rem; }
.pillar-num small { font-family: var(--sans); font-style: normal; font-size: .875rem; letter-spacing: .2em; opacity: .6; }
.pillar h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; }
.pillar p { max-width: 500px; font-size: 1.125rem; line-height: 1.8; color: var(--fg-80); }

/* Process */
.process { background: var(--bg-light); }
.process-amp {
  position: absolute; right: -6rem; top: 25%;
  display: none;
  font-family: var(--serif); font-style: italic; font-size: 30rem; line-height: 1;
  color: var(--taupe); opacity: .2; pointer-events: none;
}
@media (min-width: 1024px) {
  .process-amp { display: block; }
  .grid-process { grid-template-columns: 7fr 5fr; gap: 6rem; }
}
.grid-process { position: relative; z-index: 1; margin-bottom: 8rem; align-items: center; }
.grid-process .display { margin-bottom: 1.5rem; }
.process-image { width: 100%; max-width: 300px; aspect-ratio: 3 / 4; overflow: hidden; justify-self: end; }
.md-only { display: none; }
@media (min-width: 768px) { .md-only { display: inline; } }

.steps { position: relative; z-index: 1; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 3rem; }
.steps li { display: flex; align-items: center; gap: 2rem; }
.step-num { font-family: var(--serif); font-size: 3.75rem; font-weight: 300; line-height: 1; color: var(--taupe); background: var(--bg-light); padding-right: 1.5rem; }
.steps h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
@media (min-width: 768px) {
  .step-num { font-size: 4.5rem; }
  .steps h3 { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .steps::before { content: ""; position: absolute; top: 2.25rem; left: 0; right: 0; height: 1px; background: var(--taupe-20); }
  .steps li { flex-direction: column; align-items: flex-start; gap: 3rem; }
  .step-num { padding-right: 2rem; }
}

/* Contact */
.contact { background: var(--fg); color: var(--bg); }
@media (min-width: 1024px) {
  .grid-contact { grid-template-columns: 7fr 5fr; gap: 6rem; align-items: start; }
}
.contact .display { color: var(--bg); margin-bottom: 1.5rem; }
.eyebrow.light { margin-bottom: 2rem; }
.contact-lead { font-size: 1.25rem; color: hsl(30 20% 93% / .8); margin-bottom: .5rem; }
.contact-note { color: hsl(27 28% 61% / .8); margin-bottom: 4rem; }

.contact-form { display: grid; gap: 3rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: block; }
.contact-form label > span { display: block; margin-bottom: .5rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid hsl(30 20% 93% / .2);
  border-radius: 0;
  color: var(--bg);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 300;
  resize: none;
  transition: border-color .3s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: hsl(30 20% 93% / .25); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--taupe); }
.contact-form .invalid { border-bottom-color: #d99a8a; }
.form-hint { font-size: .875rem; color: hsl(30 20% 93% / .5); margin-top: -1.5rem; }
.contact-form .btn { justify-self: start; }

.contact-side { display: flex; flex-direction: column; gap: 4rem; }
.contact-side .label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-bottom: 1rem; }
.contact-email {
  position: relative; display: inline-block;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  overflow-wrap: anywhere;
}
.contact-email::after {
  content: ""; position: absolute; left: 0; bottom: -.5rem; width: 0; height: 1px; background: var(--taupe);
  transition: width .5s var(--ease);
}
.contact-email:hover::after { width: 100%; }
.contact-image { position: relative; aspect-ratio: 1; width: 66%; margin-left: auto; }
.contact-image img { overflow: hidden; }
@media (min-width: 1024px) { .contact-image { width: 100%; max-width: 28rem; } }
.contact-script {
  position: absolute; bottom: -2rem; left: -2rem;
  font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: hsl(27 28% 61% / .8);
}

/* Footer */
.footer { padding: 4rem 0; border-top: 1px solid hsl(30 15% 85% / .4); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
.footer-logo { height: 4rem; width: auto; opacity: .9; mix-blend-mode: multiply; transition: opacity .3s ease; }
.footer-logo:hover { opacity: 1; }
.footer p { font-size: .875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-60); }

/* Scroll reveal (enabled by main.js) */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.from-left { transform: translateX(-30px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-word, .hero-fade, .hero-corner, .scroll-cue { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
}
