/* ============ Tokens ============ */
:root {
  --bg: #F3EEE5;
  --bg-2: #EBE4D6;
  --ink: #1A1814;
  --ink-2: #6B6459;
  --line: #D6CEBE;
  --accent: #9C5A3C;

  --serif: 'Playfair Display', 'Cormorant', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;

  --maxw: 1360px;
  --gutter: clamp(24px, 4.5vw, 72px);
  --section-pad: clamp(96px, 12vw, 200px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.8'/></svg>");
  mix-blend-mode: multiply;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  transition: background .4s var(--ease), color .4s var(--ease);
}
/* white on dark hero */
.nav--light { color: var(--bg); }
.nav--scrolled {
  background: rgba(243,238,229,.92);
  backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav__mark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .02em;
  font-weight: 500;
}
.nav__menu {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  font-size: 13px;
  letter-spacing: .04em;
}
.nav__menu a {
  position: relative;
  padding-bottom: 2px;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .4s var(--ease);
}
.nav__menu a:hover::after { right: 0; }

@media (max-width: 640px) {
  .nav__menu { gap: 16px; font-size: 12px; }
}

/* ============ Section base ============ */
.section {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section__num {
  position: absolute;
  top: calc(var(--section-pad) - 8px);
  left: var(--gutter);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: .1em;
}
.section__head {
  max-width: 720px;
  margin-bottom: clamp(48px, 8vw, 96px);
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6.5vw, 88px);
  line-height: 1.0;
  letter-spacing: -.02em;
  margin: 14px 0 0;
}
.section__title em {
  font-style: italic;
  color: var(--accent);
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--ink-2);
  margin: 0;
}
.eyebrow--light { color: rgba(243,238,229,.5); }

/* ============ Dark section ============ */
.section--dark {
  color: var(--bg);
}
.section--dark::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--ink);
  z-index: -1;
}
.section--dark .section__num { color: rgba(243,238,229,.25); }
.section--dark .eyebrow { color: rgba(243,238,229,.4); }
.section--dark .section__title { color: var(--bg); }
.section--dark .section__title em { color: var(--accent); }

/* ============ Hero ============ */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero__frame {
  position: relative;
  flex: 1;
  min-height: 82vh;
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 var(--gutter) clamp(40px, 5vw, 72px);
  z-index: 2;
}
.hero__caption .eyebrow { margin-bottom: 14px; }

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(80px, 15vw, 240px);
  line-height: .86;
  letter-spacing: -.03em;
  margin: 0;
  color: var(--bg);
}
.hero__line { display: block; }
.hero__line--indent {
  padding-left: clamp(48px, 10vw, 160px);
}
.hero__line em { font-style: italic; font-weight: 400; }

/* info bar below hero image */
.hero__bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 0;
  padding: clamp(20px, 2.5vw, 32px) var(--gutter);
  border-top: 1px solid var(--line);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero__bar-item {
  padding-right: clamp(20px, 3vw, 48px);
}
.hero__bar-item + .hero__bar-item {
  padding-left: clamp(20px, 3vw, 48px);
  border-left: 1px solid var(--line);
}
.hero__bar-item .eyebrow { margin-bottom: 8px; }
.hero__bar-val {
  font-family: var(--serif);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.35;
  margin: 0;
}
.hero__bar-val em { font-style: italic; color: var(--ink-2); }
.hero__bar-val .dot { color: var(--accent); margin: 0 4px; }
.hero__bar-item--cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__bar {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero__bar-item + .hero__bar-item {
    padding-left: 0;
    border-left: none;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .hero__bar-item { padding-right: 0; }
}
@media (max-width: 640px) {
  .hero__frame { min-height: 75vh; }
  .hero__line--indent { padding-left: 32px; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all .35s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn--solid {
  background: var(--ink);
  color: var(--bg);
}
.btn--solid:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn--wide { width: 100%; justify-content: center; padding: 18px; }

/* ============ Scroll hint ============ */
.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 4vw, 48px);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(243,238,229,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.scroll-hint__line {
  width: 1px;
  height: 56px;
  background: rgba(243,238,229,.4);
  transform-origin: top;
  animation: line 2.2s ease-in-out infinite;
}
@keyframes line {
  0%, 100% { transform: scaleY(.3); opacity: .3; }
  50% { transform: scaleY(1); opacity: 1; }
}
@media (max-width: 720px) { .scroll-hint { display: none; } }

/* ============ About ============ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about__portrait {
  aspect-ratio: 3/4;
  position: sticky;
  top: 120px;
}
.about__text p { margin: 0 0 20px; max-width: 56ch; }
.about__text .lead {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 32px;
}
@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 320px; }
}

/* ============ Placeholder ============ */
.placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-2) 0,
      var(--bg-2) 10px,
      #E2D9C7 10px,
      #E2D9C7 11px
    );
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  position: relative;
}
.placeholder::after {
  content: "";
  position: absolute; inset: 10px;
  border: 1px dashed var(--line);
  pointer-events: none;
}

/* dark variant — for hero & project previews */
.placeholder--dark {
  background:
    repeating-linear-gradient(
      135deg,
      #1A1814 0,
      #1A1814 10px,
      #221F1A 10px,
      #221F1A 11px
    );
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.2);
}
.placeholder--dark::after {
  border-color: rgba(255,255,255,.1);
}

/* ============ Projects ============ */
.proj-list { border-top: 1px solid rgba(243,238,229,.15); }
.proj {
  position: relative;
  border-bottom: 1px solid rgba(243,238,229,.15);
}
.proj__row {
  display: grid;
  grid-template-columns: 60px 1fr 140px 40px;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(24px, 4vw, 44px) 0;
  transition: padding-left .5s var(--ease);
  color: var(--bg);
}
.proj__row:hover { padding-left: 24px; }
.proj__row:hover .proj__arrow { transform: translateX(8px); }

.proj__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(243,238,229,.3);
}
.proj__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -.01em;
  color: var(--bg);
}
.proj__desc {
  max-width: 64ch;
  color: rgba(243,238,229,.5);
  margin: 0;
  font-size: 15px;
}
.proj__tag {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(243,238,229,.3);
  text-align: right;
}
.proj__arrow {
  font-family: var(--serif);
  font-size: 22px;
  transition: transform .4s var(--ease);
  text-align: right;
  color: var(--bg);
}

/* hover preview */
.proj__preview {
  position: absolute;
  top: 50%;
  right: 12%;
  transform: translateY(-50%) scale(.96);
  width: 280px;
  aspect-ratio: 4/3;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
  z-index: 2;
}
@media (hover: hover) and (min-width: 900px) {
  .proj:hover .proj__preview {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}
@media (max-width: 900px) {
  .proj__row {
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "idx name"
      ".   desc"
      ".   tag";
    row-gap: 8px;
  }
  .proj__index { grid-area: idx; }
  .proj__name { grid-area: name; }
  .proj__desc { grid-area: desc; }
  .proj__tag { grid-area: tag; text-align: left; }
  .proj__arrow { display: none; }
  .proj__preview { display: none; }
}

/* ============ Expertise ============ */
.expertise__text {
  max-width: 760px;
  margin-bottom: clamp(48px, 8vw, 96px);
}
.expertise__text .lead {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.35;
  margin: 0 0 32px;
}
.expertise__text .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  padding-left: 28px;
  border-left: 1px solid var(--accent);
  color: var(--ink);
  margin: 0 0 32px;
}
.expertise__text p { margin: 0 0 20px; max-width: 62ch; }

.expertise__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.col__label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 24px;
}
.col__list li {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.4;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.col__list li:last-child { border-bottom: none; }

.expertise__cta {
  margin-top: clamp(48px, 6vw, 80px);
}

@media (max-width: 720px) {
  .expertise__cols { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ Principles ============ */
.principles__intro {
  max-width: 720px;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.principles__intro .lead {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.3;
  margin: 0 0 24px;
}
.principles__intro p { margin: 0 0 20px; color: var(--ink-2); }
.principles__intro .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--ink);
  line-height: 1.4;
  margin-top: 32px;
}

.tenets {
  border-top: 1px solid var(--line);
}
.tenets li {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: 32px;
  padding: clamp(22px, 3.5vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.25;
}
.tenets__num {
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: .1em;
}

/* ============ Contact ============ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}
.contact__text p {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.45;
  margin: 0 0 20px;
  max-width: 40ch;
}
.channels {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.channels li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.channels li > span:first-child {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.channels a:hover { color: var(--accent); }

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  resize: vertical;
  transition: border-color .3s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.form__note {
  font-size: 12px;
  color: var(--ink-2);
  margin: 4px 0 0;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ============ Footer ============ */
.footer {
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.footer__mono { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: .02em; }

/* ============ Reveal ============ */
[data-reveal] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].in > * { opacity: 1; transform: none; }
[data-reveal].in > *:nth-child(2) { transition-delay: .08s; }
[data-reveal].in > *:nth-child(3) { transition-delay: .16s; }
[data-reveal].in > *:nth-child(4) { transition-delay: .24s; }
[data-reveal].in > *:nth-child(5) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] > * { opacity: 1; transform: none; }
}
