:root {
  color-scheme: dark;
  --ink: #f4efe7;
  --muted: #b7b2a8;
  --dim: #817b70;
  --line: rgba(244, 239, 231, 0.16);
  --line-strong: rgba(244, 239, 231, 0.32);
  --bg: #111816;
  --bg-deep: #090d0c;
  --panel: #18231f;
  --panel-2: #23332d;
  --copper: #d4874b;
  --copper-bright: #f1b06f;
  --blue: #486d73;
  --cream: #efe4d2;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --header-h: 72px;
  --shell: min(1360px, calc(100vw - 80px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(72, 109, 115, 0.16), transparent 360px),
    radial-gradient(circle at 18% 0, rgba(212, 135, 75, 0.16), transparent 360px),
    var(--bg-deep);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: rgba(241, 176, 111, 0.32);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--cream);
  color: #17231f;
  padding: 10px 14px;
  font-weight: 800;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(40px, calc((100vw - 1360px) / 2));
  border-bottom: 1px solid rgba(244, 239, 231, 0.08);
  background: rgba(9, 13, 12, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--copper-bright);
}

.brand__mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.brand__mark circle:first-child {
  fill: rgba(212, 135, 75, 0.18);
}

.brand__name {
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--copper-bright);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.hero {
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 54px);
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.75fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-wrap: balance;
}

h1 {
  max-width: 860px;
  font-size: clamp(3.4rem, 5vw, 5.7rem);
  line-height: 0.96;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

h3 {
  font-size: 1.15rem;
}

.lede,
.section-heading p,
.contact__copy p,
.empty-state p,
.empty-page p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 18px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.button--primary {
  border-color: transparent;
  background: var(--copper-bright);
  color: #16100c;
}

.button--secondary {
  background: rgba(244, 239, 231, 0.04);
}

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

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 720px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.hero__stats div {
  padding: 16px;
  background: rgba(24, 35, 31, 0.9);
}

.hero__stats dt {
  font-size: 1.25rem;
  font-weight: 900;
}

.hero__stats dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero__media {
  width: min(100%, 540px);
  margin: 0;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--panel);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 1200 / 820;
  object-fit: cover;
}

.brand-band {
  width: min(1040px, calc(100vw - 40px));
  margin: -26px auto 80px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.brand-band img {
  width: 100%;
}

.story {
  position: relative;
  height: 500vh;
}

.story__sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  overflow: hidden;
  border-block: 1px solid rgba(244, 239, 231, 0.08);
  background:
    linear-gradient(90deg, rgba(9, 13, 12, 0.7), transparent 30%, transparent 70%, rgba(9, 13, 12, 0.7)),
    #101715;
}

.story__track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.story-section {
  flex: 0 0 100vw;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: 64px max(20px, calc((100vw - 1160px) / 2)) 112px;
}

.story-section__copy,
.story-section__aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 35, 31, 0.78);
  box-shadow: var(--shadow);
}

.story-section__copy {
  padding: clamp(22px, 4vw, 42px);
}

.story-section__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-section h2 {
  margin-bottom: 18px;
}

.story-section p {
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 12px;
  height: 2px;
  background: var(--copper-bright);
}

.story-section__aside {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(72, 109, 115, 0.26), transparent 50%),
    rgba(35, 51, 45, 0.88);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.tag:hover,
.tag:focus-visible {
  border-color: var(--copper-bright);
  color: var(--ink);
}

.story-meter {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: min(700px, calc(100vw - 40px));
  transform: translateX(-50%);
  pointer-events: none;
}

.story-meter__rail {
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: rgba(244, 239, 231, 0.18);
}

.story-meter__rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(244, 239, 231, 0.58) 0 10px, transparent 10px 20px);
  opacity: 0.28;
}

.story-meter__bike {
  position: absolute;
  left: 0;
  top: 50%;
  width: 54px;
  height: 38px;
  transform: translate(-50%, -54%);
  color: var(--copper-bright);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6));
}

.story-meter__bike svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-meter__labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.projects,
.process,
.contact {
  padding: 104px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -20px;
}

.section-heading p {
  margin: 0;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(24, 35, 31, 0.86);
  text-decoration: none;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--copper-bright);
  transform: translateY(-2px);
}

.project-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--panel-2);
}

.project-card__body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.project-card__name {
  color: var(--copper-bright);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.process-list article {
  min-height: 220px;
  padding: 24px;
  background: rgba(24, 35, 31, 0.92);
}

.process-list span {
  color: var(--copper-bright);
  font-weight: 900;
}

.process-list h3 {
  margin: 18px 0 10px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(24, 35, 31, 0.86);
}

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

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

.form-field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1311;
  color: var(--ink);
  padding: 12px 13px;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(241, 176, 111, 0.28);
  border-color: var(--copper-bright);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  width: var(--shell);
  margin: 0 auto;
  padding: 36px 0 54px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.project-page {
  padding-top: var(--header-h);
}

.project-hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 70px 0;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 74px);
  align-items: center;
}

.project-detail img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project-detail__copy h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 7vw, 6rem);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  grid-column: 1 / -1;
  margin-top: 34px;
}

.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(24, 35, 31, 0.82);
}

.detail-panel:last-child {
  grid-column: 1 / -1;
}

.detail-panel h2 {
  max-width: none;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-bright);
}

.detail-panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.empty-page {
  min-height: 100svh;
  display: grid;
  align-content: center;
}

.empty-state {
  max-width: 720px;
}

@media (max-width: 980px) {
  .hero,
  .story-section,
  .contact,
  .project-detail {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 820px;
  }

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

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

@media (max-width: 720px) {
  :root {
    --header-h: 66px;
    --shell: min(100vw - 28px, 1160px);
  }

  .site-header {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
    line-height: 0.98;
  }

  .brand__name {
    font-size: 0.78rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav:not(.site-nav--inline) {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: grid;
    gap: 0;
    padding: 10px 14px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 13, 12, 0.96);
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 0;
  }

  .hero {
    padding-top: calc(var(--header-h) + 42px);
  }

  .hero__media {
    width: 100%;
    justify-self: stretch;
  }

  .hero__stats,
  .process-list,
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .story {
    height: auto;
  }

  .story__sticky {
    position: static;
    height: auto;
    overflow: visible;
  }

  .story__track {
    display: grid;
    transform: none !important;
  }

  .story-section {
    min-height: auto;
    padding-block: 48px;
  }

  .story-meter {
    display: none;
  }

  .projects,
  .process,
  .contact {
    padding-block: 72px;
  }

  .site-footer {
    display: grid;
  }
}

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

  .story {
    height: auto;
  }

  .story__sticky {
    position: static;
    height: auto;
    overflow: visible;
  }

  .story__track {
    display: grid;
    transform: none !important;
  }

  .story-section {
    min-height: auto;
    padding-block: 52px;
  }

  .story-meter {
    display: none;
  }
}
