:root {
  --bg: #f6f1eb;
  --paper: rgba(255, 252, 247, 0.95);
  --paper-solid: #fffaf4;
  --text: #24130e;
  --muted: #6e5d50;
  --line: rgba(36, 19, 14, 0.13);
  --accent: #7b4a31;
  --dark: #1e100c;
  --shadow: 0 28px 80px rgba(45, 24, 16, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(122, 74, 49, 0.08), transparent 24%),
    linear-gradient(180deg, #fbf7f2 0%, var(--bg) 100%);
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px clamp(22px, 5vw, 72px);
  color: var(--text);
  background: rgba(255, 250, 243, 0.86);
  border-bottom: 1px solid rgba(36, 19, 14, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(45, 24, 16, 0.08);
}
.site-header.dark-header {
  color: #fff8ef;
  background: rgba(30, 16, 12, 0.84);
  border-bottom-color: rgba(255, 248, 239, 0.14);
  box-shadow: 0 12px 34px rgba(30, 16, 12, 0.18);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: clamp(218px, 20vw, 292px);
  color: currentColor;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.brand-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .48em;
  width: 100%;
  font-family: Didot, "Bodoni 72", "Libre Bodoni", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2.22vw, 2.22rem);
  font-weight: 300;
  letter-spacing: .44em;
  line-height: .82;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  opacity: .94;
}
.brand-word,
.brand-number {
  display: inline-block;
  line-height: .82;
}
.brand-word {
  margin-right: -.20em;
}
.brand-number {
  letter-spacing: .08em;
  transform: translateY(-0.01em) scaleX(.92);
  transform-origin: center;
  opacity: .88;
}
.brand-divider {
  width: 58px;
  height: 1px;
  margin: 12px auto 10px;
  background: currentColor;
  opacity: .72;
}
.brand-sub {
  width: 100%;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .64em;
  text-align: center;
  opacity: .9;
}
.brand-by {
  width: 100%;
  margin-top: 10px;
  font-size: .46rem;
  font-weight: 600;
  letter-spacing: .40em;
  opacity: .74;
  text-align: center;
}
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { text-transform: uppercase; letter-spacing: .18em; font-size: .82rem; transition: color 180ms ease, opacity 180ms ease; }
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
.dark-header .site-nav a:hover, .dark-header .site-nav a.active { color: #d8bba7; }

.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; color: var(--text); }
.dark-section .eyebrow, .hero-panel .eyebrow { color: var(--text); }
h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: .96;
  margin: 12px 0 18px;
}
h1 { font-size: clamp(3.2rem, 7.6vw, 6.8rem); max-width: 11ch; }
h2 { font-size: clamp(2.4rem, 5vw, 4.7rem); max-width: 12ch; }
h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
p, li { font-size: 1rem; line-height: 1.8; color: var(--muted); }
.lead { max-width: 36rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; padding: 14px 22px; border-radius: 999px;
  background: var(--text); color: #fff8ef; border: 1px solid var(--text);
  font-size: .86rem; letter-spacing: .08em; text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.button:hover { background: var(--accent); border-color: var(--accent); }
.button.secondary { background: transparent; color: var(--text); }
.button.secondary:hover { background: var(--text); color: #fff8ef; }
.button-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Home floating panels */
.story-block { position: relative; min-height: 198vh; }
.sticky-photo { position: sticky; top: 0; height: 100vh; background-position: center; background-size: cover; }
.sticky-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 17, 12, .24), rgba(24, 17, 12, .08) 42%, rgba(24, 17, 12, .26)); }
.panel-shell { position: relative; z-index: 2; margin-top: -28vh; padding: 0 clamp(18px, 4vw, 54px) 18vh; }
.hero-shell { margin-top: -36vh; }
.info-panel { width: min(740px, calc(100vw - 36px)); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(30px, 4vw, 56px); backdrop-filter: blur(10px); }
.hero-panel, .intro-panel, .about-panel { margin-left: clamp(0px, 4vw, 44px); }
.approach-panel, .portfolio-panel, .experience-panel { margin-left: auto; }
.photo-hero { background-image: linear-gradient(rgba(24,17,12,.08), rgba(24,17,12,.08)), url("images/h1.png"); }
.photo-intro { background-image: linear-gradient(rgba(24,17,12,.10), rgba(24,17,12,.10)), url("images/h2.png"); }
.photo-approach { background-image: linear-gradient(rgba(24,17,12,.10), rgba(24,17,12,.10)), url("images/h3.png"); }
.photo-portfolio { background-image: linear-gradient(rgba(24,17,12,.10), rgba(24,17,12,.10)), url("images/h5.png"); }
.photo-about { background-image: linear-gradient(rgba(24,17,12,.10), rgba(24,17,12,.10)), url("images/v1.png"); }
.photo-experience { background-image: linear-gradient(rgba(24,17,12,.10), rgba(24,17,12,.10)), url("images/h4.png"); }
.home-final-cta { padding: clamp(74px, 9vw, 118px) clamp(18px, 4vw, 54px); text-align: center; background: var(--paper-solid); border-top: 1px solid var(--line); }
.home-final-cta h2 { margin-left: auto; margin-right: auto; }
.home-final-cta p { max-width: 600px; margin: 0 auto; }

/* Inner pages */
.page-hero { padding: 168px clamp(22px, 5vw, 72px) 74px; text-align: center; background: #fffaf4; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: none; font-size: clamp(3rem, 6vw, 5.8rem); }
.page-section { padding: clamp(68px, 8vw, 112px) clamp(22px, 5vw, 72px); }
.narrow { max-width: 960px; margin: 0 auto; }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: clamp(38px, 6vw, 90px); align-items: start; }
.copy-block + .copy-block { margin-top: 42px; }
.portrait-card { position: sticky; top: 120px; }
.portrait-card img { aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); background: #e7ddd2; }
.service-list { list-style: none; margin: 28px 0 0; padding: 0; columns: 2; column-gap: 42px; }
.service-list li { margin-bottom: 12px; break-inside: avoid; position: relative; padding-left: 18px; }
.service-list li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }

/* Portfolio page */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.portfolio-card { min-height: 470px; position: relative; overflow: hidden; display: grid; place-items: center; background: #ddd; }
.portfolio-card::before { content: ""; position: absolute; inset: 0; background-image: var(--image); background-size: cover; background-position: center; transform: scale(1.02); transition: transform 450ms ease; }
.portfolio-card::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); transition: background 220ms ease; }
.portfolio-card:hover::before { transform: scale(1.07); }
.portfolio-card:hover::after { background: rgba(0, 0, 0, .48); }
.portfolio-content { position: relative; z-index: 2; color: white; text-align: center; padding: 24px; }
.portfolio-content h2 { max-width: none; font-size: clamp(2.4rem, 4vw, 4rem); margin-bottom: 20px; }
.small-button { display: inline-flex; background: rgba(255,255,255,.92); color: #111; padding: 12px 22px; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }

/* Portfolio category detail pages */
.page-intro {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}
.portfolio-detail-hero h1 {
  margin-left: auto;
  margin-right: auto;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px);
}
.project-tile {
  background: var(--paper-solid);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(40, 28, 18, 0.10);
}
.project-tile img {
  height: 420px;
  object-fit: cover;
  background: #e7ddd2;
}
.project-tile-copy {
  padding: clamp(24px, 3vw, 38px);
}
.project-tile-copy h2 {
  max-width: none;
  font-size: clamp(2rem, 3vw, 3.2rem);
}
.text-link {
  display: inline-flex;
  margin-top: 12px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
}
.portfolio-cta {
  text-align: center;
  padding: clamp(68px, 8vw, 108px) clamp(22px, 5vw, 72px);
  background: var(--paper-solid);
  border-top: 1px solid var(--line);
}
.portfolio-cta h2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
}
.portfolio-cta p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact page */
.contact-page { background: #f3eee8; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .9fr); gap: clamp(40px, 8vw, 100px); align-items: start; }
.contact-form { display: grid; gap: 20px; }
.contact-form label { display: grid; gap: 8px; color: var(--text); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.22rem; }
.contact-form input, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--text); padding: 12px 6px 12px 0; background: transparent; font-family: "Manrope", Arial, sans-serif; font-size: .96rem; outline: none; }
.contact-form textarea { min-height: 128px; resize: vertical; }
.contact-form button { width: 100%; border: 0; background: var(--dark); color: #fff8ef; padding: 18px 22px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.3rem; cursor: pointer; }
.contact-image img { aspect-ratio: 4 / 5; height: 580px; object-fit: cover; background: #ddd; }
.contact-icons { display: flex; gap: 20px; margin-bottom: 30px; font-weight: 700; letter-spacing: .08em; }
.footer { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: clamp(58px, 7vw, 88px) clamp(22px, 5vw, 72px); background: var(--dark); color: #fff8ef; border-top: 1px solid rgba(255, 248, 239, 0.12); }
.footer p { margin: 8px 0; }
.footer p { color: rgba(255, 248, 239, 0.76); }
.footer-logo { margin-bottom: 28px; }
.footer-brand-logo { width: min(430px, 100%); }
.footer-brand-logo .brand-main { font-size: clamp(2rem, 4vw, 3.3rem); }
.footer-brand-logo .brand-divider { width: 78px; }
.footer-brand-logo .brand-sub { font-size: .78rem; }
.footer-brand-logo .brand-by { font-size: .58rem; }
.footer-contact-grid { display: grid; gap: 28px; }
.subscribe-form { display: flex; gap: 12px; max-width: 420px; }
.subscribe-form input { flex: 1; border: 0; border-bottom: 1px solid rgba(255, 248, 239, 0.65); background: transparent; color: #fff8ef; padding: 10px 0; }
.subscribe-form button { background: #fff8ef; color: var(--dark); border: 0; padding: 10px 26px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.1rem; }

.global-footer {
  background: #f5f5f4;
  color: var(--text);
  border-top: 1px solid var(--line);
}
.global-footer p {
  color: var(--muted);
}
.global-footer .subscribe-form input {
  border-bottom-color: var(--text);
  color: var(--text);
}
.global-footer .subscribe-form button {
  background: var(--text);
  color: #fff8ef;
}

@media (max-width: 1100px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card { min-height: 420px; }
}
@media (max-width: 900px) {
  .site-header { flex-direction: column; align-items: flex-start; padding: 18px 22px; }
  .site-nav { flex-wrap: wrap; gap: 14px; }
  .story-block { min-height: 180vh; }
  .panel-shell, .hero-shell { margin-top: -20vh; }
  .two-column, .contact-layout, .footer { grid-template-columns: 1fr; }
  .service-list { columns: 1; }
  .contact-image img { height: auto; }
}
@media (max-width: 760px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-tile img { height: 340px; }
}
@media (max-width: 640px) {
  .brand-logo { width: 172px; }
  .brand-main { font-size: 1.22rem; gap: .36em; letter-spacing: .27em; }
  .brand-divider { width: 40px; margin: 9px auto 8px; }
  .brand-sub { font-size: .54rem; letter-spacing: .43em; }
  .brand-by { margin-top: 8px; font-size: .39rem; letter-spacing: .22em; }
  .site-nav a { font-size: .72rem; }
  h1 { font-size: 3.1rem; }
  .info-panel { padding: 28px 22px; }
  .button-row { flex-direction: column; align-items: flex-start; }
}
