@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --paper-2: #e9e4d8;
  --ink: #12202c;
  --muted: #5e6a72;
  --blue: #1546d2;
  --orange: #ef6b2e;
  --acid: #d7f64a;
  --line: #bfc2bb;
  --dark: #142431;
  --header-bg: rgba(243,240,232,.92);
  --field-bg: #f3f0e8;
  --footer-bg: #12202c;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111820;
  --paper-2: #18222c;
  --ink: #f2efe7;
  --muted: #a8b1b8;
  --blue: #7196ff;
  --orange: #ff8a4c;
  --acid: #d7f64a;
  --line: #394754;
  --dark: #0b1117;
  --header-bg: rgba(17,24,32,.92);
  --field-bg: #101820;
  --footer-bg: #070c11;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--field-bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 700;
}
.brand-symbol {
  background: var(--ink);
  color: var(--paper);
  padding: 8px 10px;
  font: 700 12px/1 "Space Mono", monospace;
}
nav { display: flex; gap: 28px; align-items: center; }
nav a { text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-cta {
  border-bottom: 3px solid var(--orange);
  padding-bottom: 4px;
}

.hero { padding: 105px 0 44px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr .65fr;
  gap: 70px;
  align-items: end;
}
.kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font: 700 12px/1.4 "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .09em;
}
h1, h2, h3 { margin-top: 0; line-height: .98; letter-spacing: -.045em; }
h1 { font-size: clamp(64px, 10vw, 142px); margin-bottom: 0; }
h1 span {
  position: relative;
  display: inline-block;
}
h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: -8px;
  bottom: .02em;
  height: .12em;
  background: var(--acid);
  z-index: -1;
  transform: rotate(-1deg);
}
h2 { font-size: clamp(44px, 6vw, 78px); margin-bottom: 22px; }
h3 { font-size: clamp(30px, 4vw, 52px); }
.hero-side p { font-size: 21px; color: var(--muted); }
.text-link {
  display: inline-flex;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 5px;
}
.signal-strip {
  margin-top: 76px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 12px/1 "Space Mono", monospace;
  text-transform: uppercase;
}
.signal-strip i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.statement {
  background: var(--blue);
  color: white;
}
.statement-grid {
  display: grid;
  grid-template-columns: .45fr 1.35fr .8fr;
  gap: 50px;
  align-items: start;
  padding: 70px 0;
}
.statement-label {
  font: 700 11px/1.4 "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .09em;
  opacity: .75;
}
blockquote {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 700;
}
.statement-copy { margin: 0; color: rgba(255,255,255,.78); font-size: 18px; }

.section { padding: 110px 0; }
.section-intro {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 54px;
}
.section-number {
  margin: 0;
  font: 700 13px/1 "Space Mono", monospace;
  color: var(--orange);
  padding-top: 8px;
}
.project {
  border-top: 1px solid var(--line);
  padding: 54px 0 72px;
}
.project-featured {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 58px;
  align-items: start;
}
.project-index {
  font: 700 11px/1 "Space Mono", monospace;
  text-transform: uppercase;
  color: var(--orange);
}
.project-summary { font-size: 22px; color: var(--muted); }
dl { margin-top: 34px; }
dl div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
dt { font: 700 11px/1.4 "Space Mono", monospace; text-transform: uppercase; }
dd { margin: 0; color: var(--muted); }

.project-image {
  position: relative;
  background: var(--dark);
  border: 1px solid #263846;
  text-decoration: none;
  box-shadow: 14px 14px 0 var(--orange);
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: top;
  transition: transform .25s ease;
}
.project-image:hover img { transform: scale(1.015); }
.project-image span {
  display: block;
  color: white;
  padding: 14px 16px;
  font: 700 11px/1 "Space Mono", monospace;
  text-transform: uppercase;
}
.hero-image img { height: 630px; }
.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 26px;
  margin: 0 0 110px;
}
.project-gallery .project-image { box-shadow: none; }
.project-gallery .offset { transform: translateY(42px); }
.project-gallery img { height: 300px; }

.project-split {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
}
.plain-list { list-style: none; padding: 0; margin-top: 30px; }
.plain-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font: 700 13px/1.3 "Space Mono", monospace;
}
.stacked-images { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: start; }
.stacked-images .project-image { box-shadow: none; }
.stacked-images img { height: 470px; }
.stacked-images .small-shot { margin-top: 80px; }
.stacked-images .small-shot img { height: 360px; }

.private-project {
  display: grid;
  grid-template-columns: .9fr 1fr .8fr;
  gap: 50px;
  align-items: start;
}
.private-note {
  background: var(--acid);
  padding: 24px;
  border: 1px solid var(--ink);
}
.private-note span {
  display: block;
  font: 700 10px/1.4 "Space Mono", monospace;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.services {
  background: var(--dark);
  color: white;
}
.services .kicker { color: var(--acid); }
.services .section-number { color: var(--orange); }
.service-list { border-top: 1px solid rgba(255,255,255,.24); }
.service-list article {
  display: grid;
  grid-template-columns: 80px .9fr 1.1fr;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.24);
  align-items: start;
}
.service-list span {
  font: 700 12px/1 "Space Mono", monospace;
  color: var(--orange);
}
.service-list h3 { font-size: 30px; margin: 0; }
.service-list p { color: rgba(255,255,255,.68); margin: 0; }

.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.process-line article {
  min-height: 240px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-line b {
  font-size: 25px;
  display: block;
  margin-bottom: 60px;
}
.process-line p { color: var(--muted); }

.about {
  background: var(--orange);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  padding: 90px 0;
}
.about .kicker { color: var(--ink); }
.about p { font-size: 20px; }

.contact-panel {
  border: 2px solid var(--ink);
  padding: 58px;
  background: var(--paper-2);
}
.contact-panel > p { max-width: 760px; color: var(--muted); font-size: 19px; }
form { margin-top: 42px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font: 700 11px/1.3 "Space Mono", monospace; text-transform: uppercase; }
input, textarea {
  width: 100%;
  display: block;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--ink);
  background: var(--field-bg);
  color: var(--ink);
  font: 16px "DM Sans", sans-serif;
}
button {
  justify-self: start;
  border: 0;
  background: var(--blue);
  color: white;
  padding: 15px 22px;
  font: 700 13px/1 "Space Mono", monospace;
  text-transform: uppercase;
  cursor: pointer;
}
small { color: var(--muted); }

footer {
  background: var(--ink);
  color: white;
}
.footer-grid {
  min-height: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

@media (max-width: 900px) {
  nav a:not(.nav-cta) { display: none; }
  .hero-grid, .statement-grid, .project-featured, .project-split,
  .private-project, .about-grid { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr 1fr; }
  .statement-grid { gap: 28px; }
  .service-list article { grid-template-columns: 50px 1fr; }
  .service-list article p { grid-column: 2; }
  .process-line { grid-template-columns: 1fr 1fr; }
  .hero-image img { height: 500px; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 24px); }
  .brand-name { display: none; }
  h1 { font-size: 62px; }
  .signal-strip { overflow-x: auto; gap: 22px; justify-content: flex-start; }
  .statement-grid { padding: 52px 0; }
  .section { padding: 78px 0; }
  .section-intro { grid-template-columns: 45px 1fr; }
  .project-gallery, .stacked-images, .process-line, .form-row { grid-template-columns: 1fr; }
  .project-gallery .offset, .stacked-images .small-shot { transform: none; margin-top: 0; }
  .project-image img, .hero-image img, .stacked-images img, .stacked-images .small-shot img {
    height: auto;
    max-height: 520px;
    object-fit: contain;
  }
  .service-list article { grid-template-columns: 40px 1fr; }
  .contact-panel { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; padding: 28px 0; }
}


body, .site-header, .contact-panel, input, textarea, .project, .project-image,
.statement, .services, .about, footer {
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  font: 700 11px/1 "Space Mono", monospace;
  text-transform: uppercase;
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: var(--orange);
}
.theme-icon {
  font-size: 15px;
  line-height: 1;
}
:root[data-theme="dark"] .statement {
  background: #183fbd;
}
:root[data-theme="dark"] .about {
  background: #b94f25;
}
:root[data-theme="dark"] .services {
  background: #0a1118;
}
:root[data-theme="dark"] .contact-panel {
  background: var(--paper-2);
}
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea {
  background: var(--field-bg);
  color: var(--ink);
}
:root[data-theme="dark"] footer {
  background: var(--footer-bg);
}
.issue-project {
  margin-top: 22px;
}
.issue-images img {
  object-fit: cover;
  object-position: top;
}

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

@media (max-width: 620px) {
  .theme-label { display: none; }
  .theme-toggle { padding: 8px; }
}


/* Issue tracker screenshots are wide, so keep them stacked at full readable width. */
.issue-project {
  grid-template-columns: .72fr 1.28fr;
  align-items: start;
}

.issue-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.issue-images .project-image,
.issue-images .small-shot {
  margin-top: 0;
}

.issue-images img,
.issue-images .small-shot img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top;
}

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


/* Working contact form */
.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-status {
  min-height: 1.5em;
  margin: 0;
  font-weight: 700;
}

.contact-status.success {
  color: #2c8f4a;
}

.contact-status.error {
  color: #b53a32;
}

#contact-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.cf-turnstile {
  min-height: 65px;
}
