:root {
  color-scheme: light;
  --ink: #111820;
  --muted: #69717a;
  --paper: #f8f7f3;
  --blue: #00a9e8;
  --magenta: #ec168c;
  --coral: #f26445;
  --line: rgba(17, 24, 32, .68);
}

* { box-sizing: border-box; }

html { background: var(--paper); overflow-y: scroll; scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }

.page-shell {
  width: min(1000px, calc(100% - clamp(360px, 30vw, 720px)));
  margin: 0 auto;
  padding: 16px 0 38px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 10px;
  background: var(--paper);
  box-shadow: none;
}

.brand {
  display: block;
  width: 202px;
  line-height: 0;
  text-decoration: none;
}

.brand img { display: block; width: 100%; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 54px);
  padding: 0 4px 8px 18px;
  margin-bottom: -8px;
  background: transparent;
}

.site-nav a {
  position: relative;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--magenta));
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
  display: none;
}

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

.site-nav .active { font-weight: 700; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

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

.editorial-hero {
  display: grid;
  grid-template-columns: minmax(300px, .76fr) minmax(500px, 1.24fr);
  align-items: center;
  gap: clamp(24px, 5vw, 104px);
  min-height: calc(100vh - 78px);
  padding: 10px 0 38px;
}

.copy { position: relative; z-index: 2; }

.eyebrow {
  margin: 0 0 26px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(72px, 10vw, 166px);
  font-weight: 800;
  letter-spacing: -.1em;
  line-height: .78;
}

.lead {
  max-width: 580px;
  margin: 32px 0 26px;
  font-size: clamp(19px, 2.1vw, 31px);
  letter-spacing: -.045em;
  line-height: 1.08;
}

.copy-note {
  max-width: 400px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.outline-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 23px 16px 25px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.outline-link::after { color: var(--magenta); content: "->"; font-size: 20px; }
.outline-link:hover, .outline-link:focus-visible { background: linear-gradient(100deg, var(--blue), var(--magenta)); color: #fff; transform: translateY(-2px); }
.outline-link:hover::after, .outline-link:focus-visible::after { color: #fff; }

.field-stage {
  position: relative;
  min-height: min(700px, calc(100vh - 110px));
  isolation: isolate;
}

.field-stage::before {
  position: absolute;
  inset: 5% -5% 6% -8%;
  z-index: -1;
  background: radial-gradient(ellipse at 44% 45%, rgba(0, 169, 232, .1), transparent 42%), radial-gradient(ellipse at 68% 54%, rgba(236, 22, 140, .08), transparent 46%);
  content: "";
  filter: blur(22px);
  pointer-events: none;
}

.ascii-field {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  cursor: crosshair;
}

.services-page .ascii-field {
  -webkit-mask-image: radial-gradient(ellipse at 53% 47%, #000 0%, #000 42%, rgba(0, 0, 0, .88) 63%, rgba(0, 0, 0, .38) 82%, transparent 100%);
  mask-image: radial-gradient(ellipse at 53% 47%, #000 0%, #000 42%, rgba(0, 0, 0, .88) 63%, rgba(0, 0, 0, .38) 82%, transparent 100%);
}

.services-page { overflow-x: clip; }
.services-page .field-stage { width: calc(100% + clamp(180px, 15vw, 220px)); }

.field-label {
  position: absolute;
  z-index: 2;
  padding: 9px 13px;
  background: rgba(248, 247, 243, .9);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  pointer-events: none;
  text-transform: uppercase;
}

.field-label::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 9px 1px 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--magenta));
  content: "";
}

.service-strategy { top: 29%; left: 17%; }
.service-systems { top: 23%; right: 12%; }
.service-design { bottom: 22%; left: 24%; }
.service-automation { right: 6%; bottom: 18%; }

.field-caption {
  position: absolute;
  right: 8%;
  bottom: 7%;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 10px;
  letter-spacing: .15em;
  pointer-events: none;
  text-transform: uppercase;
}

.field-caption::before {
  display: inline-block;
  width: 34px;
  height: 1px;
  margin: 0 12px 3px 0;
  background: linear-gradient(90deg, var(--blue), var(--magenta));
  content: "";
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-step {
  min-height: 140px;
  padding: 22px 24px 24px 0;
  border-right: 1px solid rgba(17, 24, 32, .2);
}

.service-step + .service-step { padding-left: 24px; }
.service-step:last-child { border-right: 0; }
.service-step small { color: var(--blue); font: 11px "Courier New", monospace; letter-spacing: .14em; }
.service-step:nth-child(2) small { color: var(--magenta); }
.service-step h2 { margin: 20px 0 8px; font-size: clamp(23px, 3vw, 40px); letter-spacing: -.07em; }
.service-step p { max-width: 250px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.contact-page .editorial-hero { grid-template-columns: minmax(340px, .85fr) minmax(500px, 1.15fr); }
.contact-page h1 { font-size: clamp(72px, 9.5vw, 154px); }
.contact-page .field-stage::before { background: radial-gradient(ellipse at 42% 50%, rgba(0, 169, 232, .1), transparent 46%), radial-gradient(ellipse at 64% 50%, rgba(236, 22, 140, .08), transparent 50%); }

.contact-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px 16px;
  max-width: 390px;
  margin-top: clamp(58px, 11vh, 120px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-block .label { grid-column: 1 / -1; margin-bottom: 5px; font: 11px "Courier New", monospace; letter-spacing: .2em; }
.contact-block a, .contact-block span { font-size: 17px; text-decoration: none; }
.contact-block a:hover, .contact-block a:focus-visible { color: var(--magenta); }
.contact-block svg { width: 18px; height: 18px; margin-top: 1px; }

.contact-page .field-caption { right: 15%; bottom: 23%; }

.about-page .editorial-hero { grid-template-columns: minmax(300px, .76fr) minmax(500px, 1.24fr); }

.portrait-stage {
  position: relative;
  min-height: min(700px, calc(100vh - 110px));
  isolation: isolate;
}

.portrait-stage::before {
  position: absolute;
  inset: 4% -4% 4% -6%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 38%, rgba(0, 169, 232, .1), transparent 44%), radial-gradient(ellipse at 59% 68%, rgba(236, 22, 140, .1), transparent 60%);
  content: "";
  filter: blur(22px);
  pointer-events: none;
}

.portrait-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  cursor: crosshair;
}

.portrait-image {
  position: absolute;
  right: 4%;
  bottom: 0;
  z-index: 1;
  width: min(76%, 570px);
  height: 96%;
  object-fit: cover;
  object-position: 50% top;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 77%, rgba(0, 0, 0, .72) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 77%, rgba(0, 0, 0, .72) 88%, transparent 100%);
  filter: contrast(1.03) saturate(.96);
  pointer-events: none;
  transform: translateZ(0);
}

.portrait-hint {
  position: absolute;
  right: 11%;
  bottom: 10%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font: 10px "Courier New", monospace;
  letter-spacing: .14em;
  pointer-events: none;
  text-transform: uppercase;
}

.portrait-hint::before {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--magenta));
  content: "";
}

.about-strip {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  padding: 25px 0 8px;
  border-top: 1px solid var(--line);
}

.about-strip p { max-width: 620px; margin: 0; font-size: clamp(20px, 2.4vw, 34px); letter-spacing: -.055em; line-height: 1.05; }
.about-meta { align-self: end; color: var(--muted); font: 11px/1.7 "Courier New", monospace; letter-spacing: .1em; text-transform: uppercase; }

.footer-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px "Courier New", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .page-shell { width: min(1000px, calc(100% - 72px)); }
  .editorial-hero, .contact-page .editorial-hero, .about-page .editorial-hero { grid-template-columns: minmax(220px, .76fr) minmax(360px, 1.24fr); gap: 14px; }
  h1 { font-size: clamp(62px, 9vw, 112px); }
  .contact-page h1 { font-size: clamp(62px, 8.5vw, 112px); }
  .service-strategy { top: 52%; left: 18%; }
  .site-nav { gap: 22px; }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 36px, 560px); padding-top: 20px; }
  .site-header { align-items: flex-start; gap: 12px; padding-bottom: 17px; }
  .brand { flex: 0 0 auto; width: clamp(112px, 37vw, 148px); }
  .site-nav { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; justify-content: flex-end; gap: clamp(6px, 1.8vw, 9px); max-width: none; padding: 0 0 7px; }
  .site-nav a { display: block; flex: 0 0 auto; font-size: clamp(9px, 2.8vw, 11px); white-space: nowrap; }
  .editorial-hero, .contact-page .editorial-hero, .about-page .editorial-hero { display: flex; flex-direction: column; align-items: stretch; gap: 28px; min-height: 0; padding: 64px 0 32px; }
  .eyebrow { margin-bottom: 21px; }
  h1, .contact-page h1 { font-size: clamp(64px, 20vw, 106px); }
  .lead { margin: 24px 0 19px; font-size: 22px; }
  .copy-note { margin-bottom: 28px; font-size: 14px; }
  .field-stage { min-height: 470px; }
  .services-page .field-stage { width: 100%; }
  .portrait-stage { min-height: 470px; }
  .field-label { font-size: 9px; letter-spacing: .08em; }
  .service-strategy { top: 24%; left: 7%; }
  .service-systems { top: 20%; right: 2%; }
  .service-design { bottom: 23%; left: 9%; }
  .service-automation { right: 1%; bottom: 15%; }
  .service-strip { grid-template-columns: 1fr; }
  .service-step, .service-step + .service-step { min-height: 0; padding: 20px 0; border-right: 0; border-bottom: 1px solid rgba(17, 24, 32, .2); }
  .service-step:last-child { border-bottom: 0; }
  .service-step h2 { margin: 13px 0 6px; }
  .contact-block { margin-top: 51px; }
  .contact-page .field-caption { right: 8%; bottom: 16%; }
  .portrait-image { right: 6%; width: 78%; height: 95%; }
  .portrait-hint { right: 8%; bottom: 9%; }
  .about-strip { grid-template-columns: 1fr; gap: 22px; }
  .footer-line { margin-top: 28px; }
}

@media (max-width: 400px) {
  .site-nav { gap: 6px; }
}

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