/* ==========================================================================
   Allord Archard portfolio
   Hand-written CSS, no framework. Desktop first; section 10 adapts it for
   tablets. Phones get their own design in mobile.css, which only loads
   at 720px and below.

   Milk paper, warm ink, one deep green. Screens and scenes carry the
   colour; the page stays quiet around them so the work is what you see.

   1. Tokens          6. Services
   2. Base            7. Process, about, contact
   3. Pieces          8. Project page
   4. Nav + hero      9. Motion
   5. Work grid      10. Smaller screens
   ========================================================================== */

/* ============================ 1. TOKENS ============================ */
:root {
  --bg:        #f7f5f0;   /* milk */
  --bg-2:      #efebe2;   /* a shade deeper, for bands */
  --surface:   #fffdf9;
  --ink:       #1a1712;
  --ink-2:     #4a443b;
  --ink-3:     #857d6e;
  --line:      #e4ded2;
  --line-2:    #d3cbbb;

  --accent:      #1f5c47;   /* deep green */
  --accent-2:    #2f7a5f;
  --accent-soft: #e2ebe4;
  --live:        #17a34a;
  --wa:          #25d366;

  --dark:      #191611;
  --dark-2:    #24201a;
  --on-dark:   #f3efe6;
  --on-dark-2: #b9b1a2;

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body:    'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
  --font:    var(--body);   /* visuals.css reads these two names */
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);

  --w:      1240px;
  --nav-h:  72px;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(26, 23, 18, 0.05), 0 24px 48px -28px rgba(26, 23, 18, 0.28);
  --shadow-lg: 0 2px 4px rgba(26, 23, 18, 0.05), 0 50px 90px -40px rgba(26, 23, 18, 0.45);
}

/* ============================ 2. BASE ============================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16.5px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--surface); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--surface); font-weight: 600;
  transform: translateY(-160%); transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap { width: min(var(--w), 100% - 4rem); margin-inline: auto; }
.section { padding: clamp(5rem, 8vw, 7.5rem) 0; }

/* ============================ 3. PIECES ============================ */
.label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}
.label--accent { color: var(--accent); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; position: relative; }
.dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--live); animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

.h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.04em; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 56ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  height: 52px; padding: 0 1.5rem;
  border-radius: 99px;
  font-weight: 600; font-size: 0.97rem; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--accent); box-shadow: 0 16px 34px -16px rgba(31, 92, 71, 0.8); }
.btn--line { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn--line:hover { border-color: var(--ink); }
.btn--line:hover svg { transform: translateX(3px); }
.btn--wa .wa-ic { color: var(--wa); }
.btn--lg { height: 60px; padding: 0 1.9rem; font-size: 1.03rem; }
.btn--light { background: var(--on-dark); color: var(--dark); }
.btn--light:hover { background: #fff; }
.btn--ghost-dark { border-color: rgba(243, 239, 230, 0.25); color: var(--on-dark); }
.btn--ghost-dark:hover { border-color: var(--on-dark); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--mono); font-size: 0.72rem;
  padding: 3px 10px; border-radius: 99px;
  color: var(--ink-2); background: var(--bg); border: 1px solid var(--line);
}

/* device frames around screenshots and scenes */
.frame { margin: 0; position: relative; }
.frame img { width: 100%; height: auto; }
.frame--window {
  border-radius: 14px; overflow: hidden;
  background: #0b0f17;
  border: 1px solid rgba(26, 23, 18, 0.14);
  box-shadow: var(--shadow-lg);
}
.frame__bar {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  background: #ece7dd;
  border-bottom: 1px solid #ddd5c6;
}
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5ccbc; }
.frame__bar span {
  flex: 1; margin: 0 9% 0 12px; text-align: center;
  font-family: var(--mono); font-size: 0.66rem; color: #8a816f;
  padding: 2px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame__bar span:empty { visibility: hidden; }
.frame--phone {
  width: min(100%, 300px); margin-inline: auto;
  padding: 8px; border-radius: 38px;
  background: #1b1915;
  box-shadow: 0 0 0 1px #2c2923, var(--shadow-lg);
}
.frame--phone img { border-radius: 30px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; background: #000; }
.frame--phone::before {
  content: ''; position: absolute; z-index: 2; top: 17px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: #0b0a08;
}

/* ============================ 4. NAV + HERO ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.stuck { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-size: 0.82rem; letter-spacing: -0.04em;
}
.nav__links { display: flex; gap: 0.3rem; margin-left: auto; }
.nav__links a {
  position: relative; padding: 0.45rem 0.85rem; border-radius: 99px;
  font-size: 0.95rem; color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--ink); background: var(--bg-2); }
.nav__links a.active { color: var(--ink); background: var(--bg-2); }
.nav__cta { display: flex; align-items: center; gap: 1.2rem; }
.nav__status { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.86rem; color: var(--ink-2); }
.nav .btn { height: 44px; padding: 0 1.2rem; font-size: 0.92rem; }
.dock { display: none; }   /* the phone tab bar, shown by mobile.css */

.hero { padding: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem)) 0 clamp(3rem, 5vw, 4.5rem); position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.hero__kicker { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.6rem; }
.hero__kicker .pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.88rem; color: var(--ink-2);
}
.hero h1 {
  font-size: clamp(3rem, 5.6vw, 5.1rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { font-size: 1.18rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.8rem; }
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.proof b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof span { font-size: 0.86rem; color: var(--ink-3); line-height: 1.4; display: block; }

/* the collage: real screens, each one a door into its project */
.collage { position: relative; height: clamp(440px, 40vw, 560px); }
.collage__item { position: absolute; display: block; transition: transform 0.6s var(--ease); }
.collage__item:hover { z-index: 5; }
.collage__item .frame { transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.collage__item:hover .frame { transform: translateY(-8px) rotate(0deg) !important; }
.collage__a { right: 0; top: 0; width: 84%; z-index: 2; }
.collage__a .frame { transform: rotate(1.2deg); }
.collage__b { left: 0; bottom: 2%; width: 54%; z-index: 3; }
.collage__b .frame { transform: rotate(-2deg); }
.collage__c { right: 6%; bottom: -4%; width: 21%; z-index: 4; }
.collage__c .frame--phone { width: 100%; padding: 6px; border-radius: 28px; }
.collage__c .frame--phone img { border-radius: 23px; }
.collage__c .frame--phone::before { top: 12px; width: 7px; height: 7px; }
.collage__c .frame { transform: rotate(4deg); }
.collage__tag {
  position: absolute; z-index: 6; left: 12px; top: -14px;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.75rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.collage__tag .dot { width: 7px; height: 7px; }
.collage__c .collage__tag { left: 50%; transform: translateX(-50%); top: auto; bottom: -16px; }

.clients { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem 2.4rem; padding: 1.8rem 0; border-block: 1px solid var(--line); }
.clients__k { font-size: 0.9rem; color: var(--ink-3); }
.clients a { display: inline-flex; align-items: baseline; gap: 0.55rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; transition: color 0.2s; }
.clients a small { font-family: var(--body); font-weight: 400; font-size: 0.85rem; color: var(--ink-3); letter-spacing: 0; }
.clients a:hover { color: var(--accent); }

/* ============================ 5. WORK GRID ============================ */
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.work__head p { margin: 0.8rem 0 0; }
.filters { display: flex; gap: 0.35rem; padding: 0.3rem; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.filters button {
  padding: 0.5rem 1rem; border-radius: 99px;
  font-size: 0.9rem; color: var(--ink-2);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(26, 23, 18, 0.12); }
.filters sup { font-family: var(--mono); font-size: 0.66rem; color: var(--ink-3); margin-left: 3px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s, opacity 0.35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card--wide { grid-column: span 2; flex-direction: row; }
.card--wide .card__media { flex: 1.25; display: flex; align-items: flex-end; padding: 1.8rem 0 0 1.8rem; }
.card--wide .card__media .frame--window { width: 100%; border-radius: 10px 0 0 0; border-right: 0; }
.card--wide .card__media .frame--window img,
.card--wide .card__media .frame--window .v { aspect-ratio: 16 / 10.5; }
.card--wide .card__body { flex: 1; padding: 2rem 2rem 1.8rem; justify-content: center; }
.card--wide .card__foot { margin-top: 1.2rem; }
.grid.filtered .card--wide { flex-direction: column; }
.grid.filtered .card--wide .card__media { display: block; padding: 1.4rem 1.4rem 0; }
.grid.filtered .card--wide .card__media .frame--window { border-radius: 10px 10px 0 0; border-right: 1px solid rgba(26, 23, 18, 0.14); }
.grid.filtered .card--wide .card__body { padding: 1.4rem 1.5rem 1.5rem; }
.grid.filtered .card--wide { grid-column: auto; }
.card[hidden] { display: none; }
.card.enter { animation: cardIn 0.5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

.card__media {
  position: relative; display: block;
  padding: 1.4rem 1.4rem 0;
  background:
    radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--p) 30%, transparent), transparent 65%),
    color-mix(in srgb, var(--p) 9%, var(--bg-2));
  overflow: hidden;
}
.card__media .frame--window { border-radius: 10px 10px 0 0; border-bottom: 0; box-shadow: 0 30px 60px -30px rgba(26, 23, 18, 0.5); transition: transform 0.7s var(--ease); }
.card__media .frame--window img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.card:hover .card__media .frame--window { transform: translateY(-6px); }
.card__media .frame__bar { height: 24px; }
.card__media .frame__bar span { font-size: 0.58rem; }
.card__media .frame__bar i { width: 7px; height: 7px; }
.card__media--phone { display: grid; place-items: end center; aspect-ratio: auto; }
.card__media--phone .frame--phone { width: 38%; margin-bottom: -26%; padding: 6px; border-radius: 26px; transition: transform 0.7s var(--ease); }
.card__media--phone .frame--phone img { border-radius: 21px; }
.card__media--phone .frame--phone::before { top: 12px; width: 7px; height: 7px; }
.card:hover .card__media--phone .frame--phone { transform: translateY(-8px); }
.card--wide .card__media--phone .frame--phone { width: 24%; }

.card__body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card__client { font-size: 0.82rem; color: var(--ink-3); }
.card__live {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.25rem 0.7rem; border-radius: 99px;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft);
  transition: background 0.2s, color 0.2s;
}
.card__live .dot { width: 6px; height: 6px; }
.card__live svg { width: 13px; height: 13px; }
.card__live:hover { background: var(--accent); color: var(--surface); }
.card h3 { font-size: 1.55rem; letter-spacing: -0.035em; }
.card--wide h3 { font-size: 1.9rem; }
.card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }   /* the whole card opens the project */
.card p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }
.card--wide p { font-size: 1.04rem; max-width: 52ch; }
.card__foot { margin-top: auto; padding-top: 0.9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card__go { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.card__go svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.card:hover .card__go { color: var(--accent); }
.card:hover .card__go svg { transform: translateX(4px); }

/* ============================ 6. SERVICES ============================ */
.services { background: var(--bg-2); }
.services__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; margin-bottom: 3rem; }
.services__head .lede { margin: 0; }
.offers { border-top: 1px solid var(--line-2); }
.offer {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 2.5rem; padding: 2.2rem 0;
  border-bottom: 1px solid var(--line-2);
  transition: background 0.3s;
}
.offer h3 { font-size: 1.6rem; letter-spacing: -0.035em; }
.offer__do p { color: var(--ink-2); margin-bottom: 0.9rem; }
.offer__get { display: grid; gap: 0.35rem; }
.offer__get li { display: flex; gap: 0.6rem; font-size: 0.94rem; color: var(--ink); }
.offer__get li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231f5c47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.offer__proof .label { margin-bottom: 0.8rem; }
.offer__proof ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.offer__proof a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.45rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.9rem; font-weight: 600;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.offer__proof a i { width: 22px; height: 22px; border-radius: 50%; background: var(--p); flex: none; }
.offer__proof a:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ============================ 7. PROCESS, ABOUT, CONTACT ============================ */
.process__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; margin-bottom: 3.2rem; }
.process__head .lede { margin: 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.steps::before {   /* the line that draws across as you arrive */
  content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 2px;
  background: linear-gradient(90deg, var(--accent) var(--line-p, 0%), var(--line) var(--line-p, 0%));
}
.step { position: relative; padding-right: 1rem; }
.step__n {
  position: relative; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 500; font-size: 0.9rem;
  background: var(--bg); border: 2px solid var(--line-2); color: var(--ink-3);
  margin-bottom: 1.4rem;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.step.on .step__n { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.step h3 { font-size: 1.28rem; letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.step p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }

.promise {
  margin-top: 3.4rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem;
}
.promise li { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.promise b { display: block; font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.promise span { color: var(--ink-2); font-size: 0.95rem; }

.about { background: var(--bg-2); }
.about__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.about__photo { position: relative; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.about__badge {
  position: absolute; right: -18px; bottom: 28px;
  padding: 0.9rem 1.1rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 0.86rem; line-height: 1.45;
}
.about__badge b { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.about__text h2 { margin-bottom: 1.6rem; }
.about__text p { font-size: 1.08rem; color: var(--ink-2); max-width: 60ch; }
.about__text p b { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 2.2rem; border-top: 1px solid var(--line-2); }
.facts li { padding: 1rem 0; border-bottom: 1px solid var(--line-2); display: grid; gap: 0.15rem; }
.facts li:nth-child(odd) { padding-right: 1.5rem; }
.facts dt, .facts .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.facts .val { font-weight: 500; }
.facts a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.facts a:hover { text-decoration-color: var(--ink); }

.contact { background: var(--dark); color: var(--on-dark); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 4rem; align-items: end; }
.contact h2 { font-size: clamp(2.8rem, 5.4vw, 4.8rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.98; margin-bottom: 1.4rem; }
.contact h2 em { font-style: normal; color: #8fd3b4; }
.contact p { color: var(--on-dark-2); font-size: 1.12rem; max-width: 46ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.contact__card { padding: 1.8rem; border-radius: 22px; background: var(--dark-2); border: 1px solid rgba(243, 239, 230, 0.1); display: grid; gap: 1.2rem; }
.contact__row { display: grid; gap: 0.2rem; }
.contact__row .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-2); }
.contact__row .val { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 1.05rem; font-weight: 500; }
.copy {
  font-family: var(--mono); font-size: 0.72rem; padding: 0.3rem 0.7rem; border-radius: 99px;
  border: 1px solid rgba(243, 239, 230, 0.2); color: var(--on-dark-2);
  transition: color 0.2s, border-color 0.2s;
}
.copy:hover { color: var(--on-dark); border-color: var(--on-dark); }

.footer { background: var(--dark); color: var(--on-dark-2); border-top: 1px solid rgba(243, 239, 230, 0.08); padding: 1.6rem 0; font-size: 0.88rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer a:hover { color: var(--on-dark); }
.footer nav { display: flex; gap: 1.4rem; }

/* ============================ 8. PROJECT PAGE ============================ */
.ph {
  padding: calc(var(--nav-h) + clamp(2.5rem, 4vw, 3.5rem)) 0 clamp(3.5rem, 5vw, 5rem);
  background:
    radial-gradient(ellipse at 85% 30%, color-mix(in srgb, var(--p) 22%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--p) 7%, var(--bg)), var(--bg));
  border-bottom: 1px solid var(--line);
}
.ph__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.crumbs { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--ink-3); margin-bottom: 1.6rem; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 14px; height: 14px; }
.ph__client { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--ink-2); margin-bottom: 0.9rem; }
.ph__client i { width: 10px; height: 10px; border-radius: 3px; background: var(--p); }
.ph h1 { font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 800; letter-spacing: -0.055em; line-height: 0.95; margin-bottom: 1.3rem; }
.ph__tag { font-size: 1.22rem; color: var(--ink-2); max-width: 40ch; margin-bottom: 2rem; }
.ph__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.4rem; }
.ph__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line-2); }
.ph__meta div { padding: 0.85rem 0; border-bottom: 1px solid var(--line-2); }
.ph__meta div:nth-child(odd) { padding-right: 1.2rem; }
.ph__meta dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.ph__meta dd { margin: 0.1rem 0 0; font-weight: 500; font-size: 0.95rem; }
.ph__visual { perspective: 1800px; }
.ph__visual .frame--window { transform: rotateY(-7deg) rotateX(3deg); transform-origin: 30% 50%; transition: transform 0.9s var(--ease); }
.ph__visual:hover .frame--window { transform: none; }
.ph__visual .frame--phone { width: min(100%, 270px); }

.overview { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.overview p.big { font-size: 1.32rem; line-height: 1.6; color: var(--ink); letter-spacing: -0.01em; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats li { background: var(--surface); padding: 1.4rem 1.3rem; }
.stats b { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1.05; color: color-mix(in srgb, var(--p) 55%, var(--ink)); font-variant-numeric: tabular-nums; margin-bottom: 0.35rem; }
.stats span { font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; display: block; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; margin-bottom: 2.6rem; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.6rem; }
.feature { padding: 1.6rem 0 1.9rem; border-top: 1px solid var(--line-2); }
.feature h3 { font-size: 1.22rem; letter-spacing: -0.025em; margin-bottom: 0.55rem; display: flex; gap: 0.7rem; align-items: baseline; }
.feature h3 i { font-style: normal; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; color: color-mix(in srgb, var(--p) 60%, var(--ink)); }
.feature p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }

.story-sec { background: var(--bg-2); }
.story { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(3rem, 6vw, 5.5rem); }
.story__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.3; transition: opacity 0.5s var(--ease); }
.story__step.on { opacity: 1; }
.story__n { font-family: var(--mono); font-size: 0.8rem; color: color-mix(in srgb, var(--p) 60%, var(--ink)); margin-bottom: 0.8rem; }
.story__step h3 { font-size: 2rem; letter-spacing: -0.04em; margin-bottom: 0.8rem; }
.story__step p { color: var(--ink-2); font-size: 1.06rem; max-width: 38ch; }
.story__inline { display: none; }
.story__sticky { position: sticky; top: max(calc(var(--nav-h) + 1.5rem), calc(50vh - 260px)); }
.story__imgs { position: relative; aspect-ratio: 16 / 10; background: #0b0f17; }
.story__img { opacity: 0; transform: scale(1.03); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.story__imgs .story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.story__img.on { opacity: 1; transform: none; }
.story--phone .story__frame { width: min(100%, 320px); }
.story--phone .story__frame .story__img:not(:first-child) { position: absolute; top: 8px; left: 8px; width: calc(100% - 16px); }
.story__dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.4rem; }
.story__dots span { width: 22px; height: 3px; border-radius: 3px; background: var(--line-2); transition: background 0.4s, width 0.4s var(--ease); }
.story__dots span.on { background: var(--ink); width: 40px; }

.screens { display: flex; align-items: center; justify-content: center; gap: 3rem; }
.screens__item { flex: 1 1 560px; max-width: 800px; }
.screens__item--phone { flex: 0 1 280px; }

.tech { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.tech .tags li { font-size: 0.82rem; padding: 0.4rem 0.85rem; background: var(--surface); color: var(--ink); }
.hood { counter-reset: hood; border-top: 1px solid var(--line-2); }
.hood li { counter-increment: hood; position: relative; padding: 1.1rem 0 1.1rem 3rem; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.hood li::before { content: counter(hood, decimal-leading-zero); position: absolute; left: 0; top: 1.25rem; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(243, 239, 230, 0.1); }
.pager a { display: grid; gap: 0.3rem; padding: 2.4rem 0; color: var(--on-dark); transition: color 0.3s; }
.pager a + a { text-align: right; padding-left: 2rem; border-left: 1px solid rgba(243, 239, 230, 0.1); }
.pager a:first-child { padding-right: 2rem; }
.pager .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-2); }
.pager b { font-family: var(--display); font-size: 2.2rem; letter-spacing: -0.04em; transition: transform 0.5s var(--ease); }
.pager a:hover b { color: #8fd3b4; }
.pager a:first-child:hover b { transform: translateX(-6px); }
.pager a + a:hover b { transform: translateX(6px); }

/* ============================ 9. MOTION ============================ */
/* entrance on load: the hero writes itself in, top to bottom */
.rise { animation: rise 0.9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.collage__item { animation: drop 1.1s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes drop { from { opacity: 0; transform: translateY(40px) scale(0.96); } }

/* scroll reveal: main.js adds .in; without script everything is simply shown */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ============================ 10. SMALLER SCREENS ============================ */
@media (max-width: 1080px) {
  .nav__status { display: none; }
  .hero__grid, .ph__grid, .overview, .tech, .about__grid, .contact__grid, .services__head, .process__head { grid-template-columns: minmax(0, 1fr); }
  .collage { height: 520px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid .card--wide { grid-column: span 2; flex-direction: row; }
.card--wide .card__media { flex: 1.25; display: flex; align-items: flex-end; padding: 1.8rem 0 0 1.8rem; }
.card--wide .card__media .frame--window { width: 100%; border-radius: 10px 0 0 0; border-right: 0; }
.card--wide .card__media .frame--window img,
.card--wide .card__media .frame--window .v { aspect-ratio: 16 / 10.5; }
.card--wide .card__body { flex: 1; padding: 2rem 2rem 1.8rem; justify-content: center; }
.card--wide .card__foot { margin-top: 1.2rem; }
.grid.filtered .card--wide { flex-direction: column; }
.grid.filtered .card--wide .card__media { display: block; padding: 1.4rem 1.4rem 0; }
.grid.filtered .card--wide .card__media .frame--window { border-radius: 10px 10px 0 0; border-right: 1px solid rgba(26, 23, 18, 0.14); }
.grid.filtered .card--wide .card__body { padding: 1.4rem 1.5rem 1.5rem; }
  .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .offer h3 { grid-column: 1 / -1; }
  .steps, .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
  .steps::before { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story__stage { display: none; }
  .story__step { min-height: 0; opacity: 1; padding: 1rem 0 2.4rem; }
  .story__inline { display: block; margin-top: 1.4rem; }
}
/* phones: see mobile.css */
