/* Kora Construction — homepage styles */

:root {
  /* Palette — warm cream / deep forest / clay (default) */
  --bg:        #f3eee5;
  --bg-alt:    #ece5d7;
  --fg:        #1d231f;
  --fg-muted:  #5b5b50;
  --rule:      #1d231f;
  --rule-soft: rgba(29,35,31,0.16);
  --accent:    #a8542f;
  --paper:     #fbf8f1;

  /* Type */
  --serif: "EB Garamond", "Source Serif 4", Georgia, serif;
  --sans:  "DM Sans", "Inter Tight", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--fg);
}

/* ---------- Top bar / nav ---------- */
.topbar {
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.topbar .left { display: flex; gap: 28px; }
.topbar .right { display: flex; gap: 28px; }
.topbar .dot { color: var(--accent); }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 86px;
  gap: 48px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.logo .mark {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.logo .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  font-size: 14px;
}
.nav-links a {
  color: var(--fg);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.nav-links a:hover { border-bottom-color: var(--fg); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--fg);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: background .15s;
}
.nav-cta:hover { background: var(--accent); }
.nav-cta .arrow { font-family: var(--mono); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 24px;
  border-bottom: 1px solid var(--rule);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: end;
}
.hero h1 {
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hero .lede {
  margin-top: 28px;
  font-size: 19px;
  max-width: 46ch;
  color: var(--fg-muted);
}
.hero .cta-row {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
}
.btn-primary {
  background: var(--fg);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn-ghost:hover { background: var(--fg); color: var(--paper); }
.btn .arrow { font-family: var(--mono); }

.hero-meta {
  margin-top: 44px;
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hero-meta .seal {
  width: 56px;
  height: 56px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.05;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
  padding: 6px;
}
.hero-meta .seal b { display: block; font-weight: 600; }

.hero-image {
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(29,35,31,0.06) 0 1px,
      transparent 1px 14px),
    var(--bg-alt);
}
.placeholder::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg);
  padding: 4px 8px;
}

/* ---------- Marquee / strip ---------- */
.strip {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  overflow: hidden;
}
.strip .row {
  display: flex;
  gap: 56px;
  align-items: center;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--fg);
  white-space: nowrap;
  animation: marquee 50s linear infinite;
}
.strip .row span.dot {
  color: var(--accent);
  font-style: normal;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Section header ---------- */
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--rule);
}
.section.alt { background: var(--bg-alt); }
.section.dark {
  background: var(--fg);
  color: var(--paper);
}
.section.dark .eyebrow,
.section.dark .muted { color: rgba(251,248,241,0.62); }
.section.dark .eyebrow::before { background: var(--paper); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head .lede {
  max-width: 42ch;
  color: var(--fg-muted);
  font-size: 17px;
}
.section.dark .section-head .lede { color: rgba(251,248,241,0.7); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.service {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
  position: relative;
  transition: background .2s;
}
.service:nth-child(3n) { border-right: none; }
.service:hover { background: var(--bg-alt); }
.service .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
}
.service h3 {
  font-size: 26px;
  line-height: 1.08;
}
.service p {
  font-size: 14.5px;
  color: var(--fg-muted);
  margin-top: auto;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}
.project {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.project .img {
  aspect-ratio: 4 / 3;
  width: 100%;
}
.project.lg .img { aspect-ratio: 5 / 4; }
.project .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.project h3 {
  font-size: 28px;
  letter-spacing: -0.01em;
}
.project .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.project .desc {
  font-size: 15px;
  color: var(--fg-muted);
  max-width: 50ch;
}
.projects-row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(251,248,241,0.18);
}
.step {
  padding: 36px 28px 32px;
  border-right: 1px solid rgba(251,248,241,0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step:last-child { border-right: none; }
.step .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 38px;
  color: var(--accent);
  line-height: 1;
}
.step h3 {
  font-size: 24px;
  color: var(--paper);
}
.step p {
  font-size: 14.5px;
  color: rgba(251,248,241,0.7);
}

/* ---------- About / family ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.about-img { aspect-ratio: 4 / 5; }
.about-copy h2 {
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.about-copy h2 em { font-style: italic; color: var(--accent); }
.about-copy p {
  font-size: 17px;
  color: var(--fg);
  margin-bottom: 18px;
  max-width: 56ch;
}
.about-copy p.lede {
  font-size: 21px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg);
  margin-bottom: 28px;
  line-height: 1.4;
}
.signature {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.signature .name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
}
.signature .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: 48px 28px;
  border-right: 1px solid var(--rule-soft);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.stat .num em { font-style: italic; color: var(--accent); }
.stat .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 14px;
}

/* ---------- Testimonials ---------- */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.quote {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.quote .stars {
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: 0.18em;
}
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.32;
  letter-spacing: -0.005em;
}
.quote blockquote::before { content: "\201C"; color: var(--accent); }
.quote blockquote::after  { content: "\201D"; color: var(--accent); }
.quote cite {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.quote cite b { color: var(--fg); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.contact-info dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  row-gap: 16px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(251,248,241,0.18);
}
.contact-info dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251,248,241,0.6);
  padding-top: 4px;
}
.contact-info dd {
  margin: 0;
  font-size: 17px;
  color: var(--paper);
}
.contact-info dd .big {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  background: var(--paper);
  color: var(--fg);
  padding: 40px 42px;
}
.form .full { grid-column: span 2; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.form input,
.form select,
.form textarea {
  font: inherit;
  font-size: 16px;
  font-family: var(--sans);
  color: var(--fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0 10px;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 0;
  outline: none;
  transition: border-color .15s;
}
.form input:focus,
.form select:focus,
.form textarea:focus { border-bottom-color: var(--accent); }
.form textarea { resize: vertical; min-height: 110px; }
.form .submit-row {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}
.form .fine {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  max-width: 28ch;
}

/* ---------- Footer ---------- */
footer {
  background: var(--fg);
  color: var(--paper);
  padding: 80px 0 32px;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(251,248,241,0.18);
}
.foot-brand .mark {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.foot-brand .tag {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(251,248,241,0.7);
  max-width: 30ch;
}
.foot-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251,248,241,0.55);
  margin-bottom: 18px;
  font-weight: 400;
}
.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.foot-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251,248,241,0.55);
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------- Tweaks host (Tweaks panel itself is React; this is for our knobs only) ---------- */
#tweaks-root { position: fixed; inset: 0; pointer-events: none; z-index: 1000; }
#tweaks-root > * { pointer-events: auto; }

/* ---------- Smaller screens (best effort) ---------- */
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .hero .wrap, .section-head, .about-grid, .contact-grid, .quotes-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(3n) { border-right: 1px solid var(--rule-soft); }
  .service:nth-child(2n) { border-right: none; }
  .projects-grid, .projects-row-2 { grid-template-columns: 1fr; }
  .process, .stats { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n), .stat:nth-child(2n) { border-right: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav .wrap { grid-template-columns: auto auto; }
}
