/* =========================================================
   Architecture Models — styles
   Design system: warm off-white background, near-black ink,
   restrained type system (Fraunces serif for display,
   Inter for UI), WhatsApp green only on the primary CTA.
========================================================= */

:root {
  /* color */
  --bg: #F6F3EC;
  --bg-alt: #EFEBE0;
  --surface: #FFFFFF;
  --ink: #111110;
  --ink-2: #2A2A27;
  --muted: #6B6962;
  --line: #DCD6C6;
  --accent: #25D366;        /* WhatsApp green */
  --accent-ink: #075E54;

  /* type */
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 11vw, 160px);

  /* radius / motion */
  --r: 14px;
  --r-sm: 8px;
  --r-lg: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (prefers-color-scheme: dark) {
  /* Keep daylight palette — this is a daytime, gallery-style brand. */
}

/* -------- reset / base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
em { font-style: italic; }

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

/* -------- typography -------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
  font-weight: 500;
}

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }

.section__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 300;
  max-width: 18ch;
}

.section__lede {
  margin-top: 20px;
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
}

/* -------- buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 16px 26px; font-size: 15.5px; }
.btn__icon { flex: 0 0 auto; }

.btn--whatsapp {
  background: var(--accent);
  color: #062b1a;
}
.btn--whatsapp:hover { background: #1ebe5b; }

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* -------- nav -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav__brand-mark {
  display: inline-flex;
  width: 30px; height: 30px;
  align-items: center; justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-inline: auto;
  font-size: 14.5px;
  color: var(--ink-2);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: inline-flex; }

.nav__menu {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.nav__menu span {
  width: 18px; height: 1.5px; background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.nav__drawer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.nav__drawer a:not(.btn) {
  padding: 12px 0;
  font-size: 17px;
  border-bottom: 1px solid var(--line);
}
.nav__drawer .btn { margin-top: 8px; align-self: flex-start; }

/* -------- hero -------- */
.hero {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
}

.hero__lede {
  margin: 36px 0 0;
  max-width: 50ch;
  font-size: clamp(16px, 1.45vw, 19px);
  color: var(--ink-2);
}

.hero__ctas {
  margin: 40px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta {
  margin: 80px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__meta > div { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-key {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta-val {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
}

.hero__art {
  position: absolute;
  inset: 6vw -6vw auto auto;
  width: min(620px, 50vw);
  pointer-events: none;
  color: var(--ink);
  opacity: 0.85;
  z-index: -1;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 50%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 50%, transparent 78%);
}

/* marquee */
.hero__marquee {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 36px);
  color: var(--ink-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: scroll 36s linear infinite;
}
.marquee__track span:nth-child(even) { color: var(--muted); padding: 0 4px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* -------- sections -------- */
.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 70ch; margin-bottom: clamp(40px, 5vw, 72px); }

.section__cta {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.section__cta p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.01em;
}

/* -------- services -------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.service {
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background .25s var(--ease);
  position: relative;
}
.service:hover { background: var(--surface); }
.service__num {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}
.service__title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.service__copy { color: var(--ink-2); margin: 0; }
.service__meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--muted);
}
.service__meta li::after { content: ""; }

/* -------- process -------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}
.process__step {
  position: relative;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}
.process__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}
.process__title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.process__copy { color: var(--ink-2); margin: 0; }

/* -------- social cards -------- */
.social {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}
.social__card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.social__card:hover {
  background: var(--surface);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.social__icon {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}
.social__body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.social__body p { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; }
.social__handle {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.social__card--accent {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.social__card--accent .social__icon {
  border-color: rgba(255,255,255,.16);
  color: var(--accent);
}
.social__card--accent .social__body p,
.social__card--accent .social__handle {
  color: rgba(255,255,255,.7);
}
.social__card--accent:hover { background: #1c1c1a; }

/* -------- portfolio -------- */
.portfolio {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.portfolio__item { margin: 0; aspect-ratio: 4 / 5; }
.portfolio__placeholder {
  height: 100%;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(17,17,16,.025) 22px 23px);
}
.portfolio__placeholder small {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* -------- about -------- */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about__copy p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 56ch;
}
.about__copy p + p { margin-top: 16px; }
.about__sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  margin-top: 28px !important;
  color: var(--ink);
}
.about__facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.about__facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.about__facts span {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.about__facts strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* -------- contact -------- */
.contact { text-align: left; background: var(--ink); color: var(--bg); border-top: 0; }
.contact .eyebrow { color: rgba(255,255,255,.6); }
.contact__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.contact__title em { font-style: italic; }
.contact__lede {
  margin: 28px 0 40px;
  max-width: 50ch;
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,.7);
}
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.contact .btn--ghost { color: var(--bg); border-color: rgba(255,255,255,.4); }
.contact .btn--ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* -------- footer -------- */
.footer { background: var(--bg-alt); padding: 56px 0 32px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500;
}
.footer__links, .footer__social {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.footer__social { justify-content: flex-end; }
.footer__links a:hover, .footer__social a:hover { color: var(--ink); }

.footer__legal {
  grid-column: 1 / -1;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* -------- floating action button -------- */
.fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #062b1a;
  display: inline-flex;
  align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(37,211,102,.35), 0 4px 12px rgba(0,0,0,.12);
  z-index: 60;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 40px rgba(37,211,102,.5), 0 6px 16px rgba(0,0,0,.18); }

/* -------- responsive -------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }

  .services { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .social { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__social { justify-content: flex-start; }
  .hero__art { display: none; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 64px; }
  .section__cta { flex-direction: column; align-items: flex-start; }
}

/* in-view fade for sections */
.section, .hero { opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.section.is-in, .hero.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .section, .hero { opacity: 1; transform: none; transition: none; }
}
