/* dev/partner — dark editorial design system.
   Reference language: warm black #11100D, sand #CFC4AA, giant display type,
   bracketed labels, glass cards, floating pill nav. */

:root {
  --bg: #11100D;
  --bg-soft: #17150F;
  --sand: #CFC4AA;
  --sand-bright: #EFE7D4;
  --text: #BDB5A3;
  --muted: #8F887A;
  --dim: #575246;
  --line: rgba(207, 196, 170, 0.14);
  --line-soft: rgba(207, 196, 170, 0.08);
  --glass: linear-gradient(165deg, rgba(207, 196, 170, 0.09), rgba(207, 196, 170, 0.02) 62%);
  --glass-solid: linear-gradient(165deg, rgba(23, 21, 15, 0.94), rgba(17, 16, 13, 0.97));
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --max: 1200px;
  --font-display: "Urbanist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--sand);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  text-wrap: balance;
}

h1 { font-weight: 800; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
h3 { font-weight: 700; font-size: 1.22rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
a { color: inherit; }
code { font-family: var(--font-mono); font-size: 0.88em; color: var(--sand); }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  scroll-margin-top: 96px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--sand); color: var(--bg);
  padding: 0.7rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(17, 16, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.05rem;
}
.wordmark { text-decoration: none; }
.wm-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--sand); display: inline-flex; align-items: center;
}
.wm-block {
  display: inline-block; width: 0.62em; height: 0.62em;
  background: var(--sand); margin: 0 0.28em;
}
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-mail {
  color: var(--muted); text-decoration: none; font-size: 0.92rem;
  border-bottom: 1px solid var(--line-soft);
}
.topbar-mail:hover { color: var(--sand); border-bottom-color: var(--line); }

.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 3px; gap: 2px; background: rgba(23, 21, 15, 0.6);
}
.lang-btn {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--muted);
  background: transparent; border: 0; border-radius: var(--radius-pill);
  padding: 0.42rem 0.75rem; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { color: var(--sand); }
.lang-btn[aria-pressed="true"] { background: var(--sand); color: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  padding: 0.95rem 1.7rem; border-radius: 8px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-sm { padding: 0.62rem 1.15rem; font-size: 0.88rem; }
.btn-sand { background: var(--sand); color: var(--bg); }
.btn-sand:hover { background: var(--sand-bright); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(207, 196, 170, 0.3); color: var(--sand); }
.btn-outline:hover { border-color: var(--sand); transform: translateY(-1px); }
.btn-dark { background: var(--bg); color: var(--sand); }
.btn-dark:hover { background: #000; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(7rem, 12vw, 9.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-avail {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: rgba(23, 21, 15, 0.6);
  padding: 0.5rem 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #4ad07a; display: inline-block; }

.hero-giant {
  display: flex; flex-direction: column;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.9rem, 8.6vw, 7.2rem);
  line-height: 0.95; letter-spacing: -0.025em; text-transform: uppercase;
  color: var(--sand);
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.hg-line { display: flex; align-items: center; gap: 0.42em; flex-wrap: wrap; }
.hg-text { white-space: nowrap; }
.hg-arrow {
  width: 0.85em; height: 0.85em; color: var(--sand);
  animation: nudge 2.2s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.chip {
  font-family: var(--font-mono); font-size: clamp(0.6rem, 0.78vw, 0.72rem);
  font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sand); background: var(--glass);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.85em 1.1em; margin-left: 0.3em;
  transform: translateY(-0.35em);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
}
.hero-title {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  color: var(--sand-bright); max-width: 24em; line-height: 1.12;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand);
  margin: 0 0 0.9rem;
}
.hero-lede { color: var(--muted); font-size: 1.06rem; max-width: 34rem; }
.hero-extra { color: var(--text); font-size: 0.99rem; max-width: 34rem; margin-bottom: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.5rem 0 1.1rem; }
.hero-meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }
.hero-pricing {
  display: inline-block; font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.06em; color: var(--sand);
  border: 1px dashed rgba(207, 196, 170, 0.35); border-radius: var(--radius-pill);
  padding: 0.45rem 0.95rem;
}

/* Code window */
.hero-visual { display: grid; gap: 1rem; }
.code-window {
  background: linear-gradient(170deg, #17150F, #0d0c0a);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.code-bar {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.76rem;
}
.traffic { display: inline-flex; gap: 6px; }
.traffic i { width: 10px; height: 10px; border-radius: 50%; background: #2c2a24; display: block; }
.traffic i:first-child { background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.code-filename { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-badge {
  margin-left: auto; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 0.2rem 0.6rem; border-radius: var(--radius-pill);
  color: var(--sand); white-space: nowrap;
}
.code-body {
  margin: 0; padding: 1.2rem 1.2rem 0.6rem;
  font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.75;
  overflow-x: auto; color: var(--text);
}
.c-dim { color: var(--dim); } .c-kw { color: #9DB4FF; } .c-str { color: #E8C87A; } .c-fn { color: #8FD9B0; }
.code-foot {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem;
  padding: 0.9rem 1.2rem 1.1rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--muted);
}
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mini-card {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.05rem 1.1rem;
}
.mini-card-solid { background: linear-gradient(165deg, #1C1A13, #17150F); }
.mini-label {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  font-weight: 700; text-transform: uppercase; color: var(--sand);
  margin: 0 0 0.45rem;
}
.mini-text { margin: 0; font-size: 0.93rem; line-height: 1.58; color: var(--text); }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden; padding: 1.15rem 0; margin-top: clamp(1.5rem, 3vw, 3rem);
  background: rgba(23, 21, 15, 0.35);
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; }
.marquee-group span {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(0.85rem, 1.2vw, 1rem); letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sand); white-space: nowrap;
}
.marquee-group i { color: var(--dim); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */
.section-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1.3rem;
}
.section-title { max-width: 20em; }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 44rem; margin-bottom: 2.4rem; }
.section-note {
  margin-top: 1.6rem; font-size: 0.9rem; color: var(--muted);
  border-left: 2px solid rgba(207, 196, 170, 0.35); padding-left: 0.9rem;
  max-width: 46rem;
}
.section-light .section-note { color: #7C7460; border-left-color: rgba(20, 19, 15, 0.25); }
.section-head-split {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; margin-bottom: 0.6rem; flex-wrap: wrap;
}
.section-head-split .section-sub { margin-bottom: 1rem; }

/* Word reveal */
.section-title .w, .contact-card .section-title .w { color: var(--dim); transition: color 0.35s ease; }
.section-title .w.on, .contact-card .section-title .w.on { color: var(--sand); }

.card {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
}
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.card-num {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  color: transparent; -webkit-text-stroke: 1px rgba(207, 196, 170, 0.4);
  margin: 0 0 0.6rem; line-height: 1;
}
.card-fix {
  background: rgba(23, 21, 15, 0.72); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 0.9rem 1rem;
  font-size: 0.93rem; color: var(--text); margin-bottom: 0;
}
.card-fix strong { color: var(--sand); font-weight: 600; }

/* ---------- Services ---------- */
.service-svg {
  display: block; width: 44px; height: 44px;
  color: var(--sand); margin-bottom: 1.05rem;
}
.service-card ul { margin: 0 0 1.2rem; padding-left: 1.15rem; color: var(--muted); }
.service-card li { margin-bottom: 0.4rem; }
.service-card li::marker { color: var(--dim); }
.service-more { margin-top: auto; align-self: flex-start; }
.service-card { display: flex; flex-direction: column; }

/* ---------- Stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.stack-card h3 { font-size: 1.02rem; margin-bottom: 0.8rem; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list li {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.02em;
  color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 0.38rem 0.8rem; background: rgba(23, 21, 15, 0.4);
}
.section-light .tag-list li { color: #4F4A3D; border-color: rgba(20, 19, 15, 0.16); background: #F4F0E6; }

/* ---------- Engagement ---------- */
.eng-best {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand);
  margin: 1.1rem 0 0.5rem;
}
.section-light .eng-best { color: #6E6450; }
.eng-list { margin: 0; padding-left: 1.15rem; color: var(--muted); font-size: 0.95rem; }
.section-light .eng-list { color: #66604F; }
.eng-list li { margin-bottom: 0.3rem; }
.eng-foot { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.8rem; }
.eng-foot .section-note { margin-top: 0; flex: 1 1 22rem; }

/* ---------- Rescue ---------- */
.rescue-section { padding-top: clamp(0.75rem, 2vw, 1.5rem); }
.rescue-card {
  background: linear-gradient(165deg, #1E1B15, #171510);
  border: 1px solid rgba(207, 196, 170, 0.22);
  border-radius: 24px; padding: clamp(2rem, 4.5vw, 3.2rem);
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 3rem); align-items: start;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--sand);
}
.rescue-card h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.rescue-card p { color: var(--muted); }
.pilot-label-dark { color: var(--sand); }
.rescue-list { list-style: none; margin: 0.4rem 0 1.6rem; padding: 0; display: grid; gap: 0.6rem; }
.rescue-list li { padding-left: 1.6rem; position: relative; color: var(--text); font-size: 0.96rem; }
.rescue-list li::before { content: "→"; position: absolute; left: 0; color: var(--sand); font-weight: 700; }
.rescue-side .btn { margin-top: 0.2rem; }

/* ---------- Process: 5 steps ---------- */
.steps-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1020px) { .steps-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .steps-5 { grid-template-columns: 1fr; } }

/* ---------- Work ---------- */
.work-note {
  max-width: 22rem; font-size: 0.86rem; color: var(--muted);
  border-left: 2px solid rgba(207, 196, 170, 0.35); padding-left: 0.9rem; margin: 0 0 1rem;
}
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.6rem; }
.placeholder-flag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand);
  background: rgba(207, 196, 170, 0.1); border: 1px dashed rgba(207, 196, 170, 0.4);
  padding: 0.32rem 0.65rem; border-radius: var(--radius-pill); margin: 0 0 1rem;
}
.project-media {
  border: 1px dashed rgba(207, 196, 170, 0.28); border-radius: var(--radius-sm);
  background: repeating-linear-gradient(135deg, rgba(207, 196, 170, 0.04), rgba(207, 196, 170, 0.04) 12px, transparent 12px, transparent 24px);
  min-height: 140px; display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-family: var(--font-mono); font-size: 0.78rem; margin-bottom: 1.1rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.project-cat {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 0.45rem;
}
.project-name { margin-bottom: 0.5rem; }
.project-desc { color: var(--muted); font-size: 0.95rem; }
.project-tech {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--sand); margin: 0.9rem 0 0;
}
.live-flag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg);
  background: var(--sand); border: 1px solid var(--sand);
  padding: 0.32rem 0.65rem; border-radius: var(--radius-pill); margin: 0 0 1rem;
}
.section-light .live-flag { color: #EFE9DB; background: #14130F; border-color: #14130F; }
.project-media.has-shot { padding: 0; overflow: hidden; }
.project-media.has-shot img {
  width: 100%; height: 200px; object-fit: cover; object-position: top;
  display: block;
}
.sheet-right .project-media.has-shot { min-height: 0; }
.project-facts { display: grid; gap: 0.7rem; margin: 1rem 0; }
.project-facts > div { border-top: 1px solid var(--line-soft); padding-top: 0.65rem; }
.project-facts dt {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 700; color: var(--sand);
}
.project-facts dd { margin: 0.2rem 0 0; font-size: 0.93rem; color: var(--muted); }
.project-link { color: var(--dim); font-size: 0.88rem; margin: 0; }
a.project-link {
  color: var(--sand); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
a.project-link:hover { color: var(--sand-bright); text-decoration: underline; text-underline-offset: 4px; }
.work-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-top: 1rem; }

/* ---------- White-label (giant bg + glass card) ---------- */
.partner-section { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 8rem); }
.giant-bg {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.4rem, 13vw, 11rem); line-height: 0.92;
  letter-spacing: -0.02em; text-transform: uppercase; color: var(--sand);
  text-align: center; user-select: none; pointer-events: none;
}
.giant-bg span { display: block; }
.glass-card {
  background: var(--glass-solid);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.partner-card {
  position: relative; z-index: 1;
  max-width: 780px; margin-inline: auto;
  padding: clamp(1.8rem, 4vw, 3rem);
}
.principle-list {
  list-style: none; margin: 0 0 1.8rem; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
}
.principle { display: flex; gap: 0.85rem; align-items: flex-start; }
.check {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sand); color: var(--bg); display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
  margin-top: 0.15rem;
}
.principle h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.principle p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* ---------- Process ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem;
  color: transparent; -webkit-text-stroke: 1px rgba(207, 196, 170, 0.4);
  margin: 0 0 0.5rem; line-height: 1;
}
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Pilot (sand panel) ---------- */
.pilot-section { padding-top: clamp(0.75rem, 2vw, 1.5rem); }
.pilot-card {
  background: var(--sand); color: var(--bg);
  border-radius: 24px; padding: clamp(2rem, 4.5vw, 3.6rem);
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 3rem); align-items: start;
  box-shadow: var(--shadow);
}
.pilot-label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(17, 16, 13, 0.55); margin: 0 0 1.1rem;
}
.pilot-card h2 { color: var(--bg); font-size: clamp(1.7rem, 3vw, 2.6rem); }
.pilot-card p { color: rgba(17, 16, 13, 0.75); }
.pilot-list { list-style: none; margin: 0.4rem 0 1.6rem; padding: 0; display: grid; gap: 0.6rem; }
.pilot-list li {
  padding-left: 1.6rem; position: relative; color: var(--bg);
  font-weight: 500; font-size: 0.98rem;
}
.pilot-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--bg); }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
}
.about-note {
  font-size: 0.88rem; color: var(--muted);
  border-left: 2px solid rgba(207, 196, 170, 0.35); padding-left: 0.9rem;
}
.about-card { padding: 1.7rem; }
.about-card dl { margin: 0; display: grid; gap: 1.1rem; }
.about-card dl > div { border-top: 1px solid var(--line-soft); padding-top: 0.95rem; }
.about-card dl > div:first-child { border-top: 0; padding-top: 0; }
.about-card dt {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 700; color: var(--sand);
}
.about-card dd { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.3rem; }

/* ---------- Contact ---------- */
.contact-section { padding-top: 0; }
.contact-card { padding: clamp(1.8rem, 4vw, 3.2rem); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem); margin-top: 0.6rem; align-items: start;
}
.contact-label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  font-weight: 700; text-transform: uppercase; color: var(--sand);
}
.contact-checklist { margin: 0.7rem 0 1.5rem; padding-left: 1.2rem; color: var(--muted); }
.contact-checklist li { margin-bottom: 0.45rem; }
.contact-config {
  background: rgba(23, 21, 15, 0.65); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.4rem;
}
.contact-email { font-family: var(--font-mono); font-size: 0.9rem; overflow-wrap: anywhere; color: var(--text); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.1rem 0 0.9rem; }
.contact-hint { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* ---------- Contact form (mailto compose — no backend, no fake submit) ---------- */
.contact-form { margin-top: 2rem; border-top: 1px solid var(--line-soft); padding-top: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #6E6450;
}
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem; color: #14130F;
  background: #fff; border: 1px solid rgba(20, 19, 15, 0.22);
  border-radius: 10px; padding: 0.8rem 0.95rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid #14130F; outline-offset: 2px; border-color: #14130F;
}
.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-foot .contact-hint { flex: 1 1 16rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
/* Honeypot: off-screen (not display:none) so bots still fill it */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 7.5rem;
  background: linear-gradient(180deg, transparent, rgba(23, 21, 15, 0.5));
}
.footer-hero {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-giant {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 5.4rem); letter-spacing: 0.06em;
  line-height: 1; color: var(--sand); margin: 0;
  display: inline-flex; align-items: center; text-transform: uppercase;
  overflow-wrap: anywhere;
}
.footer-giant .wm-block { width: 0.62em; height: 0.62em; }
.footer-cta { max-width: 22rem; }
.footer-ready {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--sand); margin: 0 0 0.4rem;
}
.footer-mail { color: var(--muted); font-size: 0.98rem; text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.footer-mail:hover { color: var(--sand); }
.footer-cols {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  gap: 2rem; padding-block: 2rem 2.4rem;
  border-top: 1px solid var(--line-soft);
}
.footer-col-label {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dim); margin: 0 0 0.9rem;
}
.footer-cols > div { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-cols a {
  color: var(--sand); text-decoration: none; font-family: var(--font-display);
  font-weight: 600; font-size: 1.02rem; width: fit-content;
}
.footer-cols a:hover { color: var(--sand-bright); text-decoration: underline; text-underline-offset: 4px; }
.footer-cards { flex-direction: row !important; align-items: flex-start; gap: 0.8rem !important; }
.footer-cards .mini-card { flex: 1; min-height: 90px; display: flex; align-items: flex-start; }
.footer-cards .mini-label { margin: 0; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); padding-top: 1.4rem;
  color: var(--dim); font-size: 0.86rem;
}
.footer-bottom p { margin: 0; font-family: var(--font-mono); letter-spacing: 0.04em; }
.footer-top-link { color: var(--muted); text-decoration: none; font-family: var(--font-mono); font-size: 0.8rem; }
.footer-top-link:hover { color: var(--sand); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 95;
  display: flex; align-items: center; text-decoration: none;
}
.wa-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}
.wa-icon svg { width: 30px; height: 30px; display: block; }
.wa-float:hover .wa-icon { transform: scale(1.07); background: #1fb857; }
.wa-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #17150F; color: var(--sand); border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 500; white-space: nowrap;
  padding: 0.55rem 0.9rem; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip {
  opacity: 1; transform: translateY(-50%) translateX(0);
}

/* ---------- Floating nav ---------- */
.float-nav {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center; gap: 0.2rem;
  background: rgba(23, 21, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.42rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  max-width: calc(100vw - 1.5rem);
}
.fn-link {
  color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  padding: 0.55rem 1rem; border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.fn-link:hover { color: var(--sand); }
.fn-link.active { background: rgba(207, 196, 170, 0.12); color: var(--sand); }
.fn-cta { margin-left: 0.3rem; }
.fn-menu {
  display: none;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sand); background: transparent; border: 0;
  padding: 0.6rem 0.95rem; cursor: pointer;
}
.fn-sheet {
  position: fixed; z-index: 99;
  bottom: 78px; left: 0.75rem; right: 0.75rem;
  background: var(--glass-solid);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 0.8rem; display: grid; gap: 0.15rem;
  box-shadow: var(--shadow);
}
.fn-sheet[hidden] { display: none; }
.fn-sheet a {
  color: var(--sand); text-decoration: none; font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem;
  padding: 0.8rem 0.9rem; border-radius: 12px;
}
.fn-sheet a:hover { background: rgba(207, 196, 170, 0.08); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Service modal (native <dialog>, no library) ---------- */
.service-modal {
  border: 1px solid var(--line); border-radius: 20px;
  background: #17150F; color: var(--text);
  padding: 0; width: min(760px, calc(100vw - 2rem));
  max-height: min(86vh, 900px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.service-modal::backdrop { background: rgba(8, 7, 5, 0.72); backdrop-filter: blur(4px); }
.service-modal { overflow: hidden; }
.modal-inner {
  padding: clamp(1.4rem, 3vw, 2.2rem); max-height: inherit; overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(207, 196, 170, 0.45) transparent;
}
.modal-inner::-webkit-scrollbar { width: 10px; }
.modal-inner::-webkit-scrollbar-track { background: transparent; }
.modal-inner::-webkit-scrollbar-thumb {
  background: rgba(207, 196, 170, 0.35); border-radius: 8px;
  border: 2px solid #17150F;
}
.modal-inner::-webkit-scrollbar-thumb:hover { background: rgba(207, 196, 170, 0.6); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.2rem; margin-bottom: 1.2rem; }
.modal-kicker {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand);
  margin: 0 0 0.5rem;
}
.modal-title { color: var(--sand-bright); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.5rem; }
.modal-desc { color: var(--muted); font-size: 0.98rem; margin: 0; max-width: 36rem; }
.modal-close {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--sand); background: var(--sand);
  color: var(--bg); font-size: 1.05rem; font-weight: 700; cursor: pointer; line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal-close:hover { background: var(--sand-bright); border-color: var(--sand-bright); transform: translateY(-1px); }
.modal-groups { display: grid; gap: 1.2rem; margin: 1.4rem 0 1.6rem; }
.modal-group { border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.modal-group h4 {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand);
  margin: 0 0 0.6rem;
}
.modal-group ul { margin: 0; padding-left: 1.15rem; color: var(--muted); font-size: 0.94rem; }
.modal-group li { margin-bottom: 0.35rem; }
.modal-group li::marker { color: var(--dim); }
.modal-foot {
  border-top: 1px solid var(--line-soft); padding-top: 1.3rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .about-grid, .contact-grid, .pilot-card, .rescue-card { grid-template-columns: 1fr; }
  .cards-3, .work-grid, .steps, .stack-grid { grid-template-columns: 1fr 1fr; }
  .principle-list { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cards { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .fn-link { display: none; }
  .fn-menu { display: inline-flex; }
  .topbar-cta { display: none; }
  .topbar-mail { display: none; }
  .giant-bg { opacity: 0.28; }
  .wa-float { bottom: 84px; }
  .wa-tip { display: none; }
}
@media (max-width: 620px) {
  .cards-3, .cards-2, .work-grid, .steps, .hero-cards, .about-cards, .stack-grid, .form-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 2.2rem; }
  .marquee { margin-top: 1.2rem; }
  .chip { display: none; }
  .hg-line { flex-wrap: nowrap; }
  .hero-giant { font-size: clamp(2.5rem, 13vw, 3.6rem); }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer { padding-bottom: 7rem; }
  .float-nav .btn-sm { padding: 0.58rem 0.95rem; font-size: 0.82rem; }
}

/* ---------- Motion / Awwwards layer (GSAP, progressive enhancement) ---------- */

/* Film grain overlay (created by JS only when motion is active) */
.grain {
  position: fixed; top: -60px; left: -60px;
  width: calc(100% + 120px); height: calc(100% + 120px);
  z-index: 300; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-18px, 10px); }
  40% { transform: translate(12px, -14px); }
  60% { transform: translate(-8px, -18px); }
  80% { transform: translate(14px, 12px); }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 250; pointer-events: none;
}
.scroll-progress .bar {
  display: block; height: 100%; background: var(--sand);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* Process: scroll-driven progress + per-step activation */
.steps { position: relative; }
.steps-progress {
  position: absolute; left: 0; right: 0; top: -22px; height: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.steps-progress .bar {
  display: block; height: 100%; background: var(--sand);
  transform: scaleX(0); transform-origin: 0 50%;
}
.step { transition: border-color 0.45s ease, background 0.45s ease, opacity 0.6s ease, transform 0.6s ease; }
.step.active {
  border-color: rgba(207, 196, 170, 0.45);
  background: linear-gradient(165deg, rgba(207, 196, 170, 0.13), rgba(207, 196, 170, 0.03));
}
.step.active .step-num { color: var(--sand); -webkit-text-stroke-color: transparent; }

/* Floating nav hides once the contact section is in view */
.float-nav { transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease; }
.float-nav.fn-hidden { transform: translate(-50%, 170%); opacity: 0; }

/* Cursor spotlight on cards (desktop, pointer fine only) */
@media (hover: hover) and (pointer: fine) {
  .card, .glass-card { position: relative; }
  .card::after, .glass-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(207, 196, 170, 0.13), transparent 65%);
  }
  .card:hover::after, .glass-card:hover::after { opacity: 1; }
}

/* Tilt + magnetic: remove transform transitions so GSAP owns the transform */
.project-card.tilt { transition: opacity 0.6s ease; will-change: transform; }
.btn.magnetic { transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }

/* ---------- Scroll-driven page wash (Grail-style background shifts) ---------- */
.page-wash {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
}
main, .footer { position: relative; z-index: 1; }

/* ---------- Decorative pattern chips (hero accents) ---------- */
.hero { position: relative; }
.hero .container { position: relative; z-index: 1; }
.pat-chip {
  display: none;
  position: absolute; z-index: 0;
  width: 88px; height: 88px; border-radius: 14px;
  border: 1px solid var(--line);
  opacity: 0.45;
  background-color: #1a1813;
  background-image: repeating-conic-gradient(rgba(207, 196, 170, 0.5) 0% 25%, transparent 0% 50%);
  background-size: 22px 22px;
  transform: rotate(9deg);
  animation: floaty 8s ease-in-out infinite;
}
.pat-chip-2 {
  width: 62px; height: 62px; border-radius: 10px;
  background-image: repeating-linear-gradient(45deg, rgba(207, 196, 170, 0.4) 0 6px, transparent 6px 13px);
  transform: rotate(-12deg);
  animation-delay: -3.5s;
  opacity: 0.35;
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@media (min-width: 1021px) and (prefers-reduced-motion: no-preference) {
  .pat-chip { display: block; }
  .pat-chip-1 { top: 24%; right: 5%; }
  .pat-chip-2 { top: 62%; right: 2.5%; }
}

/* ---------- Selected Work — sticky stacked sheets ---------- */
.work-stack { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.8rem; }
.work-sheet {
  min-height: min(520px, 68vh);
  background: linear-gradient(165deg, #1E1B15, #171510);
  border-color: rgba(207, 196, 170, 0.18);
}
.sheet-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 3vw, 2.6rem); align-items: start;
}
.sheet-left .card-num { font-size: 3rem; margin-bottom: 0.8rem; }
.sheet-left .project-name { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.sheet-right .project-media { min-height: 210px; margin-bottom: 1.2rem; }
@media (min-width: 1021px) {
  .work-sheet { position: sticky; }
  .work-sheet:nth-child(1) { top: 100px; z-index: 1; }
  .work-sheet:nth-child(2) { top: 128px; z-index: 2; }
  .work-sheet:nth-child(3) { top: 156px; z-index: 3; }
  .work-sheet:nth-child(4) { top: 184px; z-index: 4; }
}

/* Work CTA sheet — sand color moment in the stack */
.work-cta {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 0.2rem;
  background: var(--sand); border-color: var(--sand);
}
.work-cta h3 { color: var(--bg); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.work-cta p { color: rgba(17, 16, 13, 0.72); max-width: 34rem; }
.work-cta .section-label {
  color: rgba(17, 16, 13, 0.55); border-color: rgba(17, 16, 13, 0.25);
  background: transparent; margin-bottom: 1.2rem;
}
.work-cta .btn { margin-top: 1rem; }
.work-cta::after { display: none; }

/* ---------- Light slabs — alternating light/dark sections ---------- */
.section-light {
  width: calc(100% - 1.5rem);
  margin: 0.75rem auto;
  border-radius: 36px;
  background: #EFE9DB;
  color: #4F4A3D;
  --text: #4F4A3D;
  --muted: #7C7460;
  --line: rgba(20, 19, 15, 0.12);
  --line-soft: rgba(20, 19, 15, 0.07);
  --line-strong: rgba(20, 19, 15, 0.25);
}
.section-light h2, .section-light h3 { color: #14130F; }
.section-light .section-sub { color: #66604F; }
.section-light .card {
  background: #FBFAF6; border-color: rgba(20, 19, 15, 0.09);
  box-shadow: 0 1px 0 rgba(20, 19, 15, 0.03);
}
.section-light .service-svg { color: #14130F; }
.section-light .service-card li { color: #66604F; }
.section-light .service-card li::marker { color: rgba(20, 19, 15, 0.3); }
.section-light .btn-sand { background: #14130F; color: #EFE9DB; }
.section-light .btn-sand:hover { background: #000; }
.section-light .btn-outline { border-color: rgba(20, 19, 15, 0.3); color: #14130F; }
.section-light .btn-outline:hover { border-color: #14130F; }
.section-light .step-num { -webkit-text-stroke: 1px rgba(20, 19, 15, 0.35); }
.section-light .step p { color: #66604F; }
.section-light .step.active {
  border-color: rgba(20, 19, 15, 0.4);
  background: linear-gradient(165deg, rgba(20, 19, 15, 0.06), rgba(20, 19, 15, 0.015));
}
.section-light .step.active .step-num { color: #14130F; -webkit-text-stroke-color: transparent; }
.section-light .section-title .w { color: #CBC3AE; }
.section-light .section-title .w.on { color: #14130F; }
.section-light .about-note { color: #7C7460; border-left-color: rgba(20, 19, 15, 0.25); }
.section-light .glass-card { background: #FBFAF6; border-color: rgba(20, 19, 15, 0.09); }
.section-light .about-card dt, .section-light .contact-label { color: #6E6450; }
.section-light .about-card dd { color: #66604F; }
.section-light .mini-card { background: #F4F0E6; border-color: rgba(20, 19, 15, 0.08); }
.section-light .mini-card-solid { background: linear-gradient(165deg, #F7F3E9, #EFE9DB); }
.section-light .mini-label { color: #6E6450; }
.section-light .contact-config { background: #F4F0E6; border-color: rgba(20, 19, 15, 0.08); }
.section-light .contact-email { color: #4F4A3D; }
.section-light code { color: #14130F; }
.section-light .contact-checklist { color: #66604F; }
.section-light .contact-hint { color: #7C7460; }
.section-light .placeholder-flag { color: #6b5300; background: #FFF4CF; border-color: #d9b400; }
.section-light :focus-visible { outline-color: #14130F; }
.section-light .card::after, .section-light .glass-card::after {
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(20, 19, 15, 0.07), transparent 65%);
}

/* ---------- Editorial serif accents (trionn-style) ---------- */
h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400; font-style: italic;
  letter-spacing: -0.01em; font-size: 1.08em;
}
.hg-line:nth-child(3) .hg-text {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: -0.02em; font-size: 1.15em;
}

/* ---------- Crosshair grid marks (trionn-style) ---------- */
.section, .hero { position: relative; }
.section::before, .section::after, .hero::before, .hero::after {
  content: "+";
  position: absolute; z-index: 2; pointer-events: none;
  font-family: var(--font-mono); font-size: 1rem; line-height: 1;
  color: rgba(207, 196, 170, 0.32);
}
.section::before, .hero::before { top: 28px; left: 34px; }
.section::after, .hero::after { top: 28px; right: 34px; }
.section-light::before, .section-light::after { color: rgba(20, 19, 15, 0.28); }

/* ---------- Project card accent colors (Grail-style shifts) ---------- */
.project-card[data-accent="amber"] { --accent: #c9a24b; }
.project-card[data-accent="terracotta"] { --accent: #c2704e; }
.project-card[data-accent="sage"] { --accent: #7e8f6a; }
.project-card { transition: border-color 0.35s ease, background 0.35s ease, opacity 0.6s ease, transform 0.6s ease; }
.project-card:hover { border-color: var(--accent, var(--line-strong)); }
.project-card .card-num { transition: color 0.35s ease, -webkit-text-stroke-color 0.35s ease; }
.project-card:hover .card-num { color: var(--accent); -webkit-text-stroke-color: transparent; }
.project-card .project-media {
  background-image: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 13%, transparent) 0 12px,
    transparent 12px 24px);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
}
.project-card:hover .project-media { color: color-mix(in srgb, var(--accent) 80%, #ffffff); }

/* Tilt-enabled cards: GSAP owns transform; keep only non-transform transitions */
.project-card.tilt { transition: border-color 0.35s ease, background 0.35s ease; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .section-title .w { color: var(--sand); }
  .marquee-track { animation: none; }
}
