/* theme.css */
:root {
  --font-body: "DM Sans", sans-serif;
  --font-wordmark: "Helvetica Neue", Arial, sans-serif;
  --font-label: ui-monospace, monospace;

  --page-background: #fafbf8;
  --surface: #fff;
  --surface-muted: #eaf2ee;
  --text: #102f36;
  --text-muted: #405962;
  --accent: #096f6e;
  --border: #cbdad9;
  --border-strong: #849a9c;
  --step-divider: #adbfbb;
  --focus-ring: #c14c06;

  --action-background: var(--text);
  --action-text: #fff;
  --action-hover: var(--accent);
  --panel-background: #10373d;
  --panel-text: #f4faf6;
  --panel-link: #93ebd9;

  --hero-background: #123e46;
  --hero-fade: #032f37ed;
  --hero-grid: #c7fff524;
  --hero-label: #fff;
  --preview-background: #ddebe7;
  --preview-background-deep: #16334d;
  --preview-shadow: #102f3630;
}

/* base.css */
@font-face {
  font-family: "DM Sans";
  src: url(assets/dm-sans.ttf) format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page-background);
  color: var(--text);
  font: 1rem/1.6 var(--font-body);
}

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.06em; }
h1 { font-size: clamp(3.2rem, 5.35vw, 5rem); font-weight: 590; }
h2 { font-size: clamp(2.5rem, 3.8vw, 3.7rem); font-weight: 580; }
h3 { font-size: 1.36rem; letter-spacing: -.035em; }

.wrap {
  width: min(90%, 82rem);
  margin-inline: auto;
}

header, footer, nav, .actions, .brand {
  display: flex;
  align-items: center;
}

header, footer { justify-content: space-between; gap: 1rem; }

header {
  min-height: 5.4rem;
  border-bottom: 1px solid var(--border);
}

.site-header nav {
  align-self: stretch;
  gap: clamp(.5rem, 2vw, 1.75rem);
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: .4rem;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  white-space: nowrap;
}

.site-header nav a:is(:hover, [aria-current]) {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.site-header .outline { min-height: 44px; }

.brand { gap: .56rem; }
.brand img { width: 3rem; height: 3rem; flex: none; }

.wordmark {
  color: var(--text);
  font: 650 1.25rem/1 var(--font-wordmark);
  letter-spacing: -.038em;
}

.wordmark b { color: var(--accent); font-weight: inherit; }

a { color: inherit; text-decoration: none; }
nav { gap: 2rem; }
nav a, .outline, .textlink, .button { font-weight: 650; font-size: .95rem; }

.outline, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .4rem;
  padding: .65rem 1.2rem;
}

.outline { border: 1px solid var(--border-strong); }

.button {
  background: var(--action-background);
  color: var(--action-text);
  padding: .85rem 1.35rem;
}

.button:hover, .outline:hover {
  background: var(--action-hover);
  color: var(--action-text);
}

.textlink, nav a:hover {
  text-decoration: underline;
  text-underline-offset: .35em;
}

.label, .hero figcaption {
  font: 650 .8rem/1.4 var(--font-label);
  letter-spacing: .085em;
  text-transform: uppercase;
}

.label {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--accent);
  margin-bottom: 1.55rem;
}

.label i { width: 1.6rem; height: 3px; background: currentColor; }

.lead {
  max-width: 33rem;
  margin-top: 1.4rem;
  color: var(--text-muted);
  font-size: 1.13rem;
}

.actions {
  gap: 1.7rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

footer {
  border-top: 1px solid var(--border);
  padding-block: 1.7rem;
}

footer > span { font-size: .9rem; color: var(--text-muted); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: var(--surface);
  padding: .6rem;
  z-index: 4;
}

.skip:focus { top: .3rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 52rem) {
  nav { gap: 1rem; }
}

@media (max-width: 50rem) {
  .site-header { flex-wrap: wrap; padding-top: .8rem; gap: .4rem .75rem; }
  .site-header .brand img { width: 2.5rem; height: 2.5rem; }
  .site-header .wordmark { font-size: 1.1rem; }
  .site-header nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 .125rem;
  }
  .site-header nav a {
    flex: 1 0 auto;
    padding-inline: 0;
    font-size: .875rem;
  }
}

@media (max-width: 42rem) {
  .outline { padding: .45rem .7rem; }
  .actions { gap: 1.2rem; }
  footer { align-items: flex-start; flex-direction: column; }
}

/* home.css */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5%;
  padding-block: 3.6rem 4rem;
}

.hero h1 em { color: var(--accent); font-style: normal; }

.hero figure {
  position: relative;
  isolation: isolate;
  height: clamp(25rem, 37vw, 33rem);
  overflow: hidden;
  border-radius: .45rem;
  background: var(--hero-background);
}

.hero .sky, .hero .grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero .sky { object-fit: cover; filter: grayscale(100%); mix-blend-mode: luminosity; }

.hero .grid {
  background:
    linear-gradient(0deg, var(--hero-fade), transparent 34%),
    repeating-linear-gradient(0deg, transparent 0 59px, var(--hero-grid) 59px 60px),
    repeating-linear-gradient(90deg, transparent 0 59px, var(--hero-grid) 59px 60px);
}

.hero figcaption {
  position: absolute;
  bottom: 1.2rem;
  left: 1.4rem;
  right: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--hero-label);
  font-size: .75rem;
}

.hero .reticle {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 1.1rem;
  height: 1.1rem;
  border-top: 2px solid var(--hero-label);
  border-right: 2px solid var(--hero-label);
}

.benefits {
  padding-block: 3rem 4rem;
  border-top: 1px solid var(--border);
}

.benefits h2 { margin-bottom: 1.8rem; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.benefit-grid article {
  padding-block-start: 1rem;
  border-top: 1px solid var(--border);
}

.benefit-grid h3 { margin-bottom: .5rem; }
.benefit-grid p { color: var(--text-muted); }

.contact { padding-block: 4.5rem; }
.contact h2 { margin-bottom: 1.2rem; }
.contact p:not(.label) { color: var(--text-muted); font-size: 1.13rem; }
.contact .button { margin-top: 1.3rem; }

@media (max-width: 52rem) {
  .hero { gap: 4%; }
  .hero h1 { font-size: clamp(2.75rem, 6vw, 3.5rem); }
}

@media (max-width: 42rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.7rem;
    padding-block: 2.5rem;
  }

  .hero h1 { font-size: clamp(3rem, 10vw, 4rem); }
  .hero figure { height: clamp(15rem, 61vw, 23rem); }
  .benefits { padding-block: 2.5rem 3rem; }
  .benefit-grid { grid-template-columns: minmax(0, 1fr); }
  .contact { padding-block: 3rem; }
}

/* details.css */
.work-page { padding-block: clamp(2rem, 5vw, 4.5rem); }
.work-page h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
.work-page h2 { font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -.04em; line-height: 1.12; }
.work-intro { max-width: 52rem; margin-bottom: 2.5rem; }
.work-page .lead { max-width: 48rem; }

.project-overview, .work-story {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.project-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  margin-block: 2rem 3rem;
}

.project-overview:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.flow-preview img { width: 100%; height: auto; display: block; }
.flow-preview p { font-size: .95rem; color: var(--text-muted); margin-top: .75rem; }
.project-context { max-width: 54rem; color: var(--text-muted); margin-bottom: 2rem; }

.work-story {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  border-top: 1px solid var(--border);
  padding-block: clamp(2rem, 5vw, 4rem);
}

.work-story p { color: var(--text-muted); }

.steps { margin: 0; padding-inline-start: 1.65rem; }

.steps li {
  padding: 1rem 0 1rem .4rem;
  border-top: 1px solid var(--step-divider);
}

.steps li:last-child { border-bottom: 1px solid var(--step-divider); }
.steps li::marker { color: var(--accent); font-weight: 750; }

.work-details article + article { margin-top: 1.5rem; }

.work-details h3, .work-story .steps h3 {
  line-height: 1.25;
  letter-spacing: -.025em;
  margin-bottom: .65rem;
}

.work-details p, .work-story .steps p { max-width: 68ch; }

.project-privacy {
  background: var(--panel-background);
  color: var(--panel-text);
  border-radius: .85rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.project-privacy p { max-width: 68ch; margin-block: 1rem; }

.project-privacy .textlink {
  color: var(--panel-link);
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.project-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.project-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
}

.project-actions .textlink {
  border: 1px solid var(--border-strong);
  border-radius: .4rem;
  padding: .65rem 1.2rem;
  text-decoration: none;
}

.project-actions .textlink:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 48rem) {
  .project-overview, .work-story { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 36rem) {
  .project-actions { display: grid; gap: .75rem; }
}

.inquiry-form {
  width: min(100%, 45rem);
  display: grid;
  gap: 1.4rem;
}
.inquiry-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
}
.inquiry-form label { display: block; font-weight: 650; }
.inquiry-form label span { font-weight: 400; color: var(--text-muted); }
.inquiry-form :is(input, textarea) {
  display: block;
  width: 100%;
  margin-top: .35rem;
  border: 1px solid var(--border-strong);
  border-radius: .4rem;
  background: var(--surface);
  color: var(--text);
  padding: .65rem .8rem;
  font: inherit;
  font-weight: 400;
}
.inquiry-form textarea { resize: vertical; }
.inquiry-form p, .inquiry-actions span { color: var(--text-muted); }
.inquiry-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.inquiry-form button { border: 0; font-family: inherit; cursor: pointer; }
.inquiry-feedback { padding: 1rem; border-inline-start: 3px solid var(--accent); background: var(--surface-muted); }
