:root {
  --bg: #fdfcfa;          /* clean warm white */
  --stone: #f3efe9;       /* soft stone for alternate sections */
  --ink: #2b211b;         /* espresso */
  --body: #4a3e36;        /* readable body text */
  --muted: #7a6c62;       /* greige */
  --peach: #b8664d;       /* peach accent, readable on white */
  --blush: #e9b8a6;       /* soft blush for dark grounds */
  --line: rgba(43, 33, 27, .12);
  --dark: #2b211b;
  --dark-ink: #fdfcfa;
  --dark-muted: #d3cac1;
  --dark-line: rgba(253, 252, 250, .2);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 17px/1.7 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--peach); outline-offset: 4px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: .04em; line-height: 1.15; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 24px; font: 500 14px/1 var(--text); color: var(--peach); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.lead { font-size: 19px; color: var(--body); max-width: 34em; }
section { padding-block: clamp(88px, 11vw, 144px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 30px;
  font: 500 15px/1 var(--text); text-decoration: none; border: 1px solid var(--ink); cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--peach); border-color: var(--peach); transform: translateY(-2px); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { border-color: var(--peach); color: var(--peach); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(253, 252, 250, .94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { font: 500 19px/1 var(--display); letter-spacing: .12em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo small { font: inherit; color: var(--peach); }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a { font-size: 15px; text-decoration: none; color: var(--body); background: linear-gradient(var(--peach), var(--peach)) 0 100% / 0 1px no-repeat; padding-block: 6px; transition: background-size .35s var(--ease), color .2s; }
.site-nav a:hover { color: var(--ink); background-size: 100% 1px; }
.site-nav .btn { min-height: 44px; padding: 0 22px; color: var(--bg); background: var(--ink); }
.site-nav .btn:hover { color: var(--bg); background: var(--peach); background-size: auto; }

/* Hero */
.hero { padding-block: clamp(48px, 6vw, 88px) clamp(88px, 10vw, 136px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.12; }
.hero h1 span { color: var(--peach); }
.hero .lead { margin: 28px 0 40px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .meta { display: flex; gap: 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero .meta div { font-size: 14px; color: var(--muted); }
.hero .meta strong { display: block; font: 400 17px/1.4 var(--display); color: var(--ink); letter-spacing: .06em; margin-bottom: 4px; }
.arch { border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero .arch img { object-position: 38% 50%; }

/* About */
.about { background: var(--stone); }
.about .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.portrait { width: min(100%, 380px); aspect-ratio: 1; border-radius: 50%; padding: 14px; border: 1px solid var(--blush); justify-self: center; }
.portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.about h2 { font-size: clamp(34px, 3.8vw, 52px); }
.about h2 span { color: var(--peach); }
.about p { margin: 24px 0 0; max-width: 36em; }
.about .note { color: var(--muted); font-size: 16px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Approach */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { font-size: clamp(32px, 3.6vw, 50px); }
.section-head p { margin: 0; color: var(--muted); max-width: 30em; justify-self: end; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.principle { padding: 36px 32px 8px 0; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle .num { font: 400 30px/1 var(--display); color: var(--peach); }
.principle h3 { font-size: 19px; letter-spacing: .06em; margin: 24px 0 14px; line-height: 1.35; }
.principle p { margin: 0; font-size: 16px; }

/* Projects */
.projects { background: var(--stone); }
.project { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); padding-top: clamp(56px, 6vw, 80px); margin-top: clamp(56px, 6vw, 80px); border-top: 1px solid var(--line); }
.project:first-of-type { margin-top: 0; }
.project-text { align-self: start; position: sticky; top: 112px; }
.project-text .tag { font-size: 14px; color: var(--peach); margin: 0 0 14px; }
.project-text h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; }
.project-text p { margin: 20px 0 0; }
.project-text .steps { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.project-text .steps li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); display: flex; gap: 14px; }
.project-text .steps li span { font-family: var(--display); color: var(--peach); min-width: 1.6em; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery figure { margin: 0; overflow: hidden; background: #fff; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .8s var(--ease); }
.gallery figure.wide img { aspect-ratio: 16 / 9; }
.gallery figure.plan img { object-fit: contain; padding: 12px; }
.gallery figure:hover img { transform: scale(1.03); }

/* Contact */
.contact { background: var(--dark); color: var(--dark-ink); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 120px); }
.contact .eyebrow { color: var(--blush); }
.contact h2 { color: var(--dark-ink); font-size: clamp(34px, 4vw, 56px); line-height: 1.15; }
.contact h2 span { color: var(--blush); }
.contact .info p { color: var(--dark-muted); margin: 28px 0 0; max-width: 28em; }
.contact .links { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; }
.contact .links span { display: block; font-size: 13px; color: var(--dark-muted); margin-bottom: 2px; }
.contact .links a { font-size: 19px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; overflow-wrap: anywhere; transition: color .2s; }
.contact .links a:hover { color: var(--blush); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; align-content: start; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; color: var(--dark-muted); }
label .opt { opacity: .7; }
input, textarea {
  width: 100%; padding: 10px 0 12px; background: transparent; color: var(--dark-ink);
  border: 0; border-bottom: 1px solid var(--dark-line); border-radius: 0; font: 400 17px/1.5 var(--text);
  transition: border-color .25s;
}
input:hover, textarea:hover { border-bottom-color: var(--dark-muted); }
input:focus-visible, textarea:focus-visible { outline: none; border-bottom-color: var(--blush); box-shadow: 0 1px 0 var(--blush); }
textarea { min-height: 140px; resize: vertical; }
::placeholder { color: var(--dark-muted); opacity: .6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact .btn { justify-self: start; background: var(--dark-ink); color: var(--dark); border-color: var(--dark-ink); }
.contact .btn:hover { background: var(--blush); border-color: var(--blush); }
.contact .btn[disabled] { opacity: .6; cursor: progress; }
.status { grid-column: 1 / -1; margin: 0; min-height: 1.5em; font-size: 15px; }
.status.ok { color: var(--blush); }
.status.err { color: #f0a58f; }

/* Footer */
footer { background: var(--dark); color: var(--dark-muted); border-top: 1px solid var(--dark-line); padding-block: 32px; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .logo { color: var(--dark-ink); font-size: 16px; }
footer .logo small { color: var(--blush); }

@media (max-width: 1024px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .project { grid-template-columns: 1fr; }
  .project-text { position: static; }
}
@media (max-width: 860px) {
  .site-nav a:not(.btn) { display: none; }
  .hero .wrap, .about .wrap, .contact .wrap, .section-head { grid-template-columns: 1fr; }
  .hero .arch { max-width: 520px; aspect-ratio: 1 / 1; order: -1; }
  .section-head p { justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo { font-size: 15px; letter-spacing: .08em; }
  .site-nav .btn { padding: 0 16px; font-size: 14px; }
  .hero .meta { flex-direction: column; gap: 18px; }
  .hero .actions .btn { flex: 1 1 100%; justify-content: center; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); margin-top: 28px; }
  .gallery { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; }
  .contact .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Landing: portrait hero ---------- */
.hero-portrait { width: min(100%, 460px); aspect-ratio: 1; border-radius: 50%; padding: 18px; border: 1px solid var(--blush); justify-self: center; position: relative; }
.hero-portrait::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px solid var(--line); pointer-events: none; }
.hero-portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ---------- About + principles in one section ---------- */
.about .wrap { grid-template-columns: 1fr 1fr; align-items: start; }
.about h2 { font-size: clamp(30px, 3.2vw, 44px); }
.about .principles { grid-template-columns: 1fr 1fr; border-top: 0; gap: 0; }
.about .principle { padding: 28px 24px 28px 0; border-top: 1px solid var(--line); border-left: 0; }
.about .principle:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.about .principle h3 { font-size: 16px; margin: 16px 0 10px; }
.about .principle p { font-size: 15px; }
.about .principle .num { font-size: 24px; }

/* ---------- Project cards ---------- */
.project-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.card { display: block; text-decoration: none; color: inherit; }
.card-media { overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 20px; border-bottom: 1px solid var(--line); padding-bottom: 18px; transition: border-color .3s; }
.card:hover .card-body { border-bottom-color: var(--peach); }
.card .tag { font-size: 14px; color: var(--peach); margin: 0 0 8px; }
.card h3 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.25; }
.card .go { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.card .go svg { width: 14px; height: 14px; }
.card:hover .go { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateX(3px); }

/* ---------- Project page ---------- */
.project-page { padding-top: clamp(40px, 5vw, 72px); }
.back { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); text-decoration: none; margin-bottom: 40px; transition: color .2s, gap .3s var(--ease); }
.back:hover { color: var(--peach); gap: 14px; }
.back svg { width: 14px; height: 14px; }
.project-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 5vw, 64px); }
.project-head .tag { font-size: 14px; color: var(--peach); margin: 0 0 16px; }
.project-head h1 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.1; }
.project-head p { margin: 0 0 16px; }
.project-head p:last-child { margin-bottom: 0; }
.project-page .gallery { gap: clamp(12px, 1.6vw, 20px); }
.project-page .steps { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.project-page .steps li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); display: flex; gap: 14px; }
.project-page .steps li span { font-family: var(--display); color: var(--peach); min-width: 1.6em; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 96px); padding-top: 32px; border-top: 1px solid var(--line); }
.next a.next-link { text-decoration: none; color: var(--ink); }
.next a.next-link span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.next a.next-link strong { font: 400 clamp(20px, 2vw, 26px)/1.2 var(--display); letter-spacing: .04em; transition: color .2s; }
.next a.next-link:hover strong { color: var(--peach); }
.site-nav a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }

@media (max-width: 1024px) {
  .about .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .project-cards { grid-template-columns: 1fr 1fr; }
  .project-head { grid-template-columns: 1fr; }
  .hero-portrait { width: min(80%, 360px); order: -1; }
}
@media (max-width: 560px) {
  .project-cards { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 4 / 3; }
  .about .principles { grid-template-columns: 1fr; }
  .about .principle:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Round 3 adjustments ---------- */
/* first screen shows one colour only: the hero fills the screen under the header */
.hero { min-height: calc(100svh - 77px); display: grid; align-items: center; padding-block: clamp(40px, 5vw, 72px); }
/* cards in landscape; a moodboard is shown whole, never cropped */
.card-media { aspect-ratio: 4 / 3; }
.card-media.fit { background: #fff; }
.card-media.fit img { object-fit: contain; }
.card:hover .card-media.fit img { transform: scale(1.02); }
.gallery figure.fit img { aspect-ratio: auto; height: auto; object-fit: contain; }

/* ---------- Name in the hero ---------- */
.hero h1 { font-size: clamp(46px, 6.4vw, 96px); line-height: 1.02; letter-spacing: .06em; }
.tagline { font: 400 clamp(20px, 2.1vw, 30px)/1.35 var(--display); letter-spacing: .04em; color: var(--ink); margin: 22px 0 0; max-width: 22em; }
.tagline span { color: var(--peach); }
.hero .lead { margin-top: 22px; }

/* ---------- Kitchen sketches: three layouts, the chosen one marked ---------- */
.sketches { margin-block: clamp(56px, 7vw, 96px); }
.sketches-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: 32px; }
.sketches-head h2 { font-size: clamp(24px, 2.4vw, 34px); }
.sketches-head p { margin: 0; color: var(--muted); }
.sketch-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.sketch { margin: 0; }
.sketch-img { position: relative; background: #fff; border: 1px solid var(--line); padding: 12px; aspect-ratio: 6 / 5; transition: border-color .3s; }
.sketch-img img { width: 100%; height: 100%; object-fit: contain; opacity: .82; transition: opacity .3s; }
.sketch:hover .sketch-img img { opacity: 1; }
.sketch figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.sketch figcaption span { display: block; font: 400 15px/1.4 var(--display); letter-spacing: .06em; color: var(--ink); }
.sketch.chosen .sketch-img { border: 2px solid var(--peach); box-shadow: 0 0 0 6px rgba(184, 102, 77, .12); }
.sketch.chosen .sketch-img img { opacity: 1; }
.sketch.chosen figcaption span { color: var(--peach); }
.badge { position: absolute; top: 12px; right: 12px; z-index: 1; background: var(--peach); color: #fff; font: 500 13px/1 var(--text); padding: 8px 12px; }
@media (max-width: 860px) {
  .sketches-head { grid-template-columns: 1fr; }
  .sketch-row { grid-template-columns: 1fr; }
}

/* ---------- Photo band ---------- */
.band { padding: 0; height: clamp(320px, 62vh, 640px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

/* ---------- Services ---------- */
.services .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.services h2 { font-size: clamp(30px, 3.2vw, 44px); }
.services .intro { margin: 24px 0 32px; color: var(--muted); max-width: 26em; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.service-list li:hover { padding-left: 8px; }
.service-list .num { font: 400 20px/1.3 var(--display); color: var(--peach); }
.service-list h3 { font-size: 19px; letter-spacing: .06em; }
.service-list p { margin: 8px 0 0; font-size: 16px; }

/* ---------- How I work ---------- */
.process { background: var(--stone); }
.projects { background: var(--bg); }
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.step-img { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; margin-bottom: 22px; }
.step-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.step-img.fit img { object-fit: contain; padding: 10px; }
.step:hover .step-img img { transform: scale(1.03); }
.step .num { font: 400 22px/1 var(--display); color: var(--peach); }
.step h3 { font-size: 19px; letter-spacing: .06em; margin: 12px 0 10px; }
.step p { margin: 0; font-size: 16px; }

@media (max-width: 1024px) {
  .services .wrap { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}
@media (max-width: 560px) {
  .steps-grid { grid-template-columns: 1fr; }
  .band { height: 280px; }
}
