@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Playfair+Display:wght@500&display=swap');

:root {
  --ink: #171714;
  --paper: #f2efe8;
  --line: rgba(23, 23, 20, 0.18);
  --white: #fff;
  --container: 1080px;
  --gutter: 16px;
  --page: min(var(--container), calc(100% - (2 * var(--gutter))));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: var(--page);
  min-height: 64px;
  padding: 12px 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  white-space: nowrap;
}
.brand-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font: 500 16px/1 "Playfair Display", serif;
}
.main-nav, .header-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.language-switch {
  display: flex;
  padding: 2px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
}
.lang-btn {
  min-width: 34px;
  min-height: 32px;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 9px;
}
.lang-btn.active { background: #fff; color: var(--ink); }

.hero {
  position: relative;
  width: var(--page);
  min-height: 620px;
  margin: 0 auto;
  color: #fff;
  overflow: hidden;
}
.hero-image, .hero-overlay { position: absolute; inset: 0; }
.hero-image {
  background: url('./images/hero.jpg') center/cover no-repeat;
}
.hero-overlay { background: linear-gradient(90deg, rgba(12,12,11,.78), rgba(12,12,11,.2)); }
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 108px 20px 118px;
}
.hero-kicker, .eyebrow {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1, h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
}
.hero h1 {
  max-width: 10ch;
  margin-top: 16px;
  font-size: clamp(38px, 11vw, 58px);
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
}
.hero-text {
  max-width: 34rem;
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.65;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.button {
  min-height: 46px;
  max-width: 100%;
  padding: 12px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: normal;
  text-align: center;
}
.button-light { background: #fff; color: var(--ink); }
.button-dark { background: var(--ink); color: #fff; }
.hero-link, .line-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  max-width: 100%;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 600;
}
.hero-meta {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.section-pad {
  width: var(--page);
  margin: 0 auto;
  padding: 60px 0;
}
.section-index { display: none; }
.intro, .personal, .section-heading, .services, .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}
.intro h2, .personal h2, .section-heading h2, .services h2, .statement h2, .contact h2 {
  margin-top: 13px;
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.06;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.intro-text, .personal-copy, .section-heading > *, .services-title, .service-list, .contact-head, .contact-data, .contact-form { min-width: 0; }
.intro-text p, .personal-copy > p:not(.eyebrow), .section-heading > p, .contact-data > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
}
.intro-text .line-link { margin-top: 22px; }

.personal { border-top: 1px solid var(--line); }
.personal-photo {
  width: 100%;
  aspect-ratio: 4/4.5;
  background: url('./images/portrait.jpg') center 25%/cover no-repeat;
}
.personal-signature {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.personal-signature strong { font-size: 14px; }
.personal-signature span { font-size: 12px; opacity: .65; }

.projects { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 32px; }
.project-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 32px; }
.project-card { min-width: 0; }
.project-photo { width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center; }
.photo-bath { background-image: url('./images/project-bathroom.jpg'); }
.photo-living { background-image: url('./images/project-terrace.jpg'); }
.photo-terrace { background-image: url('./images/project-living.jpg'); }
.project-info {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 9px;
  padding-top: 14px;
}
.project-info > span { font-size: 10px; opacity: .55; }
.project-info h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.project-info p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; opacity: .65; }

.services { border-top: 1px solid var(--line); }
.service-list article {
  display: grid;
  grid-template-columns: 26px minmax(0,1fr);
  gap: 12px 14px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.service-list article > span { grid-row: 1 / span 2; font-size: 10px; opacity: .55; }
.service-list h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.service-list p { margin: 0; font-size: 13px; line-height: 1.6; opacity: .7; }

.statement {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  background: #1b1b18;
  color: #fff;
  overflow: hidden;
}
.statement-photo {
  min-height: 280px;
  background: url('./images/craft.jpg') center/cover no-repeat;
}
.statement-copy { min-width: 0; padding: 56px 20px; }
.statement h2 { margin-bottom: 30px; }
.process-steps > div {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.process-steps span { font-size: 10px; opacity: .55; }
.process-steps p { margin: 0; font-size: 14px; line-height: 1.5; }

.contact { border-top: 1px solid var(--line); }
.contact-layout { margin-top: 34px; }
.contact-data { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-data a { max-width: 100%; font-size: 15px; overflow-wrap: anywhere; }
.contact-data span { font-size: 13px; line-height: 1.5; opacity: .7; overflow-wrap: anywhere; }
.contact-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
.contact-form label { display: grid; gap: 8px; min-width: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.contact-form input, .contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: none;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}
.contact-form textarea { resize: vertical; }
.contact-form .button { width: 100%; }

footer {
  width: var(--page);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
footer > div { display: flex; flex-wrap: wrap; gap: 12px 20px; }
footer p { margin: 0; opacity: .6; }

.legal-page { width: var(--page); margin: 0 auto; padding: 88px 0 56px; }
.legal-page h1 { font: 500 clamp(34px,8vw,56px)/1.05 "Playfair Display", serif; overflow-wrap: break-word; }
.legal-page h2 { margin-top: 32px; font-size: 21px; }
.legal-page p { max-width: 70ch; line-height: 1.7; overflow-wrap: anywhere; }

@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .site-header { min-height: 72px; padding-inline: 22px; }
  .brand { font-size: 11px; letter-spacing: .1em; }
  .brand-icon { width: 31px; height: 31px; flex-basis: 31px; }
  .header-cta { display: inline-flex; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
  .hero { min-height: 660px; }
  .hero-content { padding: 136px 32px 126px; }
  .hero h1 { font-size: clamp(54px, 8.5vw, 76px); }
  .hero-actions { flex-direction: row; align-items: center; }
  .hero-meta { left: 32px; right: 32px; }
  .section-pad { padding-block: 78px; }
  .intro h2, .personal h2, .section-heading h2, .services h2, .statement h2, .contact h2 { font-size: clamp(40px, 6vw, 54px); }
  .personal { grid-template-columns: minmax(220px,.82fr) minmax(0,1fr); align-items: center; gap: 46px; }
  .personal-photo { aspect-ratio: 4/5; }
  .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-large { grid-column: 1 / -1; }
  .project-large .project-photo { aspect-ratio: 16/8.5; }
  .contact-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-form .full, .contact-form .button { grid-column: 1 / -1; }
  .contact-form .button { width: auto; justify-self: start; }
  footer { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .site-header {
    min-height: 76px;
    padding-inline: 28px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  }
  .main-nav { display: flex; align-items: center; gap: 26px; font-size: 12px; }
  .header-actions { justify-self: end; }
  .hero { min-height: 700px; }
  .hero-content { padding: 158px 54px 132px; }
  .hero-meta { left: 54px; right: 54px; }
  .section-pad { padding-block: 96px; }
  .intro { grid-template-columns: 70px minmax(0,1.2fr) minmax(260px,.8fr); align-items: start; gap: 34px; }
  .section-index { display: block; font-size: 11px; opacity: .5; padding-top: 7px; }
  .intro h2, .personal h2, .section-heading h2, .services h2, .statement h2, .contact h2 { font-size: clamp(46px, 4.5vw, 60px); }
  .section-heading { grid-template-columns: minmax(0,1fr) minmax(240px,.45fr); align-items: end; }
  .project-grid { grid-template-columns: 1.12fr .88fr; gap: 48px 30px; }
  .project-large { grid-column: auto; grid-row: span 2; }
  .project-large .project-photo { aspect-ratio: 4/5; }
  .project-shifted { margin-top: 52px; }
  .services { grid-template-columns: minmax(240px,.8fr) minmax(0,1.2fr); gap: 64px; align-items: start; }
  .statement { grid-template-columns: 1fr 1fr; min-height: 590px; }
  .statement-copy { padding: 72px 54px; display: flex; flex-direction: column; justify-content: center; }
  .contact-layout { grid-template-columns: .72fr 1.28fr; gap: 64px; }
}

@media (max-width: 380px) {
  .site-header { padding-inline: 12px; }
  .brand { font-size: 9px; gap: 6px; }
  .brand-icon { flex-basis: 26px; width: 26px; height: 26px; }
  .lang-btn { min-width: 31px; padding-inline: 4px; }
  .hero-content { padding-inline: 16px; }
  .hero-meta { left: 16px; right: 16px; }
  .hero h1 { font-size: clamp(35px, 10.5vw, 42px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
