:root {
  --bg: #f4efe6;
  --bg-warm: #ebe4d4;
  --ink: #1a1714;
  --ink-soft: #5a5249;
  --ink-faint: #8a8276;
  --rule: #d8cfb9;
  --sage: #4a5a3e;
  --max: 1680px;
  --gutter: clamp(20px, 4vw, 64px);
  --font-sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============ GRAIN ============ */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/></svg>");
}

/* ============ KICKER ============ */

.kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-feature-settings: "ss01" on;
}

/* ============ NAV ============ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
  background: linear-gradient(180deg, rgba(244,239,230,0.92) 0%, rgba(244,239,230,0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: -0.01em;
}

.nav__brand-mark {
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.nav__brand-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--ink-soft);
}

.nav__links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  justify-self: center;
}

.nav__links a {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__location {
  justify-self: end;
}

/* ============ HERO ============ */

.hero {
  padding: clamp(120px, 18vh, 200px) var(--gutter) 0;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.hero__title {
  margin-top: 56px;
  font-weight: 400;
  font-size: clamp(72px, 14vw, 240px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  font-family: var(--font-sans);
}

.hero__title-line {
  display: block;
  will-change: transform;
}

.hero__title-line--italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.03em;
  padding-left: clamp(40px, 10vw, 200px);
  margin-top: -0.06em;
}

.hero__subtitle {
  margin-top: 48px;
  max-width: 540px;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.45;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__image-frame {
  margin-top: clamp(56px, 8vw, 96px);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(26, 23, 20, 0.04),
    0 8px 24px rgba(26, 23, 20, 0.08),
    0 32px 64px rgba(26, 23, 20, 0.12);
}

.hero__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  will-change: transform;
  transform-origin: center;
}

.hero__caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: #f4efe6;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.hero__caption .kicker {
  color: rgba(244, 239, 230, 0.65);
}

/* ============ META ============ */

.meta {
  max-width: var(--max);
  margin: clamp(80px, 12vw, 140px) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-top: 36px;
  padding-bottom: 36px;
}

.meta__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta__value {
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--ink);
}

@media (max-width: 820px) {
  .meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ ESSAY ============ */

.essay {
  max-width: 880px;
  margin: clamp(100px, 14vw, 160px) auto 0;
  padding: 0 var(--gutter);
}

.essay__pull {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: clamp(48px, 6vw, 72px);
  max-width: 720px;
}

.essay__body p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.4em;
  max-width: 640px;
}

/* ============ SIGNATURE IMAGE ============ */

.signature-image {
  margin: clamp(100px, 14vw, 160px) auto 0;
  padding: 0 var(--gutter);
  max-width: var(--max);
}

.signature-image__frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(26, 23, 20, 0.04),
    0 8px 24px rgba(26, 23, 20, 0.08),
    0 32px 64px rgba(26, 23, 20, 0.10);
}

.signature-image__frame img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  will-change: transform;
}

/* ============ WORK ============ */

.work {
  padding: clamp(140px, 18vw, 220px) var(--gutter) 0;
  max-width: var(--max);
  margin: 0 auto;
}

.work__header {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--rule);
  padding-top: 36px;
}

.work__heading {
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.work__heading em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(20px, 2vw, 32px);
}

.card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
}

.card--tall {
  grid-column: span 3;
  grid-row: span 2;
}

.card--wide {
  grid-column: span 4;
}

.card__frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-warm);
  aspect-ratio: 4 / 3;
  box-shadow:
    0 1px 2px rgba(26, 23, 20, 0.04),
    0 4px 12px rgba(26, 23, 20, 0.06),
    0 16px 40px rgba(26, 23, 20, 0.08);
  transition: box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.card--tall .card__frame {
  aspect-ratio: 3 / 4;
}

.card--wide .card__frame {
  aspect-ratio: 16 / 9;
}

.card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.card:hover .card__frame {
  box-shadow:
    0 1px 2px rgba(26, 23, 20, 0.04),
    0 12px 32px rgba(26, 23, 20, 0.10),
    0 32px 72px rgba(26, 23, 20, 0.14);
}

.card:hover .card__frame img {
  transform: scale(1.04);
}

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 2px;
}

.card__name {
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.card__type {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 980px) {
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card,
  .card--tall,
  .card--wide {
    grid-column: span 1;
    grid-row: auto;
  }
  .card--tall .card__frame { aspect-ratio: 4 / 3; }
  .card--wide .card__frame { aspect-ratio: 4 / 3; }
}

/* ============ PRACTICE ============ */

.practice {
  padding: clamp(140px, 18vw, 220px) var(--gutter) 0;
  max-width: var(--max);
  margin: 0 auto;
}

.practice__inner {
  max-width: 880px;
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}

.practice__lead {
  margin-top: 28px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 22ch;
}

.practice__lead em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
}

.practice__body {
  margin-top: 36px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 640px;
}

.practice__credentials {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}

.practice__cred {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
}

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

/* ============ CONTACT ============ */

.contact {
  padding: clamp(140px, 18vw, 220px) var(--gutter) clamp(80px, 10vw, 140px);
  max-width: var(--max);
  margin: 0 auto;
}

.contact__inner {
  max-width: 880px;
}

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

.contact__body {
  margin-top: 36px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 560px;
}

.contact__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 22px 28px 22px 32px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 2px;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: background 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact__arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact__cta:hover {
  background: var(--sage);
}

.contact__cta:hover .contact__arrow {
  transform: translateX(6px);
}

.contact__details {
  margin-top: clamp(64px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  color: var(--ink);
}

.contact__field .kicker {
  margin-bottom: 6px;
}

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

/* ============ FOOTER ============ */

.foot {
  padding: 32px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-faint);
  gap: 24px;
}

.foot__left,
.foot__right {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.foot__brand {
  color: var(--ink);
}

.foot__right {
  text-align: right;
}

@media (max-width: 720px) {
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============ REVEAL ANIMATIONS ============ */

.reveal-mask {
  display: inline-block;
  overflow: hidden;
}

.reveal-line {
  display: inline-block;
}

[data-fade] {
  opacity: 0;
  transform: translateY(20px);
}
