:root {
  color-scheme: dark;
  --bg: #101114;
  --bg-soft: #17191d;
  --text: #f5f2e9;
  --muted: #bbb7aa;
  --line: rgba(245, 242, 233, 0.16);
  --accent: #c4a05f;
  --accent-strong: #e0bd76;
  --accent-text: #17120a;
  --link: #8fc6cf;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f3ea;
  --bg-soft: #ffffff;
  --text: #181916;
  --muted: #615d54;
  --line: rgba(24, 25, 22, 0.14);
  --accent: #84652f;
  --accent-strong: #6b4f22;
  --accent-text: #fff8e8;
  --link: #2d7580;
  --shadow: 0 24px 70px rgba(61, 53, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(196, 160, 95, 0.08), transparent 38rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  object-fit: contain;
  filter: invert(1);
}

[data-theme="light"] .brand-mark,
[data-theme="light"] .hero-logo {
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  box-shadow: none;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--accent) 64%, var(--line));
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
}

.icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: none;
}

[data-theme="light"] .icon-moon {
  display: block;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: clamp(3rem, 8vw, 6.75rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  max-width: 43rem;
}

.eyebrow,
.section-kicker,
.project-label {
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.5rem, 9vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.lede {
  max-width: 39rem;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 760;
  line-height: 1.1;
  text-decoration: none;
}

.button:hover {
  border-color: color-mix(in srgb, var(--accent) 64%, var(--line));
}

.identity-panel,
.project-card,
.contact-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.identity-panel {
  padding: clamp(1.35rem, 4vw, 2rem);
}

.hero-logo {
  display: block;
  width: min(100%, 14rem);
  height: auto;
  margin: 0 auto 2rem;
  filter: invert(1);
}

.company-facts {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.company-facts div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.company-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.company-facts dd {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-weight: 760;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(1.8rem, 5vw, 4rem);
}

.section-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-copy p:last-child,
.contact-section p:last-child,
.project-card p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 1.6rem;
}

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

.project-card {
  display: flex;
  min-height: 20rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
}

.project-card p:not(.project-label) {
  color: var(--muted);
}

.project-card a {
  width: fit-content;
  margin-top: 1.5rem;
  color: var(--link);
  font-weight: 760;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 1.2fr);
  gap: clamp(1.5rem, 5vw, 3rem);
  margin: clamp(2rem, 6vw, 4rem) 0;
  padding: clamp(1.35rem, 4vw, 2rem);
}

.contact-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.2rem;
  }

  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  h1 {
    max-width: 9ch;
  }

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

  .project-card {
    min-height: 16rem;
  }
}

@media (max-width: 420px) {
  body {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .brand span {
    font-size: 0.92rem;
  }

  .site-nav a {
    font-size: 0.88rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
