/* =========================================================
   Dressed Media — Swiss minimal, grid-heavy, clean sans
   ========================================================= */

:root {
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --paper: #f4f3ee;
  --paper-2: #ecebe4;
  --rule: #d8d6cc;
  --muted: #6b6a62;
  --accent: #ff3b1f;

  --gutter: 24px;
  --col-gap: 24px;
  --max: 1440px;

  --fs-body: 16px;
  --lh-body: 1.5;

  --font-sans:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono:
    ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@supports (font-variation-settings: normal) {
  :root {
    --font-sans:
      "Inter var", "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-display:
      "Inter var", "Inter", ui-sans-serif, system-ui, sans-serif;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

button {
  font: inherit;
}

/* -----------------------------------------------
   Grid
   ----------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--col-gap);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* -----------------------------------------------
   Skip link
   ----------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  font-size: 13px;
  z-index: 100;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

/* -----------------------------------------------
   Header
   ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header .grid {
  align-items: center;
  padding-block: 18px;
}

.wordmark {
  grid-column: 1 / span 4;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.wordmark__dot {
  color: var(--accent);
  margin: 0 1px;
}
.wordmark__m {
  color: var(--muted);
  font-weight: 400;
}

.nav {
  grid-column: 5 / span 5;
  display: flex;
  gap: 28px;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.nav a {
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.nav a:hover {
  border-bottom-color: var(--ink);
}

.meta {
  grid-column: 10 / span 3;
  justify-self: end;
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta__value {
  color: var(--ink);
}

/* -----------------------------------------------
   Sections
   ----------------------------------------------- */
section {
  padding-block: clamp(72px, 10vw, 144px);
  border-bottom: 1px solid var(--rule);
}

.section-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--col-gap);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-head__no {
  grid-column: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
  border-top: 1px solid var(--ink);
  align-self: start;
}

.section-head__title {
  grid-column: 3 / span 7;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
}

.section-head__lede {
  grid-column: 10 / -1;
  max-width: 40ch;
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* -----------------------------------------------
   Hero
   ----------------------------------------------- */
.hero {
  padding-block: clamp(96px, 14vw, 192px);
}

.hero .eyebrow {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.hero__title {
  grid-column: 1 / span 11;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 10vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.hero__lede {
  grid-column: 5 / span 7;
  max-width: 56ch;
  margin: clamp(40px, 5vw, 72px) 0 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
}

.hero__actions {
  grid-column: 5 / span 7;
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* -----------------------------------------------
   Buttons
   ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease,
    border-color 160ms ease;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn:active {
  transform: translateY(1px);
}

/* -----------------------------------------------
   Services
   ----------------------------------------------- */
.services__list {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.service {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--col-gap);
  padding-block: clamp(28px, 3.5vw, 48px);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.service__no {
  grid-column: 1 / span 1;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.service__name {
  grid-column: 2 / span 4;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.service__desc {
  grid-column: 6 / span 5;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
}

.service__tags {
  grid-column: 11 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.service__tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  white-space: nowrap;
}

/* -----------------------------------------------
   About
   ----------------------------------------------- */
.about {
  background: var(--paper-2);
}

.about__body {
  grid-column: 3 / span 7;
  margin-top: clamp(32px, 4vw, 56px);
}

.about__body p {
  margin: 0 0 1.1em;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.about__stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about__stats dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.about__stats dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}

/* -----------------------------------------------
   Contact
   ----------------------------------------------- */
.contact__form {
  grid-column: 3 / -1;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: var(--col-gap);
  margin-top: clamp(16px, 3vw, 32px);
}

.field {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  border-radius: 0;
  resize: vertical;
  transition: border-color 160ms ease;
}

.field input:hover,
.field textarea:hover {
  border-bottom-color: var(--accent);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.field--submit {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.contact__fallback {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.contact__fallback a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* -----------------------------------------------
   Footer
   ----------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(56px, 7vw, 96px);
}

.site-footer .grid {
  align-items: start;
}

.site-footer__mark {
  grid-column: 1 / span 6;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 7vw, 112px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.site-footer__cols {
  grid-column: 7 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
  font-size: 14px;
  color: color-mix(in oklab, var(--paper) 80%, transparent);
}

.site-footer__cols > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__cols a {
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
  width: max-content;
}
.site-footer__cols a:hover {
  border-bottom-color: var(--paper);
}

.site-footer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
  margin-bottom: 2px;
}

/* -----------------------------------------------
   Responsive
   ----------------------------------------------- */
@media (max-width: 960px) {
  .wordmark { grid-column: 1 / span 6; }
  .nav      { grid-column: 1 / -1; justify-content: flex-start; gap: 20px; order: 3; padding-top: 4px; }
  .meta     { grid-column: 7 / span 6; }

  .hero__title  { grid-column: 1 / -1; }
  .hero__lede   { grid-column: 1 / -1; }
  .hero__actions{ grid-column: 1 / -1; }

  .section-head__no    { grid-column: 1 / -1; }
  .section-head__title { grid-column: 1 / -1; }
  .section-head__lede  { grid-column: 1 / -1; max-width: 60ch; }

  .service {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 16px;
  }
  .service__no   { grid-column: 1 / -1; }
  .service__name { grid-column: 1 / -1; }
  .service__desc { grid-column: 1 / -1; }
  .service__tags { grid-column: 1 / -1; justify-content: flex-start; }

  .about__body { grid-column: 1 / -1; }

  .contact__form      { grid-column: 1 / -1; }
  .field              { grid-column: 1 / -1; }

  .site-footer__mark  { grid-column: 1 / -1; margin-bottom: 32px; }
  .site-footer__cols  { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
}

@media (max-width: 540px) {
  :root { --gutter: 18px; --col-gap: 16px; }
  .hero__title { font-size: clamp(44px, 13vw, 80px); }
  .nav { gap: 14px; font-size: 13px; }
  .about__stats { grid-template-columns: 1fr; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
