/* ==========================================================
   Joseph Abu — portfolio
   Palette: warm off-black, bone, signal orange
   ========================================================== */
:root {
  --bg: #16140f;
  --bg-2: #1d1a14;
  --bg-3: #25211a;
  --rule: #3a3529;
  --ink: #ede6d6;
  --ink-2: #b9b09d;
  --ink-3: #847b69;
  --accent: #e4683a;
  --accent-2: #f19a6f;
  --ok: #9fbf7a;

  --f-display: "Archivo", ui-sans-serif, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: min(1240px, 100% - 2.5rem);
  --r: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--bg); padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-variation-settings: "wdth" 112; max-width: 18ch; }
h3 { font-size: 1.25rem; font-variation-settings: "wdth" 108; letter-spacing: -.01em; }
em { font-style: normal; color: var(--accent); }
p { margin: 0; }

.kicker, .eyebrow, .case__meta, .service__num, .tags li, .process span, .terminal, .about__tag, .contact__links span, .field label, .budget legend, .stack__col h3 {
  font-family: var(--f-mono);
}
.kicker { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .75rem; }
.kicker span { color: var(--accent); }
.kicker::after { content: ""; height: 1px; width: 48px; background: var(--rule); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px; font: 600 .98rem/1 var(--f-display);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--accent); color: #1a120c; }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--primary span[aria-hidden] { transition: transform .25s var(--ease); }
.btn--primary:hover span[aria-hidden] { transform: translateX(4px); }
.btn--ghost { border-color: var(--rule); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(22, 20, 15, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--rule); }
.nav__inner { width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 700; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 900; font-size: .9rem; position: relative;
  font-variation-settings: "wdth" 125;
}
.brand__mark::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 6px; height: 6px; background: var(--accent); border-radius: 1px; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { text-decoration: none; color: var(--ink-2); font-size: .95rem; position: relative; transition: color .2s; }
.nav__links a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }
.nav__cta { padding: .6rem 1.1rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink) !important; }
.nav__cta:hover { border-color: var(--accent); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(7.5rem, 16vh, 10rem) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 10%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -120px; z-index: -1;
  background: radial-gradient(circle, rgba(228, 104, 58, .18), transparent 62%);
}
.hero__grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--ink-2); padding: .45rem .9rem; border: 1px solid var(--rule); border-radius: 999px; margin-bottom: 2rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(159, 191, 122, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(159, 191, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(159, 191, 122, 0); } }
.hero__title { font-size: clamp(2.7rem, 6.2vw, 6.2rem); font-variation-settings: "wdth" 112; line-height: .92; letter-spacing: -.035em; }
.hero__title .line { display: block; }
.hero__title em { display: block; white-space: nowrap; font-variation-settings: "wdth" 62; font-weight: 300; font-style: normal; letter-spacing: -.02em; }
.hero__lede { margin-top: 2rem; max-width: 54ch; color: var(--ink-2); font-size: 1.12rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.hero__facts dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hero__facts dd { margin: .3rem 0 0; font-weight: 700; font-size: 1.05rem; }

/* load animation */
.load { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 120ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* terminal */
.terminal {
  background: linear-gradient(180deg, #1f1c16, #191710); border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  font-size: .82rem; transform: rotate(1.2deg); overflow: hidden;
}
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: .85rem 1rem; border-bottom: 1px solid var(--rule); }
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--bg-3); border: 1px solid #4a4436; }
.terminal__bar span:first-child { background: var(--accent); border-color: var(--accent); }
.terminal__bar p { margin-left: auto; color: var(--ink-3); font-size: .75rem; }
.terminal__body { margin: 0; padding: 1.25rem 1.25rem 1rem; min-height: 300px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.75; }
.terminal__body .c { color: var(--accent); }
.terminal__body .g { color: var(--ok); }
.terminal__body .d { color: var(--ink-3); }
.terminal__body .w { color: var(--ink); }
.terminal__body .cursor { display: inline-block; width: .55em; height: 1.1em; background: var(--accent); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal__foot { display: flex; gap: 1rem; padding: .7rem 1.25rem; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: .72rem; }
.terminal__foot span:nth-child(2) { color: var(--ok); }
.terminal__foot span:last-child { margin-left: auto; }

/* ticker */
.ticker { margin-top: clamp(4rem, 9vw, 7rem); border-block: 1px solid var(--rule); overflow: hidden; padding: 1.1rem 0; }
.ticker__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.ticker span { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; font-variation-settings: "wdth" 120; color: var(--ink-3); padding: 0 1.6rem; white-space: nowrap; display: flex; align-items: center; gap: 3.2rem; }
.ticker span::after { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 1px; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--rule); }
.section__head { margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 880px; }
.section__sub { margin-top: 1.4rem; color: var(--ink-2); max-width: 58ch; font-size: 1.08rem; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* services — offset two-column list */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 5rem); }
.service { position: relative; padding: 2.2rem 0 2.4rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 4.2rem 1fr; column-gap: 1rem; row-gap: .7rem; }
.service:nth-child(even) { transform: translateY(5rem); }
.service:nth-child(even).reveal:not(.is-in) { transform: translateY(calc(5rem + 36px)); }
.service > :not(.service__num) { grid-column: 2; }
.service__num { grid-row: 1 / span 3; color: var(--accent); font-size: .85rem; padding-top: .3rem; }
.service h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.service p { color: var(--ink-2); }
.service::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.service:hover::before { transform: scaleX(1); }
.services { padding-bottom: 5rem; }

.tags { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { font-size: .72rem; padding: .3rem .65rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); }

/* case studies — zig-zag */
.case { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.case + .case { border-top: 1px solid var(--rule); }
.case--flip .case__visual { order: 2; }
.case__meta { color: var(--accent); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.case h3 { font-size: clamp(2rem, 4vw, 3.2rem); font-variation-settings: "wdth" 115; margin-bottom: 1.2rem; }
.case__body > p { color: var(--ink-2); }
.case__points { margin: 1.4rem 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.case__points li { padding-left: 1.6rem; position: relative; color: var(--ink); font-size: .98rem; }
.case__points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 1px; background: var(--accent); }
.case__links { display: flex; gap: 1.5rem; margin-top: 1.6rem; }
.case__links a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.case__links a:hover { color: var(--accent); border-color: var(--accent); }

.case__visual {
  position: relative; aspect-ratio: 5 / 4; border-radius: 22px; border: 1px solid var(--rule);
  background:
    radial-gradient(circle at 30% 20%, rgba(228, 104, 58, .16), transparent 55%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(237, 230, 214, .025) 14px 15px),
    var(--bg-3);
  display: grid; place-items: center; overflow: hidden;
}
.case:hover .case__visual > :first-child { transform: translateY(-8px) rotate(-1deg); }
.case__visual > :first-child { transition: transform .8s var(--ease); }

/* phone mock */
.phone { height: 86%; aspect-ratio: 9 / 19; background: #0f0e0b; border-radius: 30px; padding: 10px; border: 1px solid #4a4436; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); position: relative; }
.phone__notch { position: absolute; top: 14px; left: 50%; width: 30%; height: 12px; border-radius: 10px; background: #000; transform: translateX(-50%); z-index: 2; }
.phone__screen { height: 100%; border-radius: 22px; background: var(--ink); padding: 34px 10px 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.ph-hero { background: var(--accent); border-radius: 10px; padding: 12px 10px; color: #1a120c; line-height: 1; }
.ph-hero b { display: block; font-size: .78rem; font-variation-settings: "wdth" 120; }
.ph-hero i { font-style: normal; font-family: var(--f-mono); font-size: .55rem; }
.ph-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-row span { height: 26px; border-radius: 8px; background: #d7cfbd; }
.ph-card { height: 70px; border-radius: 10px; background: #2a261e; }
.ph-list { display: grid; gap: 5px; }
.ph-list span { height: 12px; border-radius: 4px; background: #d7cfbd; }
.ph-list span:nth-child(2) { width: 75%; }
.ph-list span:nth-child(3) { width: 55%; }
.ph-tabs { margin-top: auto; display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid #d7cfbd; }
.ph-tabs span { width: 14px; height: 14px; border-radius: 4px; background: #c5bca8; }
.ph-tabs .on { background: var(--accent); }
.chip { position: absolute; font-family: var(--f-mono); font-size: .75rem; padding: .45rem .8rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--rule); }
.chip--a { top: 18%; left: 8%; }
.chip--b { bottom: 16%; right: 8%; color: var(--accent); }

/* browser mock */
.browser { width: 84%; background: #0f0e0b; border-radius: 14px; border: 1px solid #4a4436; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.browser__bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #2e2a21; }
.browser__bar span { width: 9px; height: 9px; border-radius: 50%; background: #3a3529; }
.browser__bar i { margin-left: 12px; font-style: normal; font-family: var(--f-mono); font-size: .65rem; color: var(--ink-3); background: #1d1a14; padding: 2px 30px 2px 10px; border-radius: 6px; }
.browser__screen { background: #f6f2ea; padding: 22px 22px 0; color: #16140f; text-align: center; }
.bx-pill { width: 34%; height: 10px; margin: 0 auto 12px; border-radius: 99px; background: #e3dccd; }
.bx-h { font-weight: 800; font-size: clamp(.9rem, 1.8vw, 1.3rem); line-height: 1.05; font-variation-settings: "wdth" 110; max-width: 16ch; margin: 0 auto; }
.bx-h em { font-weight: 300; font-variation-settings: "wdth" 70; color: #8a3e22; }
.bx-btns { display: flex; justify-content: center; gap: 8px; margin: 14px 0 18px; }
.bx-btns span { width: 70px; height: 20px; border-radius: 99px; background: #16140f; }
.bx-btns span + span { background: transparent; border: 1px solid #16140f; }
.bx-dash { display: grid; grid-template-columns: 1fr 2fr; grid-template-rows: 40px 40px; gap: 8px; background: #fff; border: 1px solid #e3dccd; border-bottom: 0; border-radius: 10px 10px 0 0; padding: 10px; }
.bx-dash span { border-radius: 6px; background: #efe9dd; }
.bx-dash span:first-child { grid-row: span 2; background: #16140f; }
.bx-dash span:nth-child(3) { background: rgba(228, 104, 58, .35); }

/* feed mock */
.feed { width: 76%; display: grid; gap: 12px; }
.feed__post { background: var(--ink); border-radius: 14px; padding: 14px; display: grid; grid-template-columns: 30px 1fr; gap: 6px 10px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.feed__post .av { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); grid-row: span 2; }
.feed__post .l1 { height: 10px; width: 50%; background: #2a261e; border-radius: 4px; }
.feed__post .l2 { height: 8px; width: 80%; background: #c5bca8; border-radius: 4px; }
.feed__post .img { grid-column: 1 / -1; height: 70px; border-radius: 10px; background: linear-gradient(135deg, #2a261e, #4a4030); margin-top: 6px; }
.feed__chat { display: grid; gap: 6px; justify-items: start; }
.msg { font-family: var(--f-mono); font-size: .72rem; padding: .5rem .8rem; border-radius: 12px; }
.msg--in { background: var(--bg); border: 1px solid var(--rule); color: var(--ink-2); }
.msg--out { background: var(--accent); color: #1a120c; justify-self: end; }
.typing { display: inline-flex; gap: 4px; padding: .55rem .8rem; background: var(--bg); border: 1px solid var(--rule); border-radius: 12px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }
.feed__notif { justify-self: end; font-family: var(--f-mono); font-size: .7rem; color: var(--ok); }

/* quote mock */
.quotecard { position: relative; z-index: 1; width: 66%; aspect-ratio: 1; margin: 0; background: var(--accent); color: #1a120c; border-radius: 18px; padding: 10%; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.quotecard blockquote { margin: 0; font-weight: 800; font-size: clamp(1.1rem, 2.6vw, 2rem); line-height: 1.05; font-variation-settings: "wdth" 115; letter-spacing: -.02em; }
.quotecard figcaption { font-family: var(--f-mono); font-size: .75rem; }
.quotecard--back { position: absolute; z-index: 0; background: var(--ink); transform: rotate(-8deg) translate(-8%, 4%); opacity: .9; }

.more { margin-top: 3rem; color: var(--ink-2); font-family: var(--f-mono); font-size: .9rem; }
.more a { color: var(--accent); }

/* stack */
.stack__grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.stack__col { padding: 1.8rem 1.5rem 2.2rem; border-right: 1px solid var(--rule); transition: background .3s; }
.stack__col:last-child { border-right: 0; }
.stack__col:hover { background: var(--bg-2); }
.stack__col h3 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 1.3rem; }
.stack__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.stack__col li { font-weight: 600; font-variation-settings: "wdth" 105; }

/* process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.process li { position: relative; padding: 4.5rem 1.6rem 1.8rem; border: 1px solid var(--rule); border-radius: var(--r); background: var(--bg); counter-increment: step; transition: transform .4s var(--ease), border-color .3s; }
.process li:hover { transform: translateY(-6px); border-color: var(--accent); }
.process li:nth-child(2) { margin-top: 2rem; }
.process li:nth-child(3) { margin-top: 4rem; }
.process li:nth-child(4) { margin-top: 6rem; }
.process li::before { content: "0" counter(step); position: absolute; top: 1.2rem; right: 1.4rem; font-size: 2.6rem; font-weight: 900; font-variation-settings: "wdth" 125; color: var(--bg-3); -webkit-text-stroke: 1px var(--rule); line-height: 1; }
.process span { position: absolute; top: 1.5rem; left: 1.6rem; font-size: .72rem; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.process h3 { font-size: 1.45rem; margin-bottom: .7rem; }
.process p { color: var(--ink-2); font-size: .96rem; }

/* about */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.about__photo { position: relative; max-width: 420px; }
.about__photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px; filter: grayscale(1) contrast(1.05) sepia(.18); border: 1px solid var(--rule); transition: filter .6s; background: var(--bg-3); }
.about__photo:hover img { filter: none; }
.about__photo::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--accent); border-radius: 24px; transform: translate(16px, 16px); z-index: -1; }
.about__tag { position: absolute; left: -12px; bottom: 26px; background: var(--accent); color: #1a120c; padding: .45rem .9rem; border-radius: 8px; font-size: .8rem; font-weight: 600; }
.about__copy h2 { margin-bottom: 1.6rem; }
.about__copy > p { color: var(--ink-2); margin-bottom: 1rem; max-width: 60ch; }
.about__copy strong { color: var(--ink); }
.about__list { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--rule); }
.about__list li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.about__list b { font-family: var(--f-mono); font-weight: 500; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: .2rem; }

/* contact */
.contact { background: var(--bg-2); border-top: 1px solid var(--rule); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.contact__intro h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); margin-bottom: 1.5rem; }
.contact__intro h2 em { display: block; font-weight: 300; font-variation-settings: "wdth" 62; }
.contact__intro > p { color: var(--ink-2); max-width: 44ch; }
.contact__links { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.contact__links li { display: grid; grid-template-columns: 6.5rem 1fr; padding: .9rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.contact__links span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.contact__links a { text-decoration: none; font-weight: 600; word-break: break-word; transition: color .2s; }
.contact__links a:hover { color: var(--accent); }

.form { background: var(--bg); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(1.4rem, 3.5vw, 2.4rem); display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: .45rem; min-width: 0; }
.field label, .budget legend { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.field label i { font-style: normal; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: 500 1rem/1.4 var(--f-display); color: var(--ink); background: var(--bg-2);
  border: 1px solid var(--rule); border-radius: 10px; padding: .85rem 1rem; transition: border-color .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #4f4838; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-3); }
.field__err { display: none; color: var(--accent-2); font-size: .82rem; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--accent); }
.field.is-invalid .field__err { display: block; }
.budget { border: 0; padding: 0; margin: 0; }
.budget legend { margin-bottom: .45rem; padding: 0; }
.budget__opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.budget__opts label { position: relative; cursor: pointer; }
.budget__opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.budget__opts span { display: block; text-align: center; padding: .7rem .4rem; border: 1px solid var(--rule); border-radius: 10px; font-family: var(--f-mono); font-size: .8rem; color: var(--ink-2); transition: all .2s; }
.budget__opts input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.budget__opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.budget__opts label:hover span { border-color: var(--ink-2); }
.form__status { min-height: 1.4em; font-size: .92rem; color: var(--ink-2); }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--accent-2); }
.form.is-sent .field, .form.is-sent .form__row, .form.is-sent .budget, .form.is-sent button { display: none; }
.form.is-sent .form__status { font-size: 1.15rem; padding: 2rem 0; }

/* footer */
.footer { padding: clamp(4rem, 8vw, 6rem) 0 2.5rem; border-top: 1px solid var(--rule); }
.footer__inner { display: grid; gap: 1rem; }
.footer__big { font-size: clamp(3rem, 12vw, 10rem); font-weight: 900; font-variation-settings: "wdth" 125; letter-spacing: -.045em; line-height: .85; color: var(--bg-3); -webkit-text-stroke: 1px #4a4436; }
.footer__big span { color: var(--accent); -webkit-text-stroke: 0; }
.footer p { color: var(--ink-2); }
.footer__small { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-3) !important; margin-top: 1.5rem; }
.footer__small a { color: var(--ink-2); }

/* thank-you / 404 */
.simple { min-height: 100vh; display: grid; place-items: center; padding: 2rem; text-align: left; }
.simple__box { max-width: 640px; }
.simple h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-variation-settings: "wdth" 118; margin: 1rem 0 1.5rem; }
.simple p { color: var(--ink-2); margin-bottom: 2rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .stack__grid { grid-template-columns: repeat(3, 1fr); }
  .stack__col:nth-child(3) { border-right: 0; }
  .stack__col:nth-child(n + 4) { border-top: 1px solid var(--rule); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process li:nth-child(n) { margin-top: 0; }
  .process li:nth-child(even) { margin-top: 2rem; }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule); padding: .5rem 1.25rem 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { width: 100%; padding: 1rem 0; font-size: 1.2rem; border-bottom: 1px solid var(--rule); }
  .nav__links a::after { display: none; }
  .nav__cta { margin-top: 1rem; text-align: center; border-bottom: 1px solid var(--rule) !important; }
  .nav.menu-open { background: var(--bg); border-color: var(--rule); }

  .hero__grid, .case, .about, .contact__grid { grid-template-columns: 1fr; }
  .terminal { transform: none; }
  .case--flip .case__visual { order: 0; }
  .services { grid-template-columns: 1fr; padding-bottom: 0; }
  .service:nth-child(even), .service:nth-child(even).reveal:not(.is-in) { transform: none; }
  .service:nth-child(even).reveal:not(.is-in) { transform: translateY(36px); }
  .about__photo { max-width: 340px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__facts { grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
  .hero__facts div:last-child { grid-column: 1 / -1; }
  .hero__actions .btn { flex: 1 1 100%; }
  .terminal__body { min-height: 260px; font-size: .75rem; padding: 1rem; }
  .stack__grid { grid-template-columns: 1fr 1fr; }
  .stack__col { border-right: 1px solid var(--rule) !important; border-top: 1px solid var(--rule); }
  .stack__col:nth-child(-n + 2) { border-top: 0; }
  .stack__col:nth-child(even) { border-right: 0 !important; }
  .stack__col:last-child { grid-column: 1 / -1; border-right: 0 !important; }
  .process { grid-template-columns: 1fr; }
  .process li:nth-child(even) { margin-top: 0; }
  .form__row { grid-template-columns: 1fr; }
  .budget__opts { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 3rem 1fr; }
  .about__list li { grid-template-columns: 1fr; gap: .2rem; }
  .contact__links li { grid-template-columns: 5.5rem 1fr; }
  .case__visual { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .load, .reveal { opacity: 1 !important; transform: none !important; }
  .ticker__track { animation: none; }
}
