@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  --bg: #070a09;
  --bg-soft: #0d1210;
  --panel: #101713;
  --panel-2: #141b17;
  --text: #f4f1e9;
  --muted: #b9c1b6;
  --quiet: #7d887c;
  --line: rgba(244, 241, 233, 0.13);
  --accent: #6f815f;
  --accent-bright: #93a77f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --max: 1160px;
  --radius: 6px;
  font-family: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: #070a09;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 8%, rgba(111, 129, 95, 0.16), transparent 32rem),
    linear-gradient(180deg, #050706 0%, var(--bg) 40%, #080b0a 100%);
  background-color: #070a09;
}

body.nav-open {
  overflow: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Manrope", sans-serif;
}
img {
  display: block;
  max-width: 100%;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--text);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(5, 7, 6, 0.84), rgba(5, 7, 6, 0.34));
  backdrop-filter: blur(16px);
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(5, 7, 6, 0.92);
}

.nav {
  width: min(calc(100% - 40px), var(--max));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: clamp(180px, 22vw, 260px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.nav-links a {
  position: relative;
  color: rgba(244, 241, 233, 0.78);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--accent-bright);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--text);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero,
.page-hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.home-hero {
  min-height: 820px;
}

.hero-media,
.page-hero-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.home-hero .hero-media {
  background-image: url("home-hero-alabama-pines.jpg");
  background-position: 28% 18%;
  background-size: 120%;
}

.work-hero .page-hero-media {
  background-image: url("work-hero-alabama-ridge.jpg");
  background-position: center 38%;
}

.contact-hero .page-hero-media {
  background-image: url("contact-hero-dirt-road.jpg");
  background-position: center 58%;
}

.hero-overlay,
.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.94) 0%, rgba(5, 7, 6, 0.66) 44%, rgba(5, 7, 6, 0.42) 100%),
    linear-gradient(180deg, rgba(5, 7, 6, 0.42) 0%, rgba(5, 7, 6, 0.2) 44%, #070a09 100%);
}

.home-hero .hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.78) 0%, rgba(5, 7, 6, 0.48) 46%, rgba(5, 7, 6, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 7, 6, 0.2) 0%, rgba(5, 7, 6, 0.1) 46%, #070a09 100%);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding-top: 82px;
}

.hero-content {
  max-width: 760px;
  margin-left: max(20px, calc((100% - var(--max)) / 2));
}

.page-hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-bright);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  max-width: 980px;
  font-weight: 700;
  line-height: 1.02;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 8vw, 7.4rem);
}

.page-hero h1 {
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy,
.page-hero-content p {
  max-width: 620px;
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid rgba(244, 241, 233, 0.28);
  border-radius: var(--radius);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button.primary {
  border-color: rgba(147, 167, 127, 0.7);
  background: rgba(111, 129, 95, 0.28);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: rgba(147, 167, 127, 0.22);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.03);
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading,
.section-kicker,
.portfolio-intro,
.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading h2,
.section-kicker h2,
.portfolio-intro h2,
.section-head h2 {
  margin-right: auto;
  margin-left: auto;
}

.section-sub {
  max-width: 640px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-card {
  min-height: 245px;
  padding: 34px;
  background: linear-gradient(180deg, rgba(20, 27, 23, 0.84), rgba(10, 14, 12, 0.86));
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.line-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  color: var(--text);
  border-color: currentColor;
  opacity: 0.9;
}

.line-icon.monitor {
  position: relative;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.line-icon.monitor::before {
  position: absolute;
  right: 11px;
  bottom: -10px;
  left: 11px;
  height: 2px;
  background: currentColor;
  content: "";
}

.line-icon.monitor::after {
  position: absolute;
  bottom: -15px;
  left: 7px;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.line-icon.phone {
  width: 24px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.line-icon.code {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.3rem;
  font-weight: 700;
}

.line-icon.puzzle-art {
  width: 42px;
  height: 42px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.line-icon.puzzle-clipart {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: invert(1) grayscale(1) brightness(1.15);
}

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

.project-grid.compact {
  gap: 24px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 19, 0.72);
  box-shadow: var(--shadow);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(147, 167, 127, 0.42);
  background: rgba(20, 27, 23, 0.9);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.02) brightness(0.82);
  transition: filter 200ms ease, transform 280ms ease;
}

.project-card:hover img {
  filter: saturate(0.84) contrast(1.06) brightness(0.92);
  transform: scale(1.035);
}

.project-card-body {
  padding: 22px;
}

.project-card-body p {
  min-height: 72px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.project-card-body a {
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card-body a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project-card-body a:hover,
.project-card-body a:focus-visible {
  color: var(--accent-bright);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 19, 0.76);
  box-shadow: var(--shadow);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(147, 167, 127, 0.42);
  background: rgba(20, 27, 23, 0.92);
}

.work-shot {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(111, 129, 95, 0.22), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 22% 22%, rgba(147, 167, 127, 0.24), transparent 14rem),
    linear-gradient(180deg, #121a16, #070a09);
}

.work-shot::before,
.work-shot::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.work-shot::before {
  inset: 26px;
  border: 1px solid rgba(244, 241, 233, 0.12);
}

.work-shot::after {
  right: -18px;
  bottom: -38px;
  width: 210px;
  height: 120px;
  background: linear-gradient(135deg, transparent 38%, rgba(244, 241, 233, 0.09) 39%, transparent 40%);
  transform: rotate(-8deg);
}

/* shared shape/position for all badges */
.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  pointer-events: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* solid pill — used for the "most important" status */
.badge-live {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

/* faint outline pill — middle status */
.badge-proposal {
  background: rgba(5, 7, 6, 0.55);
  color: var(--text);
  border: 1px solid rgba(244, 241, 233, 0.28);
}

/* faintest outline pill — lowest-priority status */
.badge-concept {
  background: rgba(5, 7, 6, 0.4);
  color: var(--muted);
  border: 1px solid var(--line);
}

.work-shot-mark {
  position: relative;
  z-index: 1;
  color: rgba(244, 241, 233, 0.9);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.work-logo {
  position: relative;
  z-index: 1;
  width: min(72%, 220px);
  max-height: 124px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.project-card .project-logo-image {
  padding: 0;
  background: #fff;
  filter: none;
  object-fit: contain;
}

.project-card:hover .project-logo-image {
  filter: none;
  transform: none;
}

.work-body {
  padding: 24px;
}

.work-body h3 {
  margin-bottom: 8px;
}

.work-industry {
  margin-bottom: 14px;
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.work-desc {
  min-height: 104px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.text-link {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-bright);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.process-card {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.process-num {
  margin-bottom: 16px;
  color: var(--accent-bright);
  font-family: "Inter", sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
}

.process-card h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 19px;
}

.process-card p {
  max-width: 280px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.cta-band {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 90px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 0%, rgba(111, 129, 95, 0.16), rgba(111, 129, 95, 0.06) 34%, rgba(111, 129, 95, 0) 68%),
    linear-gradient(135deg, rgba(12, 18, 15, 0.98), rgba(5, 7, 6, 0.98));
}

.cta-band h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.5vw, 3.4rem);
}

.site-footer {
  width: min(calc(100% - 40px), var(--max));
  min-height: 74px;
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.site-footer p,
.footer-links a {
  color: var(--quiet);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.page-hero {
  min-height: 610px;
}

.page-hero-content {
  margin-left: max(20px, calc((100% - var(--max)) / 2));
}

.portfolio-section {
  padding-top: 86px;
}

.contact-section {
  padding-top: 86px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.contact-form,
.contact-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 19, 0.76);
  box-shadow: var(--shadow);
}

.contact-form {
  padding: clamp(24px, 4vw, 44px);
  scroll-margin-top: 90px;
}

.form-heading {
  margin-bottom: 30px;
}

.contact-form label {
  display: block;
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 241, 233, 0.18);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-form input,
.contact-form select {
  height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
  padding: 14px;
}

.contact-form select option {
  color: var(--text);
  background: var(--panel);
}

.contact-form select option:checked {
  color: var(--text);
  background: var(--accent);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-bright);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(147, 167, 127, 0.11);
}

.contact-form .button {
  margin-top: 24px;
}

.form-status {
  min-height: 28px;
  margin: 16px 0 0;
  color: var(--accent-bright);
}

.contact-details {
  padding: clamp(24px, 4vw, 40px);
  position: sticky;
  top: 110px;
}

.contact-details h2 {
  margin-bottom: 24px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.detail-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.detail-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-item p {
  margin-bottom: 0;
}

.detail-item a {
  color: var(--text);
}

.detail-item a:hover,
.detail-item a:focus-visible {
  color: var(--accent-bright);
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .service-grid,
  .project-grid,
  .work-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-details {
    position: static;
  }
}

@media (max-width: 980px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    border: 0;
    background: transparent;
  }
}

@media (max-width: 760px) {
  .nav {
    width: min(calc(100% - 28px), var(--max));
    min-height: 72px;
    gap: 12px;
  }

  .brand img {
    width: clamp(138px, 38vw, 180px);
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: clamp(10px, 3vw, 18px);
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links a {
    font-size: clamp(0.58rem, 2.4vw, 0.76rem);
    text-align: right;
    white-space: nowrap;
  }

  .hero,
  .home-hero,
  .page-hero {
    min-height: 680px;
  }

  .home-hero .hero-media {
    background-position: 15% 12%;
    background-size: auto 190%;
  }

  .hero-overlay,
  .page-hero::after {
    background:
      linear-gradient(180deg, rgba(5, 7, 6, 0.54) 0%, rgba(5, 7, 6, 0.72) 42%, #070a09 100%),
      linear-gradient(90deg, rgba(5, 7, 6, 0.78), rgba(5, 7, 6, 0.48));
  }

  .hero-content,
  .page-hero-content {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
  }

  .section {
    width: min(calc(100% - 32px), var(--max));
    padding: 72px 0;
  }

  .service-grid,
  .project-grid,
  .work-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .process-card {
    min-height: auto;
  }

  .project-card-body p {
    min-height: auto;
  }

  .work-desc {
    min-height: auto;
  }

  .cta-band {
    width: min(calc(100% - 32px), var(--max));
    padding: 30px;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 64px;
  }

  .site-footer {
    width: min(calc(100% - 32px), var(--max));
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
