/* NO ORDINARY — studio site for local businesses. One stylesheet, mobile first. */

@font-face {
  font-family: "Archivo NO";
  src: url("assets/archivo.woff") format("woff");
  font-weight: 400 900;
  font-stretch: 62% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono NO";
  src: url("assets/plexmono.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #F4F3F7;
  --ink: #291832;
  --ink-2: #5E4C67;
  --ink-hover: #3D2649;
  --lilac: #C7B4EC;
  --sulphur: #EFF36A;
  --sulphur-hover: #F6F8A6;
  --rule: rgb(41 24 50 / .24);
  --rule-strong: rgb(41 24 50 / .5);
  --rule-dark: rgb(244 243 247 / .3);

  --sans: "Archivo NO", "Arial Narrow", Arial, sans-serif;
  --mono: "Plex Mono NO", ui-monospace, Menlo, monospace;

  --max: 90rem;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --step: .55em;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-stretch: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }

::selection { background: var(--sulphur); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.how :focus-visible, .contact :focus-visible, .footer :focus-visible, .dock:focus-visible { outline-color: var(--sulphur); }

.skip {
  position: absolute; top: .75rem; left: .75rem; z-index: 100;
  padding: .85rem 1.1rem; background: var(--sulphur); color: var(--ink);
  font-weight: 600; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */

.display {
  font-stretch: 66%;
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.display .line { display: block; }
.display .step { margin-left: var(--step); }
.js [data-step] .step { transform: translateX(calc(var(--step) * -1)); }
.js [data-step].is-in .step { transform: none; transition: transform 1s var(--ease) .12s; }

.label {
  font-family: var(--mono);
  font-size: .8125rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.h2 { font-size: clamp(3rem, 9vw, 6.5rem); }

/* ---------- Brand bars ---------- */

.bars { position: relative; display: inline-block; flex: none; width: 1.6em; height: .82em; color: var(--sulphur); }
.bars i { position: absolute; left: 0; top: 0; width: 1.05em; height: .28em; background: currentColor; transition: transform .45s var(--ease); }
.bars i + i { left: .53em; top: .54em; }
a:hover .bars i:first-child { transform: translateX(.53em); }
a:hover .bars i + i { transform: translateX(-.53em); }

/* ---------- Controls ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
  min-height: 3.25rem; padding: .85rem 1.3rem;
  font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background-color .2s ease;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-hover); }
.btn-sulphur { background: var(--sulphur); color: var(--ink); }
.btn-sulphur .bars { color: var(--ink); }
.btn-sulphur:hover { background: var(--sulphur-hover); }

.text-link {
  font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em;
  transition: text-underline-offset .3s var(--ease);
}
.text-link:hover { text-underline-offset: .5em; }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem var(--gutter);
  background: rgb(244 243 247 / .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex; flex-direction: column;
  font-size: 1.6rem; font-weight: 700; font-stretch: 66%;
  line-height: .86; letter-spacing: -.04em; text-decoration: none; text-transform: uppercase;
}
.wordmark span + span { margin-left: .55em; }
.masthead-nav { display: none; gap: 2rem; font-weight: 600; }
.masthead-nav a { text-decoration: none; }
.masthead-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.masthead-cta { min-height: 2.75rem; padding: .6rem 1rem; }

@media (min-width: 52rem) {
  .masthead-nav { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid; gap: 3rem;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) var(--gutter) var(--section);
}
.hero-main { display: grid; gap: 1.5rem; align-content: center; }
.hero-title { font-size: clamp(3.4rem, 13.5vw, 8.5rem); }
.lede { max-width: 34rem; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.hero-note { font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); }

@media (min-width: 60rem) {
  .hero { grid-template-columns: 1.5fr 1fr; align-items: center; }
  .hero-title { font-size: clamp(3.5rem, 7.2vw, 8rem); }
}

/* Example phone */

.phone-wrap { display: grid; justify-items: center; gap: 1rem; }
.phone-wrap figcaption { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); text-align: center; }
.phone {
  position: relative;
  width: min(100%, 19rem);
  padding: .6rem;
  background: var(--ink);
  border-radius: 2.4rem;
  box-shadow: 1.25rem 1.25rem 0 var(--lilac);
}
.phone-screen {
  position: relative; overflow: hidden;
  display: grid; gap: .9rem;
  padding: 1rem 1rem 1.1rem;
  background: #FFFDF7;
  border-radius: 1.9rem;
  font-size: .8125rem; line-height: 1.35;
  color: #2B2118;
}
.tag {
  position: absolute; top: .85rem; right: .85rem; z-index: 1;
  padding: .2rem .45rem;
  background: var(--sulphur); color: var(--ink);
  font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em;
}
.demo-hero {
  display: grid; align-content: end; gap: .2rem;
  min-height: 9.5rem; padding: 1rem;
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 78% 28%, #E9C79A 0 18%, transparent 19%),
    radial-gradient(circle at 78% 28%, #6B4128 0 26%, transparent 27%),
    linear-gradient(160deg, #B9784A, #5A3520);
  color: #FFFDF7;
}
.demo-name { font-size: 1.35rem; font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: 1; }
.demo-sub { font-size: .75rem; opacity: .9; }
.demo-open { display: flex; align-items: center; gap: .45rem; font-weight: 600; }
.demo-open i { width: .5rem; height: .5rem; border-radius: 50%; background: #2F9E5B; }
.demo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.demo-actions span {
  padding: .55rem .5rem; border: 1px solid #D9CFC2; border-radius: .7rem;
  text-align: center; font-weight: 600;
}
.demo-actions .demo-wa { grid-column: 1 / -1; background: #2B2118; border-color: #2B2118; color: #FFFDF7; }
.demo-menu { display: grid; gap: .35rem; }
.demo-menu .demo-h { font-weight: 800; font-size: .9rem; }
.demo-menu p:not(.demo-h) { display: flex; justify-content: space-between; gap: .5rem; padding-bottom: .35rem; border-bottom: 1px dashed #D9CFC2; }
.demo-menu p span + span { color: #6B5C4D; font-size: .6875rem; white-space: nowrap; }
.demo-map {
  position: relative; height: 4.2rem; border-radius: .9rem;
  background:
    linear-gradient(90deg, transparent 46%, #FFFDF7 46% 50%, transparent 50%),
    linear-gradient(0deg, transparent 40%, #FFFDF7 40% 45%, transparent 45%),
    linear-gradient(35deg, transparent 60%, #FFFDF7 60% 63%, transparent 63%),
    #E6E0D6;
}
.demo-map b {
  position: absolute; left: 48%; top: 30%;
  width: .9rem; height: .9rem; border-radius: 50% 50% 50% 0;
  background: #C8462B; transform: rotate(-45deg);
}

/* ---------- Band ---------- */

.band {
  overflow: hidden;
  background: var(--lilac);
  border-block: 1px solid var(--ink);
}
.band p {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1.25rem;
  max-width: var(--max); margin: 0 auto; padding: 1.1rem var(--gutter);
  font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 800; font-stretch: 66%;
  text-transform: uppercase; line-height: 1;
}
.band i { width: .55em; height: .2em; background: var(--ink); }

/* ---------- Sections ---------- */

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-lede { max-width: 36rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; }

.services { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter); }
.service-list { border-top: 1px solid var(--rule-strong); }
.service {
  display: grid; gap: .75rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule-strong);
}
.code {
  font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 850; font-stretch: 62%;
  line-height: .8; letter-spacing: -.02em; color: var(--ink);
}
.service:nth-child(odd) .code { color: var(--ink); }
.service:nth-child(even) .code { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.service-body { display: grid; gap: .6rem; max-width: 40rem; }
.service h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.fit { font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); }

@media (min-width: 48rem) {
  .service { grid-template-columns: 12rem 1fr; align-items: start; padding: 2.25rem 0; }
}

/* How */

.how { background: var(--ink); color: var(--paper); }
.how .label { color: var(--lilac); }
.how-inner { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter); }
.steps { display: grid; gap: 2.5rem; }
.steps li { display: grid; gap: .6rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-dark); }
.step-n { font-family: var(--mono); color: var(--sulphur); }
.steps h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.steps p { color: rgb(244 243 247 / .82); max-width: 26rem; }

@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* About */

.about {
  display: grid; gap: 1.25rem;
  max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter);
}
.about-text { display: grid; gap: 1rem; max-width: 38rem; margin-top: 1rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }

@media (min-width: 60rem) {
  .about { grid-template-columns: 1.2fr 1fr; align-items: end; column-gap: 4rem; }
  .about .label { grid-column: 1 / -1; }
  .about-text { margin-top: 0; }
}

/* Contact */

.contact { background: var(--lilac); border-top: 1px solid var(--ink); }
.contact-inner {
  display: grid; gap: 1.75rem;
  max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter);
}
.contact-title { font-size: clamp(3rem, 10vw, 7.5rem); }
.contact-lede { max-width: 32rem; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.45; }
.contact-list { display: grid; border-top: 1px solid var(--ink); }
.contact-list li {
  display: grid; gap: .25rem;
  padding: 1rem 0; border-bottom: 1px solid var(--ink);
}
.contact .label { color: var(--ink); }
.contact-link {
  font-size: clamp(1.5rem, 5vw, 2.5rem); font-weight: 700; font-stretch: 75%;
  line-height: 1.1; text-decoration: none; overflow-wrap: anywhere;
}
.contact-link:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .2em; }
.contact .btn-sulphur { background: var(--ink); color: var(--paper); }
.contact .btn-sulphur .bars { color: var(--sulphur); }
.contact .btn-sulphur:hover { background: var(--ink-hover); }
.contact :focus-visible { outline-color: var(--ink); }

@media (min-width: 52rem) {
  .contact-list li { grid-template-columns: 10rem 1fr; align-items: baseline; }
}

/* Footer */

.footer {
  display: grid; gap: 2rem;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) calc(clamp(3rem, 6vw, 5rem) + 4rem);
  background: var(--ink); color: var(--paper);
}
.wordmark-xl { font-size: clamp(3.5rem, 14vw, 9rem); color: var(--lilac); }
.footer-meta { display: grid; gap: .35rem; color: rgb(244 243 247 / .78); font-size: .9375rem; }
.footer-meta a { display: inline-block; padding: .6rem 0; color: var(--paper); }
.hero-actions .text-link { padding-block: .7rem; }

@media (min-width: 52rem) {
  .footer { grid-template-columns: 1fr auto; align-items: end; padding-bottom: clamp(3rem, 6vw, 5rem); }
  .footer-meta { text-align: right; }
}

/* Mobile dock */

.dock {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  min-height: 3.25rem; padding: .85rem 1.3rem;
  background: var(--sulphur); color: var(--ink);
  font-weight: 600; text-decoration: none;
  border: 1px solid var(--ink);
  transform: translateY(calc(100% + 2rem)); transition: transform .35s var(--ease);
}
.dock .bars { color: var(--ink); }
.dock.is-on { transform: none; }

@media (min-width: 52rem) {
  .dock { display: none; }
}

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

/* ---------- Work (proposals) ---------- */

.work { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) var(--section); }
.case-list { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--rule-strong); padding-top: clamp(2rem, 4vw, 3rem); }
.case { display: grid; gap: 1.25rem; }
.case-shot { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--rule-strong); border-radius: 1.25rem; background: #fff; }
.case-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.case-shot:hover img { transform: scale(1.02); }
.case-body { display: grid; gap: .55rem; align-content: start; }
.case-meta { display: flex; flex-wrap: wrap; gap: .4rem; font-family: var(--mono); font-size: .75rem; }
.case-tag { padding: .35rem .65rem; background: var(--lilac); color: var(--ink); }
.case-code { padding: .35rem .65rem; border: 1px solid var(--rule-strong); }
.case h3 { font-size: 1.75rem; font-weight: 800; font-stretch: 75%; line-height: 1.05; }
.case-kind { font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); }
.case-dl { display: grid; gap: .25rem; margin: .5rem 0 0; }
.case-dl dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-top: .5rem; }
.case-dl dd { margin: 0; max-width: 34rem; }
.case-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.case-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .55rem 1rem; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.case-link:hover { background: var(--ink-hover); }
.case-link span { color: var(--sulphur); }

@media (min-width: 40rem) {
  .case { grid-template-columns: 11rem 1fr; gap: 1.75rem; align-items: start; }
  .case-shot { aspect-ratio: 3 / 4; }
}
@media (min-width: 60rem) {
  .case-list { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
  .case { grid-template-columns: 13rem 1fr; }
}
