/* 80nweb v2. Plain CSS, no build step. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --ink: #101010;
  --grey: #595959;
  --orange: #f25000;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1320px;
  --margin: clamp(20px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 24px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--margin) * 2);
  margin-inline: auto;
  padding-inline: var(--margin);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 12px 18px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--ink);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0 24px;
  min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; padding-block: 12px;
}
.logo {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  background: var(--orange); color: var(--white);
  font-family: var(--display);
  font-weight: 200; font-stretch: 100%;
  font-size: 1.25rem; letter-spacing: -0.04em; line-height: 1;
}
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-tag { font-size: 0.8rem; color: var(--grey); }

.nav { display: flex; gap: 24px; order: 3; width: 100%; border-top: 1px solid var(--ink); overflow-x: auto; scrollbar-width: none; }
.nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current="true"] { border-bottom-color: var(--orange); }

@media (min-width: 900px) {
  .header-row { flex-wrap: nowrap; }
  .nav { order: 0; width: auto; border-top: 0; margin-left: auto; margin-right: 32px; gap: 28px; overflow: visible; }
  .nav a { min-height: var(--header-h); margin-bottom: 0; border-bottom-width: 4px; padding-top: 4px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid var(--ink); border-radius: 0;
  font: 600 1rem/1 var(--body);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-line { background: var(--white); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); }
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px var(--gap);
  align-items: end;
}
@media (min-width: 760px) {
  .hero-top { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}
.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(3.3rem, 13.5vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
@media (min-width: 560px) { .display { font-size: clamp(4.6rem, 12vw, 6.2rem); } }
@media (min-width: 760px) { .display { font-size: clamp(4rem, 7.7vw, 7.5rem); } }
.display span { display: block; }
.display .b { color: var(--orange); margin-top: 0.14em; }

.mark-block {
  display: none;
  container-type: inline-size;
  aspect-ratio: 1 / 1;
  background: var(--orange);
  place-items: center;
}
@media (min-width: 760px) { .mark-block { display: grid; } }
.mark-block span {
  font-family: var(--display);
  font-weight: 200; font-stretch: 100%;
  font-size: 5rem;
  font-size: 46cqi;
  letter-spacing: -0.05em; line-height: 1;
  color: var(--white);
  padding-bottom: 0.04em;
}

.hero-meta {
  margin-top: clamp(36px, 5vw, 64px);
  padding-block: 28px clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--ink);
  row-gap: 28px;
}
.hero-meta > * { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .hero-meta .intro { grid-column: 1 / span 5; }
  .hero-meta .actions { grid-column: 7 / span 3; }
  .hero-meta .index { grid-column: 10 / span 3; }
}
.intro { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.index { display: none; gap: 0; align-content: start; }
@media (min-width: 900px) { .index { display: grid; } }
.index a {
  display: flex; gap: 14px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--ink);
  text-decoration: none; font-weight: 500;
}
.index a:first-child { border-top: 0; padding-top: 0; }
.index a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.index .n { font-size: 0.8rem; color: var(--grey); min-width: 1.6em; }

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--ink); padding-block: clamp(56px, 8vw, 112px); }
.section-head { row-gap: 8px; margin-bottom: clamp(32px, 5vw, 64px); align-items: end; }
.section-head .num { grid-column: 1 / -1; color: var(--grey); }
.section-head h2 {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-weight: 800; font-stretch: 78%;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.92; letter-spacing: -0.02em;
}
.section-head .side { grid-column: 1 / -1; color: var(--grey); max-width: 26em; }
@media (min-width: 900px) {
  .section-head .num { grid-column: 1 / span 12; }
  .section-head h2 { grid-column: 1 / span 7; }
  .section-head .side { grid-column: 9 / span 4; }
}

/* ---------- Work ---------- */
.shot { border: 1px solid var(--ink); background: var(--white); }
.shot img { width: 100%; aspect-ratio: 1552 / 928; object-fit: cover; object-position: top; }
.work-item .meta { margin-top: 20px; row-gap: 12px; }
.work-item .meta > * { grid-column: 1 / -1; }
.work-item h3 {
  font-family: var(--display);
  font-weight: 700; font-stretch: 85%;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1; letter-spacing: -0.015em;
}
.work-item .kicker { color: var(--grey); margin-bottom: 8px; display: block; }
.work-item p { max-width: 38em; }
.links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; }
.links a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--orange); }
.links a:hover { background: var(--orange); color: var(--ink); text-decoration-color: var(--ink); }
.shown { font-size: 0.85rem; color: var(--grey); margin-top: 10px; }

.work-feature { margin-bottom: clamp(48px, 7vw, 96px); }
@media (min-width: 900px) {
  .work-feature .meta .name { grid-column: 1 / span 4; }
  .work-feature .meta .desc { grid-column: 5 / span 8; }
}
.work-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px var(--gap); }
@media (min-width: 900px) { .work-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Services ---------- */
.rows { border-bottom: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 8px var(--gap);
  padding-block: 24px;
  border-top: 1px solid var(--ink);
}
.row:first-child { border-top: 2px solid var(--ink); }
.row .n { font-size: 0.8rem; font-weight: 600; color: var(--grey); letter-spacing: 0.08em; }
.row h3 {
  font-family: var(--display);
  font-weight: 700; font-stretch: 85%;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.05; letter-spacing: -0.01em;
}
.row p { max-width: 36em; }
.row .service-detail { display: block; margin-top: 8px; font-size: 0.875rem; }
@media (min-width: 900px) {
  .row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .row .n { grid-column: 1 / span 1; padding-top: 0.5em; }
  .row h3 { grid-column: 2 / span 5; }
  .row p { grid-column: 8 / span 5; padding-top: 0.2em; }
}

/* ---------- How we work ---------- */
.approach-text {
  font-size: clamp(1.4rem, 2.7vw, 2.3rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  font-weight: 400;
  max-width: 30em;
  text-wrap: pretty;
}
.approach .copy { grid-column: 1 / -1; }
@media (min-width: 900px) { .approach .copy { grid-column: 4 / span 9; } .approach .num { grid-column: 1 / span 3; } }
.approach .num { grid-column: 1 / -1; color: var(--grey); margin-bottom: 16px; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--white); border-top: 0; }
.contact :focus-visible { outline-color: var(--orange); }
.contact h2 {
  font-family: var(--display);
  font-weight: 800; font-stretch: 78%;
  font-size: clamp(3.4rem, 11vw, 10rem);
  line-height: 0.88; letter-spacing: -0.03em;
}
.contact-grid { margin-top: clamp(32px, 5vw, 64px); row-gap: 28px; align-items: end; }
.contact-grid > * { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .contact-grid .text { grid-column: 1 / span 5; }
  .contact-grid .mail { grid-column: 7 / span 6; }
}
.contact .text { font-size: 1.2rem; max-width: 24em; }
.email-link {
  display: inline-block;
  font-family: var(--display); font-weight: 600; font-stretch: 90%;
  font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.015em;
  text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px;
  text-decoration-color: var(--orange);
  overflow-wrap: anywhere;
}
.email-link:hover { color: var(--orange); }
.contact .actions { margin-top: 24px; }

.site-footer { background: var(--ink); color: var(--white); }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px 32px; padding-block: 28px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.92rem;
}
.footer-row p { color: #cfcfcf; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer :focus-visible { outline-color: var(--orange); }

/* Project inquiry, with the same flat type and rules as the page. */
[hidden] { display: none !important; }
body.project-open { overflow: hidden; }
.project-dialog {
  width: min(1000px, calc(100% - 48px)); max-width: none;
  max-height: calc(100dvh - 48px); margin: auto; padding: 0;
  border: 1px solid var(--ink); color: var(--ink); background: var(--white);
  overflow: auto; overscroll-behavior: contain;
}
.project-dialog::backdrop { background: rgb(16 16 16 / 68%); }
.project-shell { display: grid; grid-template-columns: 0.76fr 1.24fr; }
.project-aside { padding: 44px 32px; background: var(--orange); display: flex; flex-direction: column; align-items: flex-start; }
.project-aside h2 {
  margin-block: 36px 24px; font-family: var(--display); font-stretch: 78%;
  font-size: clamp(2.7rem, 4.4vw, 4rem); font-weight: 800; line-height: .94; letter-spacing: -.025em;
}
.project-aside h2 span { color: var(--white); }
.project-aside h2:focus { outline: none; }
.project-aside > p { font-size: 1rem; max-width: 26em; }
.project-aside .project-email { margin-top: auto; padding-top: 48px; font-size: .875rem; }
.project-email a { font-weight: 600; text-underline-offset: 4px; }
.project-main { position: relative; padding: 68px 36px 32px; min-width: 0; }
.project-close { position: absolute; right: 24px; top: 12px; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px; font: 500 .9rem var(--body); border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.project-close span { font-size: 1.8rem; font-weight: 400; line-height: 1; }
.project-progress { color: var(--grey); border-bottom: 1px solid var(--ink); padding-bottom: 16px; margin-bottom: 24px; }
.project-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.project-step legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 1.7rem; line-height: 1.05; letter-spacing: -.015em; }
.project-step legend + * { clear: both; }
.field-hint { font-size: .85rem; color: var(--grey); line-height: 1.45; }
.service-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block: 20px 28px; }
.service-choices label { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 12px; border: 1px solid #b7b7b7; font-size: .875rem; line-height: 1.3; cursor: pointer; }
.service-choices label:has(input:checked) { border-color: var(--ink); background: #fff2eb; box-shadow: inset 0 0 0 1px var(--ink); }
.service-choices input { width: 17px; height: 17px; margin: 0; accent-color: var(--ink); flex: none; }
.project-field { display: block; font-size: .875rem; font-weight: 600; line-height: 1.5; }
.project-field input, .project-field textarea, .project-field select { display: block; width: 100%; min-width: 0; min-height: 46px; margin-top: 6px; padding: 10px 12px; border: 1px solid #8b8b8b; border-radius: 0; background: var(--white); color: var(--ink); font: 400 1rem/1.45 var(--body); }
.project-field textarea { resize: vertical; min-height: 126px; }
.project-field input::placeholder, .project-field textarea::placeholder { color: #696969; opacity: 1; }
.project-field + .field-hint { margin-top: 8px; }
.project-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-block: 24px; }
.optional { font-weight: 400; color: var(--grey); }
.project-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; margin-top: 26px; border-top: 1px solid var(--ink); }
.project-back { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 500 .95rem var(--body); cursor: pointer; }
.project-back:hover, .project-close:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-privacy { font-size: .8rem; color: var(--grey); }
.project-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.project-error { border-left: 3px solid #ae3018; padding-left: 12px; margin-top: 16px; color: #9e2915; font-size: .9rem; }
.project-dialog button:disabled { opacity: .65; cursor: wait; }
.project-success { padding-block: 44px; }
.project-success h3 { font: 800 3.5rem/.95 var(--display); font-stretch: 78%; letter-spacing: -.025em; margin-block: 24px; }
.project-success p { max-width: 27em; margin-bottom: 32px; }
#project-verification:not(:empty) { margin-top: 16px; }
@media (max-width: 720px) {
  .project-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .project-shell { grid-template-columns: minmax(0, 1fr); }
  .project-aside { padding: 28px 24px 24px; }
  .project-aside .label { padding-right: 72px; }
  .project-aside h2 { font-size: 2rem; margin-block: 22px 14px; }
  .project-aside > p { font-size: .875rem; line-height: 1.45; }
  .project-aside h2 br { display: none; }
  .project-aside h2 br::after { content: ' '; }
  .project-aside h2 span { display: inline; }
  .project-aside .project-email { display: none; }
  .project-main { position: static; padding: 28px 24px; }
  .project-close { top: 12px; right: 16px; }
  .project-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .project-form-actions > .field-hint { max-width: 10em; }
  .project-form-actions .btn { padding-inline: 16px; font-size: .95rem; }
}
@media (max-width: 380px) {
  .project-aside, .project-main { padding-inline: 18px; }
  .service-choices { grid-template-columns: minmax(0, 1fr); }
  .service-choices label { min-height: 46px; }
}

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