:root {
  --ink: #1e211f;
  --paper: #f4f1eb;
  --white: #fff;
  --wood: #9c7250;
  --wood-light: #c7aa8e;
  --line: rgba(30, 33, 31, 0.18);
  --page: min(1380px, calc(100vw - 96px));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
em { color: var(--wood); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.site-header {
  position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 92px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 max(48px, calc((100vw - 1380px) / 2));
  background: rgba(244, 241, 235, .96); color: var(--ink); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); transition: color .35s ease, background .35s ease, height .35s ease;
}
.site-header.is-scrolled { height: 76px; color: var(--ink); background: rgba(244, 241, 235, .94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; width: 158px; height: 55px; align-items: center; text-decoration: none; filter: none; transition: filter .3s ease; }
.brand img { width: 100%; height: auto; }
.is-scrolled .brand, .brand--footer { filter: none; }
.main-nav { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 500; }
.main-nav a { position: relative; text-decoration: none; }
.main-nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-contact { padding: 13px 18px; border: 1px solid currentColor; transition: background .3s ease, color .3s ease; }
.nav-contact:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.site-header:not(.is-scrolled) .nav-contact:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.menu-toggle { display: none; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

.hero { position: relative; min-height: 100svh; color: var(--white); overflow: hidden; }
.hero__image { position: absolute; inset: 0; background: url("images/kitchen.jpg") center 48% / cover no-repeat; animation: hero-in 1.6s var(--ease) both; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 13, 12, .68) 0%, rgba(11, 13, 12, .28) 54%, rgba(11, 13, 12, .1) 100%), linear-gradient(0deg, rgba(11, 13, 12, .38), transparent 48%); }
.hero__content { position: relative; z-index: 1; width: var(--page); min-height: 100svh; margin: 0 auto; padding: 178px 0 52px; display: flex; flex-direction: column; justify-content: flex-end; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.hero__eyebrow { margin-bottom: 24px; animation: fade-up .8s .35s var(--ease) both; }
.hero h1 { max-width: 990px; margin-bottom: clamp(70px, 12vh, 150px); font-family: "Manrope", sans-serif; font-size: clamp(50px, 6.6vw, 104px); line-height: .96; letter-spacing: -.055em; font-weight: 500; animation: fade-up 1s .45s var(--ease) both; }
.hero h1 em { letter-spacing: -.035em; color: var(--wood-light); }
.hero__footer { display: flex; align-items: end; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.45); padding-top: 24px; animation: fade-up 1s .6s var(--ease) both; }
.hero__footer p { max-width: 520px; margin: 0; font-size: 16px; line-height: 1.65; }
.hero__index { position: absolute; z-index: 1; right: 22px; top: 50%; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .2em; opacity: .7; }
.button { display: inline-flex; align-items: center; gap: 42px; padding: 14px 0; font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; transition: gap .35s var(--ease); }
.button:hover { gap: 58px; }

.section { width: var(--page); margin: 0 auto; padding: 150px 0; }
.section-label { display: flex; gap: 14px; align-items: center; align-self: start; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.section-label span { color: var(--wood); }
.section-label p { margin: 0; }
.intro { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.intro__content { max-width: 1000px; }
.lead { margin-bottom: 80px; font-family: "Manrope", sans-serif; font-size: clamp(31px, 3.7vw, 58px); line-height: 1.2; letter-spacing: -.035em; }
.intro__details { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-left: 25%; }
.intro__details p { margin: 0; font-size: 15px; line-height: 1.8; color: #565a57; }

.projects { padding-top: 50px; }
.projects__heading { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; align-items: end; margin-bottom: 80px; }
.projects h2, .process h2, .contact h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(47px, 6.4vw, 98px); line-height: 1.02; letter-spacing: -.055em; font-weight: 500; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 120px 32px; }
.project { grid-column: span 6; }
.project--wide { grid-column: 1 / span 8; }
.project--portrait { grid-column: 9 / -1; padding-top: 220px; }
.project--standard { grid-column: 1 / span 5; }
.project--full { grid-column: 7 / -1; padding-top: 160px; }
.project a { text-decoration: none; }
.project__media { position: relative; overflow: hidden; background: #ddd6cc; }
.project--wide .project__media { aspect-ratio: 16 / 10; }
.project--portrait .project__media { aspect-ratio: 4 / 5; }
.project--standard .project__media, .project--full .project__media { aspect-ratio: 5 / 4; }
.project__media::after { content: ""; position: absolute; inset: 0; background: rgba(64, 42, 26, .18); opacity: 0; transition: opacity .55s ease; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s ease; }
.project--portrait img { object-position: 58% center; }
.project:hover img { transform: scale(1.035); filter: saturate(.88); }
.project:hover .project__media::after { opacity: 1; }
.project__caption { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-top: 18px; border-top: 1px solid var(--ink); margin-top: 20px; }
.project__caption div { display: flex; align-items: baseline; gap: 16px; }
.project__caption span { color: var(--wood); font-size: 11px; }
.project__caption h3 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(24px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.025em; }
.project__caption p { margin: 0; text-align: right; color: #656965; font-size: 13px; }
.project__caption p span { display: inline-block; margin-left: 8px; transition: transform .3s var(--ease); }
.project:hover .project__caption p span { transform: translate(3px, -3px); }

.process { width: 100%; max-width: none; margin-top: 70px; padding: 150px max(48px, calc((100vw - 1380px) / 2)); background: var(--ink); color: var(--white); display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.section-label--light span { color: var(--wood-light); }
.process__intro .section-label { margin-bottom: 100px; }
.process h2 em { color: var(--wood-light); }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.22); }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 28px; padding: 30px 0 34px; border-bottom: 1px solid rgba(255,255,255,.22); }
.steps > li > span { font-size: 11px; color: var(--wood-light); }
.steps h3 { margin-bottom: 8px; font-family: "Manrope", sans-serif; font-size: 22px; font-weight: 500; }
.steps p { max-width: 440px; margin: 0; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.7; }

.contact { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.contact__content .eyebrow { color: var(--wood); margin-bottom: 26px; }
.contact__content h2 { margin-bottom: 80px; }
.contact__mail { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: "Manrope", sans-serif; font-size: clamp(24px, 3vw, 44px); text-decoration: none; }
.contact__mail span { color: var(--wood); transition: transform .3s var(--ease); }
.contact__mail:hover span { transform: translate(5px, -5px); }
.contact__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 70px; }
.contact__meta div { display: flex; flex-direction: column; gap: 12px; }
.contact__meta span { color: #777b78; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.contact__meta p, .contact__meta a { margin: 0; font-size: 14px; text-decoration: none; }

.site-footer { width: var(--page); margin: 0 auto; padding: 36px 0 42px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; font-size: 11px; color: #777b78; }
.brand--footer { width: 132px; height: auto; }
.site-footer p { margin: 0; }
.site-footer p:nth-child(2) { text-align: center; }
.site-footer p:last-child { text-align: right; }

.dev-switch { position: fixed; z-index: 200; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid rgba(30,33,31,.18); border-radius: 100px; background: rgba(244,241,235,.9); color: var(--ink); box-shadow: 0 10px 35px rgba(18,20,18,.13); backdrop-filter: blur(12px); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.dev-switch > span { padding: 0 8px; color: var(--wood); font-weight: 600; }
.dev-switch a { padding: 9px 12px; border-radius: 100px; text-decoration: none; transition: background .25s ease, color .25s ease; }
.dev-switch a:hover, .dev-switch a.is-active { background: var(--ink); color: var(--white); }

.reveal { opacity: 0; transform: translateY(42px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes hero-in { from { transform: scale(1.08); filter: brightness(.75); } to { transform: scale(1); filter: brightness(1); } }

@media (max-width: 900px) {
  :root { --page: calc(100vw - 40px); }
  .site-header { height: 76px; padding: 0 20px; }
  .brand { width: 128px; }
  .menu-toggle { z-index: 2; display: flex; align-items: center; gap: 12px; }
  .menu-toggle__label { font-size: 12px; }
  .menu-toggle__icon { width: 24px; height: 18px; position: relative; }
  .menu-toggle__icon i { position: absolute; left: 0; width: 24px; height: 1px; background: currentColor; transition: transform .3s ease, top .3s ease; }
  .menu-toggle__icon i:first-child { top: 5px; }
  .menu-toggle__icon i:last-child { top: 13px; }
  .menu-open .menu-toggle__icon i:first-child { top: 9px; transform: rotate(45deg); }
  .menu-open .menu-toggle__icon i:last-child { top: 9px; transform: rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; padding: 130px 20px 50px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .3s ease, transform .3s ease, visibility .3s; }
  .menu-open .main-nav { visibility: visible; opacity: 1; transform: none; }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: "Manrope", sans-serif; font-size: 30px; }
  .main-nav .nav-contact { margin-top: 28px; padding: 18px; border: 1px solid var(--ink); font-size: 17px; }
  .menu-open .site-header { color: var(--ink); }
  .menu-open .site-header { background: transparent; border-color: transparent; backdrop-filter: none; }
  .menu-open .main-nav { min-height: 100dvh; background: var(--paper); }
  .menu-open .brand { filter: none; }
  .hero__content { padding: 130px 0 30px; }
  .hero h1 { margin-bottom: 100px; }
  .hero__footer { align-items: flex-start; flex-direction: column; gap: 28px; }
  .hero__footer p { max-width: 430px; }
  .hero__index { display: none; }
  .section { padding: 100px 0; }
  .intro, .projects__heading, .contact { grid-template-columns: 1fr; gap: 55px; }
  .lead { margin-bottom: 50px; }
  .intro__details { margin-left: 0; }
  .projects { padding-top: 20px; }
  .project-grid { gap: 80px 20px; }
  .project--wide { grid-column: 1 / span 8; }
  .project--portrait { grid-column: 9 / -1; padding-top: 120px; }
  .project--standard { grid-column: 1 / span 5; }
  .project--full { grid-column: 6 / -1; padding-top: 100px; }
  .project__caption { display: block; }
  .project__caption p { margin-top: 12px; text-align: left; }
  .process { padding: 100px 20px; grid-template-columns: 1fr; gap: 70px; }
  .process__intro .section-label { margin-bottom: 55px; }
}

@media (max-width: 620px) {
  .hero__image { background-position: 58% center; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .hero__footer p { font-size: 14px; }
  .intro__details, .contact__meta { grid-template-columns: 1fr; gap: 34px; }
  .project-grid { display: block; }
  .project { margin-bottom: 72px; padding-top: 0; }
  .project--portrait .project__media { aspect-ratio: 4 / 4.3; }
  .project__caption div { gap: 10px; }
  .contact__content h2 { margin-bottom: 50px; }
  .contact__mail { font-size: 20px; overflow-wrap: anywhere; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer p:nth-child(2) { display: none; }
  .dev-switch { left: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
