/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --bg:        #F5F0E8;
  --bg2:       #EDE8DC;
  --bg3:       #E4DDD0;
  --ink:       #2C2416;
  --ink2:      #5C4A35;
  --ink3:      #8B7355;
  --accent:    #8B7355;
  --warm:      #C4A882;
  --cream:     #FAF8F4;
  --key-face:  #EAE4D8;
  --key-side:  #A09070;
  --key-hi:    #D4B896;
  --shadow:    rgba(44,36,22,0.15);
  --mono:      'Courier Prime', 'Courier New', monospace;
  --display:   'Special Elite', 'Courier New', monospace;
  --r:         4px;
  --container: min(1240px, calc(100vw - 48px));
}

/* ── RESET ───────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--mono);
  background: var(--bg);
  background-image: linear-gradient(rgba(139,115,85,0.07) 1px, transparent 1px);
  background-size: 100% 32px;
  background-position: 0 0;
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--warm); color: var(--ink); }

/* ── SCROLL PROGRESS ─────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 2px;
  z-index: 300; pointer-events: none;
  background: rgba(139,115,85,0.12);
}
.scroll-progress-bar {
  display: block; width: 0; height: 100%;
  background: var(--warm);
  transform-origin: left center;
}

/* ── CURSOR ──────────────────────────────────────────────── */
#cdot, #cring {
  position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  will-change: left, top;
}
#cdot {
  width: 7px; height: 7px;
  background: var(--ink);
  top: 0; left: 0;
  transition: background .2s ease;
}
#cring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink);
  opacity: .5;
  transition: width .25s ease, height .25s ease, opacity .2s, border-color .2s ease;
}
body.cursor-hover #cring { width: 52px; height: 52px; opacity: .3; }
body.cursor-light #cdot { background: var(--cream); }
body.cursor-light #cring { border-color: var(--cream); }

/* ── NAV ─────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px; display: flex; align-items: center;
  padding: 0 48px;
  transition: background .3s, box-shadow .3s;
}
#nav.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(139,115,85,.3);
}
.nav-inner {
  width: 100%; max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--display); font-size: 26px;
  letter-spacing: .12em; color: var(--ink);
  position: relative; display: inline-flex;
  flex-direction: column; align-items: flex-start;
  text-shadow: 0 0 0 transparent;
  animation: logoBreath 4s ease-in-out infinite;
  text-decoration: none;
}
@keyframes logoBreath {
  0%,100% { letter-spacing: .12em; text-shadow: 0 0 0 transparent; }
  50% { letter-spacing: .18em; text-shadow: 0 0 12px rgba(139,115,85,.15); }
}
.logo::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--warm) 50%, transparent);
  opacity: 0;
  animation: logoUnderline 4s ease-in-out infinite;
}
@keyframes logoUnderline {
  0%,100% { opacity: 0; transform: scaleX(0); }
  40%,60% { opacity: .6; transform: scaleX(1); }
}
.logo:hover { animation-play-state: paused; }
.logo:hover::after { animation-play-state: paused; opacity: .8; transform: scaleX(1); }
.logo-sub {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .22em; color: var(--warm);
  border-top: 1px solid var(--warm);
  padding-top: 4px; margin-top: 4px;
  width: 100%; text-transform: uppercase;
  text-align: center; animation: none;
}

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 12px; letter-spacing: .08em;
  color: var(--ink2);
  position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 1px; background: var(--ink);
  transition: right .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-cta {
  font-size: 12px !important;
  padding: 9px 22px !important;
  border: 1.5px solid var(--ink) !important;
  border-radius: var(--r) !important;
  transition: background .2s, color .2s !important;
}
.nav-cta:hover { background: var(--ink) !important; color: var(--bg) !important; }
.nav-cta::after { display: none !important; }

/* active state — ink stamp block */
.nav-links a:not(.nav-cta).active {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 5px 12px;
  border-radius: var(--r);
  animation: navStamp .35s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.nav-links a:not(.nav-cta).active::after { display: none !important; }
.nav-links a.nav-cta.active {
  background: var(--ink) !important;
  color: var(--cream) !important;
  border-color: var(--ink) !important;
}
@keyframes navStamp {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.hamburger {
  display: none; background: none; border: none;
  font-size: 20px; cursor: none; color: var(--ink);
}

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  padding-top: 64px;
  position: relative; overflow: hidden;
}
.hero-margin-line {
  position: absolute; left: 80px; top: 0; bottom: 0;
  width: 1px; background: rgba(196,0,0,.18);
  pointer-events: none;
}
.hero-text {
  max-width: 1240px; margin: 0 auto;
  padding: 60px 48px 0;
  width: 100%; position: relative;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 28px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s ease, transform .7s ease;
}
.hero-headline {
  font-family: var(--display);
  font-size: clamp(52px, 8.5vw, 128px);
  line-height: 1.05; color: var(--ink);
  min-height: 2.3em; margin-bottom: 28px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease .15s, transform .7s ease .15s;
}
.blink {
  display: inline-block; color: var(--accent);
  animation: blink .85s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub {
  font-size: 18px; color: var(--ink2); line-height: 1.6;
  max-width: 560px; margin-bottom: 44px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s ease .3s, transform .7s ease .3s;
}
.hero-btns {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s ease .45s, transform .7s ease .45s;
}
.hero-in { opacity: 1 !important; transform: none !important; }

.btn-ink {
  font-family: var(--mono); font-size: 14px;
  padding: 14px 36px;
  background: var(--ink); color: var(--bg);
  border: 2px solid var(--ink); border-radius: var(--r);
  letter-spacing: .06em;
  transition: background .2s, border-color .2s, transform .1s;
  display: inline-block;
}
.btn-ink:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.btn-ghost {
  font-family: var(--mono); font-size: 14px;
  color: var(--ink2); letter-spacing: .06em;
  transition: color .2s; display: inline-block;
}
.btn-ghost:hover { color: var(--ink); }

.btn-warm {
  font-family: var(--mono); font-size: 15px;
  padding: 17px 44px;
  background: var(--warm); color: var(--ink);
  border: none; border-radius: var(--r);
  letter-spacing: .06em;
  transition: background .2s, transform .15s;
  display: inline-block; cursor: none;
}
.btn-warm:hover { background: var(--cream); transform: translateY(-3px); }

/* scroll badge */
.scroll-badge {
  position: absolute; bottom: 48px; right: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; transition: opacity .6s ease 1s;
}
.scroll-badge.hero-in { opacity: 1 !important; }
.scroll-line {
  width: 1px; height: 48px; background: var(--ink3);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ''; position: absolute;
  top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--ink);
  animation: scrollDrop 1.6s 1.8s ease-in-out infinite;
}
@keyframes scrollDrop { 0% { top: -100%; } 100% { top: 100%; } }
.scroll-label {
  font-size: 10px; letter-spacing: .2em;
  color: var(--ink3); writing-mode: vertical-rl;
  text-transform: uppercase;
}

/* ── KEYBOARD ────────────────────────────────────────────── */
.keyboard-wrapper {
  flex: 1; display: flex; align-items: flex-end; justify-content: center;
  padding: 40px 20px 0;
  opacity: 0; transform: translateY(20px);
  transition: opacity .9s ease .55s, transform .9s ease .55s;
  overflow: hidden;
}
.kb {
  display: flex; flex-direction: column; gap: 5px;
  padding: 20px 18px 18px;
  background: var(--bg3);
  border-radius: 14px;
  box-shadow:
    0 3px 0 var(--ink3),
    0 6px 24px var(--shadow),
    inset 0 1px 0 rgba(255,255,255,.6);
  transform-origin: bottom center;
  width: fit-content;
}
.kr { display: flex; gap: 4px; }
.key {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: var(--ink2);
  background: var(--key-face);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  height: 38px; width: 40px;
  flex-shrink: 0;
  box-shadow: 0 3px 0 var(--key-side), 0 4px 8px var(--shadow);
  transform: translateY(0);
  transition: background .08s;
  user-select: none;
  will-change: transform, box-shadow;
}
.key.lit { background: var(--key-hi); color: var(--ink); }
.key.pressed {
  transform: translateY(3px) !important;
  box-shadow: 0 0 0 var(--key-side), 0 1px 2px var(--shadow) !important;
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.rule { width: 100%; height: 1px; background: rgba(139,115,85,.22); }

/* ── SECTION BASE ────────────────────────────────────────── */
.sec {
  padding: 108px 48px;
  max-width: 1240px; margin: 0 auto;
}
.eyebrow {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 18px;
}
.sec-title {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 66px);
  line-height: 1.1; color: var(--ink);
  margin-bottom: 56px;
}

/* ── REVEAL ──────────────────────────────────────────────── */
.r {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s ease, transform .8s ease;
}
.r.v { opacity: 1; transform: none; }
.r.d1 { transition-delay: .1s; }
.r.d2 { transition-delay: .2s; }
.r.d3 { transition-delay: .3s; }
.r.d4 { transition-delay: .4s; }

/* for inner pages using [data-reveal] */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── SERVICES ────────────────────────────────────────────── */
#services { border-top: 1px solid rgba(139,115,85,.22); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.svc-card:nth-child(4) { grid-column: 2; }
.svc-card {
  padding: 44px 36px;
  border: 1px solid rgba(139,115,85,.22);
  background: var(--bg);
  position: relative; overflow: hidden;
  transition: background .25s;
}
.svc-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 100%;
  height: 3px; background: var(--warm);
  transition: right .35s ease;
}
.svc-card:hover::after { right: 0; }
.svc-card:hover { background: var(--bg2); }
.svc-num { font-size: 11px; letter-spacing: .2em; color: var(--ink3); margin-bottom: 20px; }
.svc-name { font-family: var(--display); font-size: 26px; color: var(--ink); margin-bottom: 14px; line-height: 1.2; }
.svc-hook { font-size: 13px; color: var(--ink3); letter-spacing: .04em; font-style: italic; margin-bottom: 16px; }
.svc-desc { font-size: 14px; color: var(--ink2); line-height: 1.7; }

/* ── PROCESS ─────────────────────────────────────────────── */
#process-outer {
  background: var(--ink);
  border-top: 1px solid rgba(139,115,85,.22);
}
#process {
  padding: 108px 48px;
  max-width: 1240px; margin: 0 auto;
}
#process .eyebrow { color: var(--warm); opacity: .8; }
#process .sec-title { color: var(--cream); }
.proc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.proc-step { border-top: 1px solid rgba(245,240,232,.15); padding-top: 36px; }
.proc-n {
  font-family: var(--display); font-size: 64px;
  color: var(--warm); opacity: .35; line-height: 1; margin-bottom: 20px;
}
.proc-name { font-family: var(--display); font-size: 30px; color: var(--cream); margin-bottom: 16px; }
.proc-desc { font-size: 14px; color: rgba(245,240,232,.6); line-height: 1.8; }

/* ── PROJECTS ────────────────────────────────────────────── */
#projects { border-top: 1px solid rgba(139,115,85,.22); }
.proj-list { display: flex; flex-direction: column; }
.proj-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(139,115,85,.18);
  cursor: none;
  transition: padding-left .25s ease;
}
.proj-row:first-child { border-top: 1px solid rgba(139,115,85,.18); }
.proj-row:hover { padding-left: 16px; }
.proj-name {
  font-family: var(--display);
  font-size: clamp(24px, 3.5vw, 44px);
  color: var(--ink); flex: 1;
}
.proj-name-wrap { flex: 1; }
.proj-sub {
  font-size: 14px; color: var(--ink3);
  line-height: 1.55; margin-top: 6px;
  font-style: italic; max-width: 480px;
}
.proj-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-tag {
  font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink3);
  padding: 5px 12px;
  border: 1px solid rgba(139,115,85,.35);
  border-radius: 2px;
}

/* ── ABOUT ───────────────────────────────────────────────── */
#about { border-top: 1px solid rgba(139,115,85,.22); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-text p {
  font-size: 16px; line-height: 1.85;
  color: var(--ink2); margin-bottom: 20px;
}
.about-text p strong { color: var(--ink); font-weight: 700; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.stat-n {
  font-family: var(--display); font-size: 64px;
  color: var(--ink); line-height: 1;
}
.stat-l {
  font-size: 12px; letter-spacing: .1em;
  color: var(--ink3); margin-top: 8px; text-transform: uppercase;
}

/* ── TESTIMONIALS (hidden) ───────────────────────────────── */
#testi-outer { display: none; }

/* ── BLOG ────────────────────────────────────────────────── */
#blog { border-top: 1px solid rgba(139,115,85,.22); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.blog-card {
  border: 1px solid rgba(139,115,85,.2);
  border-radius: var(--r); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px var(--shadow); }
.blog-thumb {
  height: 168px; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(139,115,85,.18);
  font-family: var(--display); font-size: 40px; color: var(--ink3);
  letter-spacing: .1em;
  background-size: cover; background-position: center;
}
.blog-body { padding: 28px; }
.blog-date { font-size: 10px; letter-spacing: .15em; color: var(--ink3); margin-bottom: 10px; text-transform: uppercase; }
.blog-title { font-family: var(--display); font-size: 21px; color: var(--ink); line-height: 1.3; margin-bottom: 10px; }
.blog-snip { font-size: 13px; color: var(--ink2); line-height: 1.65; }
.blog-more {
  display: inline-block; margin-top: 18px;
  font-size: 13px; color: var(--accent); letter-spacing: .05em;
}
.blog-more:hover { text-decoration: underline; }

/* ── CTA ─────────────────────────────────────────────────── */
#cta-outer {
  background: var(--ink);
  border-top: 1px solid rgba(139,115,85,.22);
}
#cta {
  padding: 128px 48px; max-width: 1240px;
  margin: 0 auto; text-align: center;
}
.cta-eyebrow {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--warm); opacity: .7; margin-bottom: 28px;
}
.cta-title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 88px);
  color: var(--cream); line-height: 1.08;
  margin-bottom: 24px;
}
.cta-sub { font-size: 17px; color: rgba(245,240,232,.65); line-height: 1.6; margin-bottom: 52px; }
.cta-contacts {
  display: flex; justify-content: center; gap: 56px;
  margin-top: 64px; flex-wrap: wrap;
}
.cta-item-label {
  font-size: 10px; letter-spacing: .2em;
  color: var(--warm); opacity: .6;
  margin-bottom: 6px; text-transform: uppercase;
}
.cta-item-val { font-size: 14px; color: rgba(245,240,232,.85); }
.cta-item-val a { color: rgba(245,240,232,.85); }
.cta-item-val a:hover { color: var(--cream); text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(245,240,232,.1);
  padding: 28px 48px;
}
.foot-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; gap: 24px; flex-wrap: wrap;
}
.foot-logo {
  font-family: var(--display); font-size: 20px;
  color: var(--bg); letter-spacing: .12em;
  display: inline-flex; flex-direction: column; align-items: flex-start;
  animation: footLogoGlow 5s ease-in-out infinite;
  text-decoration: none;
}
.foot-logo-sub {
  font-family: var(--mono); font-size: 8px;
  letter-spacing: .22em; color: rgba(196,168,130,.6);
  border-top: 1px solid rgba(196,168,130,.4);
  padding-top: 3px; margin-top: 4px;
  width: 100%; text-transform: uppercase;
  text-align: center; animation: none;
}
@keyframes footLogoGlow {
  0%,100% { text-shadow: 0 0 0 transparent; letter-spacing: .12em; }
  50% { text-shadow: 0 0 16px rgba(196,168,130,.3); letter-spacing: .16em; }
}
.foot-copy { font-size: 12px; color: rgba(245,240,232,.3); }
.foot-links { display: flex; gap: 24px; }
.foot-link {
  font-size: 12px; color: rgba(245,240,232,.45);
  letter-spacing: .08em; transition: color .2s;
}
.foot-link:hover { color: rgba(245,240,232,.85); }

/* ── FLASH MESSAGES ──────────────────────────────────────── */
.flash-stack {
  position: fixed; top: 80px; right: 18px;
  z-index: 30; display: grid; gap: 10px;
}
.flash {
  padding: 14px 16px; border-radius: var(--r);
  background: var(--bg2);
  border: 1px solid rgba(139,115,85,.3);
  font-size: 14px; color: var(--ink);
  box-shadow: 0 8px 24px var(--shadow);
}
.flash-success { border-color: rgba(75,218,150,.4); }
.flash-error { border-color: rgba(255,80,80,.3); }

/* ── INNER PAGES ─────────────────────────────────────────── */
.container {
  width: var(--container);
  margin: 0 auto;
}
.narrow { max-width: 820px; }

.page-hero {
  padding: 108px 48px 72px;
  max-width: 1240px; margin: 0 auto;
}
.page-hero .section-kicker,
.page-hero .eyebrow {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 18px; display: block;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.08; color: var(--ink);
  margin-bottom: 20px;
}
.page-hero p { font-size: 17px; color: var(--ink2); line-height: 1.7; max-width: 60ch; }

.section { padding: 72px 48px; max-width: 1240px; margin: 0 auto; }
.section-dark {
  background: var(--ink);
  max-width: none; margin: 0;
  padding: 72px 0;
}
.section-dark .section-inner { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

/* section kicker for inner pages */
.section-kicker {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 18px; display: block;
}
.section-kicker::before { display: none; }

/* glass panel restyled for warm theme */
.glass-panel {
  background: var(--bg2);
  border: 1px solid rgba(139,115,85,.22);
  border-radius: var(--r);
}

/* card grid */
.card-grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: repeat(2, 1fr); }

.feature-card {
  padding: 32px;
  transition: background .2s;
}
.feature-card:hover { background: var(--bg3); }
.feature-card h3 {
  font-family: var(--display); font-size: 22px;
  color: var(--ink); margin-bottom: 12px;
}
.feature-card .card-kicker {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 14px; display: block;
}
.feature-card p { font-size: 14px; color: var(--ink2); line-height: 1.7; }

.tag-list {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 8px; padding: 0; margin: 20px 0 0;
}
.tag-list li {
  padding: 6px 14px;
  border: 1px solid rgba(139,115,85,.3);
  border-radius: 2px;
  color: var(--ink3); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
}
.text-link {
  display: inline-block; margin-top: 18px;
  font-size: 13px; color: var(--accent);
}
.text-link:hover { text-decoration: underline; }

/* stack list (process inner pages) */
.split-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.split-grid h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1; color: var(--ink); margin-bottom: 16px;
}
.stack-list { display: grid; gap: 18px; }
.stack-item {
  display: grid; grid-template-columns: 44px 1fr;
  gap: 16px; padding: 24px;
}
.stack-item strong {
  font-family: var(--display); font-size: 28px;
  color: var(--warm); opacity: .6; line-height: 1;
}
.stack-item h3 { font-family: var(--display); font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.stack-item p { font-size: 14px; color: var(--ink2); line-height: 1.7; }

/* project / portfolio pages */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { overflow: hidden; }
.project-image { min-height: 220px; background-position: center; background-size: cover; }
.project-copy { padding: 24px; }
.project-copy h3 {
  font-family: var(--display); font-size: 22px;
  color: var(--ink); margin-bottom: 10px;
}
.project-copy p { font-size: 14px; color: var(--ink2); line-height: 1.65; }

/* blog inner pages */
.blog-grid-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.filter-bar {
  display: grid; grid-template-columns: 1fr 220px auto;
  gap: 12px; padding: 16px;
  margin-bottom: 28px;
}
.filter-bar input,
.filter-bar select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid rgba(139,115,85,.25);
  border-radius: var(--r);
  padding: 12px 16px;
  color: var(--ink); font: inherit;
}
.filter-bar input::placeholder { color: var(--ink3); }
.filter-bar button {
  padding: 12px 20px;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: var(--r);
  font: inherit; font-size: 13px;
  letter-spacing: .06em; cursor: pointer;
}

/* blog article page */
.blog-article { padding: 72px 0 56px; }
.article-body {
  padding: 28px;
  background: var(--bg2);
  border: 1px solid rgba(139,115,85,.2);
  border-radius: var(--r);
}
.article-body p, .article-body li { font-size: 15px; color: var(--ink2); line-height: 1.82; margin-bottom: 16px; }
.article-body h2, .article-body h3 {
  font-family: var(--display); color: var(--ink);
  margin: 28px 0 14px;
}
.article-body a { color: var(--accent); text-decoration: underline; }
.article-meta { font-size: 12px; color: var(--ink3); letter-spacing: .1em; margin-bottom: 16px; }
.blog-category {
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink3);
}
.blog-category::before { display: none; }

/* contact page */
.contact-grid {
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
}
.contact-panel, .contact-side { padding: 28px; }
.contact-panel h2, .contact-side h2 {
  font-family: var(--display); font-size: 28px;
  color: var(--ink); margin-bottom: 16px;
}
.contact-side p { font-size: 14px; color: var(--ink2); line-height: 1.7; margin-bottom: 16px; }
.form-embed-shell {
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid rgba(139,115,85,.2);
  background: #fff;
  margin-top: 16px;
}
.form-embed-shell iframe { width: 100%; min-height: 980px; background: #ffffff; display: block; }
.contact-points { display: grid; gap: 10px; margin-top: 20px; }
.contact-points span {
  color: var(--ink3); text-transform: uppercase;
  font-size: 11px; letter-spacing: .16em;
}
.contact-points a { font-size: 14px; color: var(--ink); }
.contact-points a:hover { text-decoration: underline; }

/* about / principles */
.card-stack { display: grid; gap: 16px; }
.card-stack .glass-panel { padding: 24px; }
.card-stack h3 {
  font-family: var(--display); font-size: 20px;
  color: var(--ink); margin-bottom: 8px;
}
.card-stack p { font-size: 14px; color: var(--ink2); line-height: 1.7; }

/* section head for inner pages */
.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1; color: var(--ink); margin-bottom: 12px;
}
.section-head p { font-size: 15px; color: var(--ink2); line-height: 1.7; max-width: 60ch; }

/* cta band on inner pages */
.cta-band { padding-bottom: 80px; }
.cta-panel {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px; padding: 40px;
  background: var(--ink); border-radius: var(--r);
}
.cta-panel .section-kicker { color: var(--warm); }
.cta-panel h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 40px);
  color: var(--cream); line-height: 1.1; margin-bottom: 0;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 28px;
  background: var(--warm); color: var(--ink);
  border: none; border-radius: var(--r);
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  letter-spacing: .06em; cursor: none;
  transition: background .2s, transform .15s;
}
.button:hover { background: var(--cream); transform: translateY(-2px); }
.button-ghost {
  background: transparent;
  border: 1.5px solid rgba(139,115,85,.4);
  color: var(--ink2);
}
.button-ghost:hover { background: var(--bg2); color: var(--ink); border-color: var(--ink3); }
.button-sm { padding: 10px 20px; font-size: 12px; }
.empty-state { color: var(--ink3); padding: 24px 4px; font-size: 14px; }

/* service detail */
.service-panel { padding: 32px; }
.service-panel h2 {
  font-family: var(--display); font-size: 28px;
  color: var(--ink); margin-bottom: 12px;
}
.service-panel p { font-size: 15px; color: var(--ink2); line-height: 1.7; }
.detail-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.detail-list li {
  position: relative; padding-left: 18px;
  font-size: 14px; color: var(--ink2); line-height: 1.6;
}
.detail-list li::before {
  content: '–';
  position: absolute; left: 0;
  color: var(--warm);
}

/* ── KEYFRAMES ───────────────────────────────────────────── */
@keyframes footLogoGlow {
  0%,100% { text-shadow: 0 0 0 transparent; letter-spacing: .12em; }
  50% { text-shadow: 0 0 16px rgba(196,168,130,.3); letter-spacing: .16em; }
}

/* ── PAGE TRANSITION — book page turn ───────────────────── */

/* Cover screen immediately when arriving via a transition —
   this class is set by the inline <head> script before first paint */
/* no !important — allows the pt-out animation to override this */
html.pt-loading #pt {
  transform: translateX(0);
}

#pt {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--bg3);
  background-image: linear-gradient(rgba(139,115,85,0.12) 1px, transparent 1px);
  background-size: 100% 32px;
  pointer-events: none;
  will-change: transform;
  /* parked off-screen to the right */
  transform: translateX(100%);
}

/* Fold crease — the dark line running down the leading edge of the turning page */
#pt::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 6px;
  background: rgba(44,36,22,.45);
  box-shadow: 0 0 28px 12px rgba(44,36,22,.22);
}

/* Subtle "paper thickness" shadow on the right (trailing) edge */
#pt::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 70px;
  background: linear-gradient(to left, rgba(44,36,22,.14), transparent);
}

/* ENTERING — page sweeps in from the right, decelerates as it lands */
#pt.pt-in {
  animation: ptBookIn .85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* EXITING — page peels away to the left, accelerates as it lifts */
#pt.pt-out {
  animation: ptBookOut .7s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes ptBookIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0%);   }
}

@keyframes ptBookOut {
  from { transform: translateX(0%);    }
  to   { transform: translateX(-100%); }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 860px) {
  #nav { padding: 0 24px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hamburger { display: block; }
  .nav-links.is-open {
    position: absolute; top: 64px; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: flex-start;
    background: var(--bg); padding: 20px 24px;
    box-shadow: 0 4px 16px var(--shadow);
    gap: 20px;
  }
  .nav-links.is-open a { display: block; font-size: 14px; }

  .hero-text, .sec, #process, #cta { padding-left: 24px; padding-right: 24px; }
  .hero-margin-line, .scroll-badge { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card:nth-child(4) { grid-column: 1; }
  .proc-steps { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  footer { padding: 24px; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-hero { padding: 80px 24px 48px; }
  .section { padding: 56px 24px; }
  .split-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .project-grid, .blog-grid-inner { grid-template-columns: 1fr; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .filter-bar { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-btns { flex-direction: column; }
  .btn-ink, .btn-warm { width: 100%; text-align: center; }
}
