:root {
  --ink: #0f1720;
  --muted: #5f6670;
  --line: #e8e2d8;
  --paper: #fff;
  --soft: #f6f1e9;
  --accent: #c69b5c;
  --accent-dark: #0f1720;
  --shadow: 0 18px 55px rgba(20, 24, 31, 0.1);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(232, 226, 216, 0.75);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-brand {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 44px);
  font-size: 15px;
  font-weight: 650;
}

.main-nav a {
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: clamp(36px, 8vw, 92px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(46px, 8vw, 92px) clamp(20px, 5vw, 56px);
}

.hero-copy {
  max-width: 590px;
}

.eyebrow,
.project-category {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6.2vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 590px;
  color: #202832;
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions,
.project-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #cfc8bd;
  border-radius: 9px;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 32, 0.12);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
}

.hero-image {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-graphic {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  padding: clamp(28px, 6vw, 56px);
  background:
    radial-gradient(circle at 82% 18%, rgba(15, 23, 32, 0.08), transparent 24%),
    linear-gradient(145deg, #f7f7f5 0%, #e8ebed 100%);
}

.hero-graphic::before,
.hero-graphic::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(15, 23, 32, 0.12);
  border-radius: 50%;
}

.hero-graphic::before {
  width: 260px;
  height: 260px;
  top: -110px;
  right: -75px;
}

.hero-graphic::after {
  width: 180px;
  height: 180px;
  bottom: -90px;
  left: -55px;
}

.hero-graphic-kicker {
  position: absolute;
  top: 28px;
  left: 30px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.hero-graphic-window {
  position: relative;
  width: min(330px, 88%);
  min-height: 205px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 32, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 55px rgba(15, 23, 32, 0.12);
}

.hero-graphic-window > span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.28;
}

.hero-graphic-lines {
  height: 118px;
  margin-top: 22px;
  border-radius: 8px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 62% 12px no-repeat,
    linear-gradient(#aeb5bb, #aeb5bb) 0 28px / 86% 8px no-repeat,
    linear-gradient(#c5cacf, #c5cacf) 0 50px / 72% 8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 86px / 38% 28px no-repeat;
}

.hero-copy > .eyebrow {
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.project-category,
.work-copy > .eyebrow {
  color: var(--ink);
}

.section-block {
  padding: clamp(44px, 8vw, 76px) clamp(20px, 5vw, 56px);
  background: #fff;
  border-top: 1px solid rgba(232, 226, 216, 0.72);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading h2,
.work-section h2,
.contact-panel h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

.project-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(210, 202, 191, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(22, 26, 32, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(22, 26, 32, 0.13);
}

.project-visual {
  height: 176px;
  overflow: hidden;
  background: var(--soft);
}

.project-visual img {
  width: 100%;
  height: 176px;
  object-fit: cover;
}

.tech-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 22px;
  text-align: center;
  background:
    radial-gradient(circle at 24% 20%, rgba(198, 155, 92, 0.2), transparent 28%),
    linear-gradient(135deg, #f9f6ef 0%, #e8edf0 100%);
}

.tech-visual span {
  font-size: 42px;
}

.tech-visual strong {
  display: block;
  font-size: 28px;
}

.tech-visual small {
  color: var(--muted);
  font-weight: 700;
}

.project-copy {
  flex: 1;
  padding: 20px 20px 8px;
}

.project-copy h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.16;
}

.project-copy p:not(.project-category) {
  color: #27313c;
  font-size: 15px;
}

.project-actions {
  padding: 12px 20px 20px;
}

.project-actions .button {
  flex: 1 1 auto;
}

.work-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 7vw, 84px);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 96px) clamp(20px, 5vw, 56px);
}

.work-copy {
  color: #202832;
  font-size: clamp(18px, 2vw, 23px);
}

.work-copy p:not(.eyebrow) {
  max-width: 610px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(210, 202, 191, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

.hidden-field {
  display: none;
}

.form-row label {
  color: #26313b;
  font-size: 14px;
  font-weight: 750;
}

.form-row input,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d6cfc5;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.form-row textarea {
  min-height: 136px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 3px solid rgba(198, 155, 92, 0.22);
  border-color: var(--accent);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 36px;
  padding: 34px clamp(20px, 5vw, 56px);
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  margin-bottom: 10px;
  font-size: 14px;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 6px;
  color: #3d4650;
  font-size: 14px;
}

.copyright {
  grid-column: 1 / -1;
}

.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 32, 0.48);
}

.modal-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(280px, 1fr);
  width: min(840px, 100%);
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.modal-content {
  padding: clamp(24px, 5vw, 42px);
}

.modal-content.wide {
  grid-column: 1 / -1;
}

.modal-art img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.modal-map-art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 14px;
  padding: 24px;
  background: #f3f4f4;
}

.modal-map-art img {
  min-height: 0;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 14px 30px rgba(15, 23, 32, 0.1);
}

.modal-content h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1;
}

.modal-content h3 {
  margin: 22px 0 8px;
}

.modal-price {
  color: var(--accent-dark);
  font-weight: 850;
}

.modal-content ul {
  padding-left: 20px;
  color: #29333e;
}

.purchase-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.purchase-options .button {
  width: 100%;
  padding-inline: 14px;
  white-space: nowrap;
}

.icon-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  font-size: 23px;
  cursor: pointer;
}

.waitlist-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.waitlist-form label {
  font-weight: 750;
}

.waitlist-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d6cfc5;
  border-radius: 9px;
  font: inherit;
}

.success-message {
  color: #2d6b3f;
  font-weight: 750;
}

.contact-page {
  min-height: calc(100vh - 73px);
  display: grid;
  place-items: center;
  padding: clamp(44px, 8vw, 96px) 20px;
}

.contact-panel {
  max-width: 720px;
  padding: clamp(30px, 7vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-panel p {
  color: #27313c;
  font-size: 20px;
}

.delivery-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 72px) 20px;
  background: #f5f6f6;
}

.delivery-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 1fr);
  width: min(920px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.delivery-image {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.delivery-copy {
  align-self: center;
  padding: clamp(30px, 7vw, 70px);
}

.delivery-copy > .eyebrow {
  color: var(--ink);
}

.delivery-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(38px, 5.5vw, 62px);
}

.delivery-copy > p:not(.eyebrow) {
  color: #27313c;
  font-size: 18px;
}

.delivery-button {
  width: 100%;
  margin: 10px 0 18px;
}

.delivery-copy .delivery-help {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-section,
  .site-footer,
  .delivery-card {
    grid-template-columns: 1fr;
  }

  .delivery-image {
    max-height: 360px;
    min-height: 0;
    object-fit: contain;
    background: #f3f4f4;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
  }

  .hero {
    padding-top: 38px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .modal-shell {
    max-height: calc(100vh - 32px);
    overflow: auto;
    grid-template-columns: 1fr;
  }

  .modal-art img {
    min-height: 230px;
    max-height: 300px;
  }

  .modal-map-art {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
  }

  .modal-map-art img {
    min-height: 0;
  }

  .purchase-options {
    grid-template-columns: 1fr;
  }
}
