:root {
  color-scheme: light only;
  --bg: #efe8dc;
  --bg-strong: #12110f;
  --surface: #f7f2ea;
  --surface-deep: #1a1815;
  --line: rgba(18, 17, 15, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);
  --text: #171512;
  --text-soft: rgba(23, 21, 18, 0.72);
  --text-inverse: #f5efe7;
  --accent: #b78b58;
  --accent-deep: #8c6536;
  --max: 1220px;
  --shadow: 0 32px 80px rgba(9, 8, 7, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  transition: background-color 220ms ease, backdrop-filter 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(18, 17, 15, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-light);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--text-inverse);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  font-size: 0.76rem;
  color: rgba(245, 239, 231, 0.72);
}

.site-nav {
  display: none;
  gap: 22px;
  align-items: center;
  color: rgba(245, 239, 231, 0.84);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 96px 20px 32px;
  overflow: clip;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.78) 0%, rgba(10, 9, 8, 0.6) 42%, rgba(10, 9, 8, 0.18) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.22) 0%, rgba(10, 9, 8, 0.58) 100%);
}

.hero-inner,
.hero-strip {
  position: relative;
  z-index: 1;
}

.hero-inner {
  width: min(720px, 100%);
  padding-top: clamp(60px, 14vh, 160px);
  color: var(--text-inverse);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.section-head h2,
.contact h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.5rem, 8vw, 7.1rem);
}

.hero-copy {
  margin: 22px 0 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(245, 239, 231, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #140f0a;
}

.button-primary:hover {
  background: #ca9c67;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text-inverse);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.44);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
  max-width: 620px;
}

.hero-highlights li {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.88rem;
  color: rgba(245, 239, 231, 0.8);
}

.hero-strip {
  display: none;
}

.section {
  padding: 82px 20px;
}

.section-head,
.cred-grid,
.story-layout,
.principle-grid,
.service-rail,
.work-grid,
.contact-panel,
.demo-note,
.site-footer p {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
}

.section-head h2,
.contact h2 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.section-head.narrow h2 {
  max-width: 12ch;
}

.credibility {
  padding-top: 26px;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.cred-grid > div {
  display: grid;
  gap: 6px;
}

.cred-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.cred-grid strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.story-layout {
  display: grid;
  gap: 26px;
}

.story-copy {
  display: grid;
  gap: 18px;
  max-width: 44rem;
}

.story-copy p,
.contact-copy p,
.principle-grid p,
.service-rail p,
.demo-note p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-soft);
}

.story-quote {
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.story-quote p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.story-quote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.principles {
  background: var(--surface);
}

.principle-grid {
  display: grid;
  gap: 18px;
}

.principle-grid article {
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.principle-grid h3,
.service-rail h3,
.work-card h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
}

.service-rail {
  display: grid;
  gap: 26px;
}

.service-rail article {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.service-rail span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.work {
  background: linear-gradient(180deg, #f6f0e7 0%, #efe8dc 100%);
}

.work-grid {
  display: grid;
  gap: 16px;
}

.work-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: var(--surface-deep);
  color: var(--text-inverse);
}

.work-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.08) 0%, rgba(10, 9, 8, 0.72) 100%);
}

.work-card > div {
  position: absolute;
  inset: auto 20px 20px 20px;
  z-index: 1;
}

.work-card span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 239, 231, 0.72);
}

.work-card:hover img {
  transform: scale(1.05);
}

.contact {
  background: var(--bg-strong);
  color: var(--text-inverse);
}

.contact-panel {
  display: grid;
  gap: 26px;
}

.contact-copy p {
  color: rgba(245, 239, 231, 0.72);
}

.contact-meta {
  display: grid;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
}

.contact-meta a {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.contact-meta p {
  margin: 0;
  color: rgba(245, 239, 231, 0.72);
  line-height: 1.7;
}

.license {
  color: rgba(245, 239, 231, 0.52);
}

.demo-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
}

.demo-note strong {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.demo-note p {
  max-width: 40rem;
  color: rgba(245, 239, 231, 0.72);
}

.site-footer {
  padding: 18px 20px 34px;
  background: var(--bg-strong);
}

.site-footer p {
  margin: 0;
  color: rgba(245, 239, 231, 0.48);
  font-size: 0.78rem;
  line-height: 1.6;
}

.reveal,
.reveal-section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible,
.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 80ms;
}

.delay-2 {
  transition-delay: 160ms;
}

.delay-3 {
  transition-delay: 240ms;
}

@media (min-width: 720px) {
  .site-header {
    padding: 24px 32px;
  }

  .site-nav {
    display: inline-flex;
  }

  .hero {
    padding: 110px 32px 48px;
  }

  .hero-inner {
    width: min(58vw, 760px);
  }

  .hero-strip {
    position: absolute;
    right: 32px;
    bottom: 36px;
    z-index: 1;
    display: grid;
    gap: 14px;
    width: min(24vw, 300px);
  }

  .hero-strip article {
    position: relative;
    overflow: hidden;
    background: rgba(245, 239, 231, 0.06);
    backdrop-filter: blur(12px);
  }

  .hero-strip img {
    height: 132px;
    object-fit: cover;
  }

  .hero-strip span {
    position: absolute;
    left: 12px;
    bottom: 10px;
    color: var(--text-inverse);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .section {
    padding: 110px 32px;
  }

  .cred-grid,
  .principle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .story-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: start;
  }

  .service-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

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

  .work-card {
    min-height: 360px;
  }

  .work-card.tall {
    grid-column: span 5;
    grid-row: span 2;
    min-height: 520px;
  }

  .work-card.wide {
    grid-column: span 7;
    min-height: 300px;
  }

  .work-card:not(.tall):not(.wide) {
    grid-column: span 3;
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
    gap: 46px;
    align-items: end;
  }
}

@media (min-width: 1040px) {
  .site-header {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero {
    padding-left: 40px;
    padding-right: 40px;
  }

  .section,
  .site-footer {
    padding-left: 40px;
    padding-right: 40px;
  }
}
