:root {
  --paper: #f7f8f5;
  --ink: #14243a;
  --blue: #173f73;
  --blue-dark: #0d2c53;
  --orange: #ff6b35;
  --line: #cdd3d8;
  --muted: #66717e;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --page-pad: clamp(1.25rem, 4vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 20;
  padding: 0.65rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-110%);
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem var(--page-pad);
  color: white;
}

.wordmark {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark span {
  color: var(--orange);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.4rem);
  font-family: var(--mono);
  font-size: 0.75rem;
}

nav a {
  text-underline-offset: 0.35em;
  text-decoration-color: transparent;
}

nav a:hover,
nav a:focus-visible {
  text-decoration-color: currentColor;
}

.nav-contact {
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  overflow: hidden;
  padding: 9rem var(--page-pad) 6rem;
  color: white;
  background: var(--blue);
}

.hero::after {
  position: absolute;
  right: -18vw;
  bottom: -32vw;
  width: 65vw;
  height: 65vw;
  border: max(1px, 0.08vw) solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 8vw rgba(255, 255, 255, 0.025), 0 0 0 16vw rgba(255, 255, 255, 0.018);
  content: "";
}

.hero-copy,
.terminal {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 1.75rem;
  height: 2px;
  margin: 0 0.65rem 0.22rem 0;
  background: var(--orange);
  content: "";
}

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

h1 {
  max-width: 900px;
  margin-bottom: 1.75rem;
  font-family: var(--display);
  font-size: clamp(4.75rem, 10vw, 9.5rem);
  font-weight: 600;
  line-height: 0.77;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.68);
}

.intro {
  max-width: 590px;
  margin-bottom: 2.25rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.1rem;
  padding: 0 1.2rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  text-decoration: none;
}

.button-primary {
  color: var(--ink);
  background: white;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button-primary:hover {
  color: white;
  background: var(--orange);
  transform: translateY(-2px);
}

.text-link {
  font-family: var(--mono);
  font-size: 0.76rem;
  text-underline-offset: 0.35rem;
}

.terminal {
  width: 100%;
  max-width: 410px;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 29, 55, 0.7);
  box-shadow: 18px 18px 0 rgba(8, 29, 55, 0.28);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.55);
}

.terminal-status::before {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: #74d99f;
  content: "";
}

.terminal-body {
  min-height: 285px;
  padding: 1.4rem;
}

.terminal-body p {
  margin-bottom: 0.45rem;
}

.terminal-body .output {
  margin-bottom: 1.2rem;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.62);
}

.prompt,
.terminal-body .accent {
  color: #ff936c;
}

.hero-marker {
  position: absolute;
  right: var(--page-pad);
  bottom: 2rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.5;
  text-align: right;
}

.work-section,
.about-section {
  padding: clamp(5rem, 10vw, 9rem) var(--page-pad);
}

.work-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(3rem, 8vw, 9rem);
}

.section-heading {
  position: sticky;
  top: 3rem;
  align-self: start;
}

.section-heading h2,
.about-copy h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.work-list {
  border-top: 1px solid var(--ink);
}

.work-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding: 2.4rem 0 2.8rem;
  border-bottom: 1px solid var(--line);
}

.work-index,
.work-meta {
  font-family: var(--mono);
  font-size: 0.67rem;
}

.work-index {
  color: var(--orange);
}

.work-meta {
  color: var(--muted);
  text-align: right;
}

.work-item h3 {
  margin-bottom: 0.8rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.work-item div p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(200px, 0.5fr) minmax(0, 1fr);
  gap: clamp(3rem, 10vw, 12rem);
  color: white;
  background: var(--ink);
}

.about-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.local-time {
  margin: 4rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: #74d99f;
}

.about-copy h2 {
  margin-bottom: 2.5rem;
}

.about-copy > p {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.67);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.contact-section {
  padding: clamp(5rem, 10vw, 8rem) var(--page-pad);
  text-align: center;
}

.contact-section .eyebrow::before {
  display: none;
}

.contact-section > a {
  display: inline-flex;
  gap: 0.12em;
  align-items: flex-start;
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-section > a span {
  color: var(--orange);
  font-family: var(--body);
  font-size: 0.24em;
  transition: transform 160ms ease;
}

.contact-section > a:hover span {
  transform: translate(0.18em, -0.18em);
}

.contact-section > p:last-child {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

footer {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 2rem;
  align-items: end;
  margin: 0 var(--page-pad);
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
}

footer p {
  margin: 0;
}

.wordmark-footer {
  color: var(--ink);
  font-size: 0.85rem;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 9rem;
  }

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

  .hero-marker {
    display: none;
  }

  .work-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
  }

  nav a:not(.nav-contact) {
    display: none;
  }

  h1 {
    font-size: clamp(4rem, 23vw, 6rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.1rem;
  }

  .terminal-body {
    min-height: 260px;
  }

  .work-item {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .work-meta {
    display: none;
  }

  .about-label {
    display: block;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer p:nth-child(2) {
    display: none;
  }
}

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