/* ============================================================
   Martin Doks Homes — static luxury site
   Pure CSS + variables. No build step.
   ============================================================ */

:root {
  --black: #0a0a0a;
  --charcoal: #141414;
  --graphite: #1e1e1e;
  --beige: #c9b99a;
  --beige-soft: #d8cfc0;
  --stone: #9a9188;
  --white: #f7f5f2;
  --white-dim: rgba(247, 245, 242, 0.72);
  --bronze: #9a7b4f;
  --bronze-bright: #c4a574;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --header-h: 4.25rem;
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--white-dim);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bronze-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--black);
  z-index: 10000;
}
.skip-link:focus {
  left: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.92), transparent);
  transition: background 0.5s var(--ease-soft), backdrop-filter 0.5s;
}
.site-header.is-solid {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.logo-mark {
  flex-shrink: 0;
  display: block;
  height: 2.65rem;
  width: auto;
  max-width: min(13rem, 46vw);
  object-fit: contain;
  object-position: left center;
}
@media (min-width: 640px) {
  .logo-mark {
    height: 2.85rem;
    max-width: 14rem;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--white);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.35s var(--ease-soft);
}
.site-nav a:hover {
  color: var(--white);
}

.site-nav a[aria-current="page"] {
  color: var(--bronze-bright);
}
.nav-cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(196, 165, 116, 0.45);
  color: var(--bronze-bright) !important;
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}
.nav-cta:hover {
  background: rgba(196, 165, 116, 0.12);
  border-color: var(--bronze-bright);
  color: var(--white) !important;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 520px) {
  .logo-mark {
    height: 2.35rem;
    max-width: min(11rem, 52vw);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(10, 10, 10, 0.97);
    padding: 2rem 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s var(--ease-out), opacity 0.35s;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* ----- Layout ----- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(5rem, 12vw, 9rem) 0;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze-bright);
  margin: 0 0 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.12;
  color: var(--white);
  margin: 0 0 1.25rem;
  max-width: 18ch;
}
.section-title em {
  font-style: italic;
  color: var(--beige-soft);
}

.section-deck {
  max-width: 42ch;
  margin: 0;
  color: var(--white-dim);
}

.section-head.center {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3.5rem;
}
.section-head.center .section-title {
  margin-left: auto;
  margin-right: auto;
}
.section-head.center .section-deck {
  margin-left: auto;
  margin-right: auto;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 1.5rem 5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  z-index: 0;
  transform: scale(1.05);
  transition: opacity 1.15s var(--ease-soft);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
  animation: heroKenImg 28s ease-in-out infinite alternate;
}

@keyframes heroKenImg {
  to {
    transform: scale(1.12) translateX(-1.5%);
  }
}

.hero-carousel-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5.5rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero-carousel-ui {
    bottom: 6.5rem;
  }
}

.hero-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: min(90vw, 22rem);
  pointer-events: auto;
}

.hero-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(247, 245, 242, 0.35);
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-soft);
}

.hero-dot:hover,
.hero-dot:focus-visible {
  background: rgba(247, 245, 242, 0.65);
  outline: none;
}

.hero-dot.is-active {
  background: var(--bronze-bright);
  transform: scale(1.35);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
  .hero-slide.is-active {
    animation: none;
    transform: scale(1.05);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(10, 10, 10, 0.75) 0%, transparent 45%),
    linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 40%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(154, 123, 79, 0.12), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--beige);
  margin: 0 0 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 7.5vw, 4.75rem);
  line-height: 1.05;
  color: var(--white);
  margin: 0 0 1.5rem;
  max-width: 14ch;
}

.hero-lede {
  max-width: 36ch;
  margin: 0 0 2.25rem;
  font-size: 1.1rem;
  color: var(--white-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.35s, border-color 0.35s, color 0.35s;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--bronze), #6e5638);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(247, 245, 242, 0.35);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.btn-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #b8f5c8;
  border: 1px solid rgba(37, 211, 102, 0.35);
  margin-top: 1.5rem;
}
.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  color: #fff;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--stone);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  z-index: 5;
}
.scroll-hint-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--bronze), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ----- Reveal on scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(2.25rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children optional via JS or CSS nth - keep simple */

/* ----- About split ----- */
.about {
  background: var(--charcoal);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split-media {
    order: -1;
  }
}

.frame {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--graphite);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(196, 165, 116, 0.2);
  pointer-events: none;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.frame:hover img {
  transform: scale(1.04);
}

.split-text p {
  margin: 0 0 1.25rem;
}

.pill-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.pill-list li {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(247, 245, 242, 0.15);
  color: var(--beige-soft);
}

/* ----- Projects ----- */
.projects {
  background: var(--black);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-card.wide {
  grid-column: span 2;
}

@media (max-width: 700px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card.wide {
    grid-column: span 1;
  }
}

.project-card-inner {
  all: unset;
  cursor: pointer;
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--graphite);
  min-height: 22rem;
}
.project-card.wide .project-card-inner {
  min-height: 18rem;
}

.project-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
  transition: transform 1s var(--ease-out), filter 0.6s;
  filter: brightness(0.85);
}
.project-card.wide .project-card-inner img {
  min-height: 18rem;
}
.project-card-inner:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

.project-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent);
}
.project-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze-bright);
}
.project-card-body h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.75rem;
  color: var(--white);
  margin: 0.35rem 0 0.5rem;
}
.project-card-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--white-dim);
  max-width: 40ch;
}

/* ----- Portfolio (showreel) ----- */
.portfolio {
  background: var(--charcoal);
}

.portfolio-video {
  margin: 0 auto;
  max-width: 56rem;
}

.portfolio-video-el {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 40rem);
  border-radius: 2px;
  border: 1px solid rgba(247, 245, 242, 0.1);
  background: #050505;
}

/* ----- Partners ----- */
.partners {
  background: var(--black);
  border-top: 1px solid rgba(247, 245, 242, 0.06);
}

.inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.88em;
  padding: 0.12em 0.45em;
  border-radius: 3px;
  background: rgba(247, 245, 242, 0.08);
  color: var(--beige-soft);
  letter-spacing: 0;
  text-transform: none;
}

.partner-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.25rem 1.5rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--stone);
  text-align: center;
  transition: color 0.35s var(--ease-soft);
}

.partner-card:hover,
.partner-card:focus-visible {
  color: var(--beige-soft);
  outline: none;
}

.partner-card-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 6.5rem;
  padding: 1.35rem 1.5rem;
  background: rgba(247, 245, 242, 0.04);
  border: 1px solid rgba(247, 245, 242, 0.1);
  border-radius: 2px;
  transition: border-color 0.4s var(--ease-soft), background 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}

.partner-card:hover .partner-card-frame,
.partner-card:focus-visible .partner-card-frame {
  border-color: rgba(196, 165, 116, 0.45);
  background: rgba(247, 245, 242, 0.06);
  box-shadow: 0 0 0 1px rgba(196, 165, 116, 0.12);
}

.partner-card-frame img {
  display: block;
  max-height: 3.25rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(1.12) contrast(1.02);
  opacity: 0.82;
  transition: filter 0.45s var(--ease-soft), opacity 0.45s var(--ease-soft), transform 0.45s var(--ease-out);
}

.partner-card:hover .partner-card-frame img,
.partner-card:focus-visible .partner-card-frame img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}

.partner-name {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .partner-card-frame img {
    transition: none;
  }
  .partner-card:hover .partner-card-frame img,
  .partner-card:focus-visible .partner-card-frame img {
    transform: none;
  }
}

/* ----- Services ----- */
.services {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--black) 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1px;
  background: rgba(247, 245, 242, 0.08);
  border: 1px solid rgba(247, 245, 242, 0.08);
}

.service-card {
  padding: 2.25rem 1.75rem;
  background: var(--charcoal);
  transition: background 0.45s var(--ease-soft);
}
.service-card:hover {
  background: #1a1a1a;
}

.service-index {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: rgba(196, 165, 116, 0.35);
  line-height: 1;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--white);
  margin: 0 0 0.75rem;
}
.service-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ----- Experience ----- */
.experience {
  background: var(--black);
}

.exp-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1000px) {
  .exp-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .exp-strip {
    grid-template-columns: 1fr;
  }
}

.exp-item {
  text-align: center;
}
.exp-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(196, 165, 116, 0.15);
  background: var(--graphite);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s;
}
.exp-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease-out);
}
.exp-item:hover .exp-visual {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
.exp-item:hover .exp-visual img {
  transform: scale(1.05);
}
.exp-item h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--white);
  margin: 0 0 0.5rem;
}
.exp-item p {
  margin: 0;
  font-size: 0.88rem;
  padding: 0 0.5rem;
}

/* ----- Investors ----- */
.investors {
  background: var(--charcoal);
}

.investor-panel {
  border: 1px solid rgba(196, 165, 116, 0.22);
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.98));
  padding: clamp(2.5rem, 6vw, 4rem);
}

.investor-inner {
  max-width: 48rem;
}
.investor-inner p {
  margin: 0 0 1.25rem;
}

.investor-points {
  margin: 1.5rem 0 2rem;
  padding-left: 1.15rem;
  color: var(--beige-soft);
}
.investor-points li {
  margin-bottom: 0.5rem;
}

/* ----- Testimonials ----- */
.testimonials {
  background: var(--black);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.quote {
  margin: 0;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(247, 245, 242, 0.1);
  background: rgba(20, 20, 20, 0.5);
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}
.quote:hover {
  border-color: rgba(196, 165, 116, 0.35);
  transform: translateY(-3px);
}
.quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--white);
}
.quote figcaption {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
.quote cite {
  font-style: normal;
  color: var(--beige);
}

/* ----- Blog — LinkedIn embed grid ----- */
.blog {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--black) 100%);
  border-top: 1px solid rgba(247, 245, 242, 0.06);
}

.blog-follow-link {
  margin: 1.5rem auto 0;
  text-align: center;
}

.linkedin-embed-grid {
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: min(100%, calc(504px * 3 + 2 * 1.5rem));
  margin-left: auto;
  margin-right: auto;
}

.linkedin-embed-grid .linkedin-embed-wrap {
  margin: 0;
  justify-self: center;
  width: 100%;
}

@media (max-width: 1180px) {
  .linkedin-embed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: min(100%, calc(504px * 2 + 1.5rem));
  }
}

@media (max-width: 640px) {
  .linkedin-embed-grid {
    grid-template-columns: 1fr;
    max-width: 504px;
  }
}

.linkedin-embed-wrap {
  width: 100%;
  max-width: 504px;
  margin: 0 auto;
  border-radius: 2px;
  border: 1px solid rgba(247, 245, 242, 0.1);
  overflow: hidden;
  background: rgba(10, 10, 10, 0.6);
}

.linkedin-embed-wrap iframe {
  display: block;
  width: 100%;
  max-width: 504px;
  margin: 0 auto;
  border: 0;
  vertical-align: middle;
}

@media (max-width: 540px) {
  .linkedin-embed-wrap iframe {
    min-height: 480px;
  }
}

/* ----- Blog subpage (/blog/) ----- */
.site-header--sub {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
}

.blog-hero {
  text-align: center;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  background: var(--charcoal);
  border-bottom: 1px solid rgba(247, 245, 242, 0.06);
}

.blog-page-title {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.blog-page-deck {
  margin-left: auto;
  margin-right: auto;
}

.blog-back-link {
  margin-top: 2rem;
}

.footer-brand-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.footer-brand-link:focus-visible {
  outline: 2px solid rgba(196, 165, 116, 0.55);
  outline-offset: 4px;
}

.blog-post-page .blog-post-article {
  text-align: left;
}

.blog-post-page .blog-post-article .container {
  text-align: left;
}

.blog-post-page .blog-post-article .blog-page-title {
  margin-left: 0;
  margin-right: 0;
  max-width: 20ch;
}

@media (min-width: 700px) {
  .blog-post-page .blog-post-article .blog-page-title {
    max-width: 24ch;
  }
}

.post-breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.5rem;
}

.post-breadcrumb a {
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.3s var(--ease-soft);
}

.post-breadcrumb a:hover {
  color: var(--beige-soft);
}

.post-breadcrumb-current {
  color: var(--bronze-bright);
}

.post-meta {
  font-size: 0.82rem;
  color: var(--bronze-bright);
  letter-spacing: 0.08em;
  margin: 0 0 2rem;
}

.blog-post-body {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.post-prose {
  color: var(--white-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: left;
}

.post-prose p {
  margin: 0 0 1.25rem;
}

.post-prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3.5vw, 1.75rem);
  font-weight: 500;
  color: var(--white);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}

.post-prose h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  margin: 1.75rem 0 0.65rem;
}

.post-prose ul,
.post-prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--white-dim);
}

.post-prose li {
  margin-bottom: 0.35rem;
}

.post-prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 3px solid rgba(196, 165, 116, 0.45);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--beige-soft);
}

.post-prose strong {
  color: var(--white);
  font-weight: 500;
}

/* ----- Contact ----- */
.contact {
  background: linear-gradient(180deg, var(--black) 0%, #0d0d0d 100%);
  padding-bottom: 6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

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

.contact-intro .section-title {
  max-width: none;
}

.contact-note {
  font-size: 0.8rem;
  color: var(--stone);
  margin-top: 1rem;
}
.contact-note code {
  font-size: 0.75em;
  color: var(--beige-soft);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 2rem;
  border: 1px solid rgba(247, 245, 242, 0.12);
  background: rgba(20, 20, 20, 0.6);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.contact-form label.full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(247, 245, 242, 0.12);
  background: rgba(10, 10, 10, 0.6);
  color: var(--white);
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--bronze);
  outline: none;
}

.contact-form .btn-primary {
  grid-column: 1 / -1;
  justify-self: start;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--bronze-bright);
}

/* ----- Footer ----- */
.site-footer {
  background: #070707;
  border-top: 1px solid rgba(247, 245, 242, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
  gap: 2rem;
  padding: 3rem 1.5rem;
  align-items: start;
}

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

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.footer-brand {
  display: block;
  margin-bottom: 0.25rem;
}
.footer-logo-mark {
  flex-shrink: 0;
  opacity: 0.95;
  height: 2.35rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.footer-tag {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--stone);
  max-width: 36ch;
}

.footer-note {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--stone);
  letter-spacing: 0.06em;
}

.footer-heading {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze-bright);
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  display: block;
  padding: 0.25rem 0;
  color: var(--white-dim);
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--white);
}

.footer-links a[aria-current="page"] {
  color: var(--bronze-bright);
}

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--white-dim);
  border: 1px solid rgba(247, 245, 242, 0.12);
  border-radius: 2px;
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--bronze-bright);
  border-color: rgba(196, 165, 116, 0.45);
  background: rgba(196, 165, 116, 0.08);
  outline: none;
}

.footer-social-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.footer-address {
  margin: 0;
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.7;
}

.footer-brand-col .footer-address {
  margin-top: 1rem;
  max-width: none;
}

.footer-bar {
  border-top: 1px solid rgba(247, 245, 242, 0.06);
}
.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.78rem;
  color: var(--stone);
}
.footer-bar-inner a {
  color: var(--beige-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

/* ----- Modal ----- */
.modal-root[hidden] {
  display: none !important;
}

.modal-root:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  width: 100%;
  padding: 2.25rem 2rem;
  background: var(--charcoal);
  border: 1px solid rgba(196, 165, 116, 0.25);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  animation: modalIn 0.45s var(--ease-out);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.98);
  }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  background: none;
  border: 0;
  color: var(--white-dim);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s;
}
.modal-close:hover {
  color: var(--white);
}

.modal-dialog h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--white);
  margin: 0 0 1rem;
  padding-right: 2rem;
}
.modal-dialog p {
  margin: 0;
  color: var(--white-dim);
}

body.modal-open {
  overflow: hidden;
}
