:root {
  --ink: #262626;
  --muted: #6f6f6f;
  --silver: #b8b8b8;
  --line: #dfdfdf;
  --surface: #ffffff;
  --soft: #f4f1ec;
  --charcoal: #111111;
  --accent: #1c69d4;
  --accent-dark: #0653b6;
  --wood: #9a6a43;
  --stone: #cbc5ba;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.2;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, padding 180ms ease, border-color 180ms ease;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.site-header.is-scrolled {
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-color: rgba(0,0,0,0.08);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -0.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid currentColor;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.brand-text { font-size: 17px; }

.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 900; }
.site-nav a { position: relative; }
.admin-link,
a[href="admin.html"] { display: none !important; }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 18px;
  padding: 3px;
  border: 1px solid currentColor;
}
.language-switch button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.language-switch button.is-active {
  background: var(--accent);
  color: #fff;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  transition: right 180ms ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }

.menu-toggle { display: none; background: none; color: inherit; border: 0; width: 44px; height: 44px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 8px 0; }

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0d0d0d;
  color: #fff;
  padding: 150px clamp(20px, 5vw, 64px) 82px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.82), rgba(0,0,0,0.42) 48%, rgba(0,0,0,0.28) 76%),
    linear-gradient(0deg, rgba(0,0,0,0.66), transparent 42%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  width: 100%;
  min-width: 0;
}

.eyebrow, .section-kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
}

.hero .eyebrow { color: #fff; }
.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(46px, 7.4vw, 98px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
  word-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 620px;
  margin: 30px 0 0;
  color: rgba(255,255,255,0.82);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.35;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid currentColor;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { color: #fff; background: transparent; }
.contact .button-primary { width: 100%; }

.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.02);
}
.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000 82%, transparent);
}
.room-frame {
  position: absolute;
  border: 2px solid rgba(255,255,255,0.32);
  box-shadow: var(--shadow);
}
.frame-one { right: 9vw; top: 18vh; width: 31vw; height: 43vh; }
.frame-two { right: 17vw; top: 28vh; width: 25vw; height: 34vh; border-color: rgba(255,255,255,0.16); }
.material-card {
  position: absolute;
  width: 148px;
  height: 86px;
  display: grid;
  place-items: end start;
  padding: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: #fff;
}
.material-wood { right: 31vw; bottom: 15vh; background: linear-gradient(135deg, #6d4428, #c09062); }
.material-stone { right: 11vw; bottom: 23vh; background: linear-gradient(135deg, #77736d, #d5cec2); color: #161616; }

.section { padding: 100px clamp(20px, 5vw, 64px); }
.section-heading, .intro-grid, .process-panel, .contact-card, .site-footer { max-width: var(--max); margin: 0 auto; }
.section h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.section p { color: var(--muted); font-size: 18px; line-height: 1.55; }

.section-intro { background: var(--surface); }
.intro-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 7vw, 90px); align-items: start; }
.intro-grid p { margin: 0; font-size: 21px; color: var(--ink); }

.services { background: var(--soft); }
.service-grid {
  max-width: var(--max);
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(0,0,0,0.16);
  border-left: 1px solid rgba(0,0,0,0.16);
}
.service-card {
  min-height: 310px;
  padding: 26px;
  background: #fff;
  border-right: 1px solid rgba(0,0,0,0.16);
  border-bottom: 1px solid rgba(0,0,0,0.16);
}
.service-number { color: var(--accent); font-weight: 900; letter-spacing: 0.14em; font-size: 12px; }
.service-card h3 { margin: 84px 0 18px; font-size: 24px; line-height: 1.05; letter-spacing: -0.035em; }
.service-card p { margin: 0; font-size: 16px; line-height: 1.45; }

.process { background: #101010; color: #fff; }
.process-panel { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(34px, 7vw, 100px); }
.process .section-kicker { color: #9fc2ff; }
.timeline { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,0.18); }
.timeline li { display: grid; grid-template-columns: 210px 1fr; gap: 26px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
.timeline span { color: #fff; font-weight: 900; font-size: 18px; }
.timeline p { margin: 0; color: rgba(255,255,255,0.68); font-size: 17px; }

.work { background: #fff; }
.work-grid { max-width: var(--max); margin: 46px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.work-feature { min-height: 330px; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.work-feature p { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 900; color: inherit; }
.work-feature h3 { margin: 0 0 14px; font-size: clamp(34px, 4vw, 56px); line-height: 0.96; letter-spacing: -0.06em; }
.work-feature span { max-width: 440px; color: inherit; line-height: 1.45; }
.dark-feature { background: #111; color: #fff; }
.light-feature { background: var(--soft); color: var(--ink); }
.image-feature { grid-column: 1 / -1; min-height: 280px; background: #191919; position: relative; display: grid; grid-template-columns: 1.3fr 0.75fr 0.95fr; gap: 16px; padding: 16px; }
.sample { min-height: 248px; }
.sample-one { background: linear-gradient(135deg, #a8754b, #583722); }
.sample-two { background: linear-gradient(135deg, #e9e2d7, #aaa093); }
.sample-three { background: linear-gradient(135deg, #222, #4a4a4a); }

.project-gallery { background: #101010; color: #fff; }
.gallery-heading { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(28px, 6vw, 86px); align-items: end; }
.gallery-heading .section-kicker { color: #9fc2ff; }
.gallery-heading p { margin: 0; color: rgba(255,255,255,0.68); }
.gallery-grid {
  max-width: var(--max);
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #191919;
  isolation: isolate;
}
.gallery-card-large { grid-column: span 2; grid-row: span 2; min-height: 650px; }
.gallery-card-wide { grid-column: span 2; }
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.01);
}
.gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.78));
}
.gallery-card div {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
}
.gallery-card span {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.gallery-card h3 {
  margin: 0;
  max-width: 560px;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.gallery-empty {
  max-width: var(--max);
  margin: 34px auto 0;
  color: rgba(255,255,255,0.7) !important;
}

.project-link-section { background: var(--charcoal); color: #fff; }
.project-link-section .gallery-heading > p { color: rgba(255,255,255,0.68); }
.project-directory-card {
  max-width: var(--max);
  margin: 34px auto 0;
  min-height: 320px;
  display: grid;
  align-content: end;
  gap: 16px;
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    linear-gradient(135deg, rgba(28,105,212,0.28), transparent 42%),
    linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    #171717;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.project-directory-card:hover, .project-directory-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.project-directory-card span { color: var(--accent); font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; }
.project-directory-card strong { display: block; font-size: clamp(34px, 6vw, 78px); line-height: 0.92; letter-spacing: -0.055em; font-weight: 300; }
.project-directory-card em { max-width: 720px; color: rgba(255,255,255,0.7); font-style: normal; font-size: clamp(17px, 2vw, 22px); line-height: 1.35; }
.project-link-section .project-directory-card { display: grid; }

.case-hero {
  padding: 170px clamp(20px, 5vw, 64px) 84px;
  background: var(--soft);
  color: var(--ink);
}
.case-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 300;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.case-hero > p:not(.section-kicker) {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}
.case-actions-top { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.case-actions-top .button-secondary { color: var(--ink); border-color: rgba(0,0,0,0.18); }
.cases-directory { background: #fff; }
.case-filter-bar {
  max-width: var(--max);
  margin: 0 auto 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.case-filter-bar button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.case-filter-bar button.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.case-count { max-width: var(--max); margin: 0 auto 20px; color: var(--muted); font-weight: 900; }
.case-directory-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.case-directory-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  min-width: 0;
  color: inherit;
}
.case-directory-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.case-directory-card div { padding: 20px; }
.case-directory-card span { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.case-directory-card h3 { margin: 10px 0 0; font-size: clamp(22px, 2.5vw, 34px); line-height: 1; letter-spacing: -0.04em; font-weight: 400; }
.case-directory-card p { margin: 14px 0 0; color: var(--muted); line-height: 1.45; }
.case-directory-card em { display: inline-block; margin-top: 18px; color: var(--accent); font-style: normal; font-weight: 900; }

.detail-hero {
  padding: 150px clamp(20px, 5vw, 64px) 54px;
  background: var(--soft);
}
.back-link { display: inline-flex; margin-bottom: 34px; color: var(--accent); font-weight: 900; }
.detail-hero h1 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 300;
}
.detail-hero > p:not(.section-kicker) {
  max-width: 780px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}
.detail-meta {
  max-width: var(--max);
  margin: 38px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.detail-meta div { border-top: 1px solid var(--line); padding-top: 14px; }
.detail-meta dt { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; }
.detail-meta dd { margin: 8px 0 0; font-size: 20px; font-weight: 900; line-height: 1.35; overflow-wrap: anywhere; word-break: break-word; }
.detail-photo-stage { background: var(--charcoal); padding: clamp(20px, 5vw, 64px); }
.detail-photo-stage img { width: 100%; max-height: 76vh; object-fit: contain; background: #050505; }
.detail-body {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.detail-copy h2, .detail-gallery-wrap h2 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 0.96; letter-spacing: -0.05em; font-weight: 300; }
.detail-copy > p:last-child { color: var(--muted); font-size: 19px; line-height: 1.55; }
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.detail-gallery button { padding: 0; border: 3px solid transparent; background: transparent; cursor: pointer; }
.detail-gallery button.is-active { border-color: var(--accent); }
.detail-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }

.contact { background: var(--soft); }
.contact-card { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(34px, 7vw, 96px); align-items: start; background: #fff; padding: clamp(28px, 5vw, 58px); box-shadow: 0 18px 70px rgba(0,0,0,0.08); }
.contact-card > div > p { margin-bottom: 0; }
.contact-links { display: grid; gap: 10px; margin-top: 28px; }
.contact-links a {
  display: inline-flex;
  width: fit-content;
  color: var(--accent);
  font-weight: 900;
  font-size: 20px;
  border-bottom: 2px solid currentColor;
}
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 900; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 15px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border-radius: 0;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.form-note { margin: 0; font-size: 13px !important; color: var(--muted); }

.site-footer { padding: 34px clamp(20px, 5vw, 64px); display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer p { margin: 6px 0 0; color: var(--muted); }
.site-footer a { font-weight: 900; color: var(--accent); }

@media (max-width: 920px) {
  .menu-toggle { display: block; order: 3; }
  .brand { order: 1; margin-right: auto; }
  .language-switch { order: 2; margin-left: 0; }
  .site-nav {
    position: fixed;
    top: 75px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
  }
  .language-switch { order: 2; margin-left: 0; }
  .site-nav.is-open { display: flex; }
  .site-header:not(.is-scrolled) .site-nav { color: var(--ink); }
  .frame-one { right: -4vw; width: 54vw; }
  .frame-two { right: 7vw; width: 42vw; }
  .intro-grid, .process-panel, .contact-card, .gallery-heading { grid-template-columns: 1fr; }
  .detail-body, .detail-meta { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .case-directory-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-card-large, .gallery-card-wide { grid-column: span 2; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 640px) {
  .brand-text { display: none; }
  .site-header { min-height: 92px; width: 100vw; max-width: 100vw; overflow: visible; }
  .menu-toggle { position: absolute; z-index: 80; left: 180px; right: auto; top: 24px; display: block; border: 1px solid rgba(255,255,255,0.9); background: rgba(0,0,0,0.18); }
  .menu-toggle span { background: currentColor; }
  .site-header.is-scrolled .menu-toggle { color: var(--ink); border-color: rgba(0,0,0,0.18); background: rgba(255,255,255,0.92); }
  .site-nav { top: 92px; left: 16px; right: 16px; z-index: 70; max-height: calc(100vh - 112px); overflow-y: auto; }
  .language-switch { position: absolute; left: 86px; right: auto; top: 26px; margin-left: 0; }
  .language-switch button { min-width: 34px; min-height: 30px; font-size: 12px; padding: 0 6px; }
  .hero { min-height: 92vh; padding-bottom: 56px; }
  .case-hero { padding-top: 130px; padding-bottom: 58px; }
  .detail-hero { padding-top: 130px; padding-bottom: 46px; }
  .detail-hero h1 { max-width: 330px; font-size: clamp(34px, 10vw, 48px); line-height: 1.06; letter-spacing: -0.025em; word-break: break-word; }
  .detail-hero > p:not(.section-kicker) { max-width: 330px; }
  .detail-meta dd { max-width: 330px; font-size: 18px; word-break: break-all; white-space: normal; }
  .detail-gallery { grid-template-columns: 1fr; }
  .case-hero h1 { max-width: 330px; font-size: clamp(30px, 8vw, 38px); line-height: 1.12; letter-spacing: -0.015em; word-break: break-all; }
  .case-hero > p:not(.section-kicker) { max-width: 330px; word-break: break-all; }
  .case-actions-top, .case-actions-top .button { width: 100%; }
  .hero-content { max-width: 330px; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 48px); line-height: 1.08; letter-spacing: -0.025em; word-spacing: 0.02em; max-width: 100%; }
  .hero .eyebrow { max-width: 330px; line-height: 1.45; }
  .hero-copy { max-width: 100%; font-size: 17px; line-height: 1.45; }
  .hero-actions, .button { width: 100%; }
  .button { min-height: 54px; }
  .material-card { display: none; }
  .room-frame { opacity: 0.55; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .service-grid, .work-grid, .gallery-grid { grid-template-columns: 1fr; }
  .case-directory-grid { grid-template-columns: 1fr; }
  .gallery-card, .gallery-card-large, .gallery-card-wide { grid-column: auto; min-height: 360px; }
  .gallery-card div { left: 18px; right: 18px; bottom: 18px; }
  .service-card { min-height: 250px; }
  .service-card h3 { margin-top: 56px; }
  .image-feature { grid-column: auto; grid-template-columns: 1fr; }
  .sample { min-height: 120px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
