/* ==========================================================================
   نقاشی ساختمان رحیمی — Editorial Studio UI  (v2, built from scratch)
   Design language: dark/light editorial rhythm, bronze accent, asymmetric grid.
   ========================================================================== */

@font-face { font-family: "Modam"; src: url("fonts/Modam-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Modam"; src: url("fonts/Modam-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Modam"; src: url("fonts/Modam-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Modam"; src: url("fonts/Modam-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #14161a;
  --ink-soft: #5c626c;
  --dark: #101114;
  --dark-2: #16181d;
  --dark-3: #1e2127;
  --light: #f4f1ea;
  --cream: #ece7db;
  --inv: #f3f0e9;
  --inv-soft: #a7abb2;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: #e0dacd;
  --accent: #c07d4e;
  --accent-2: #d8a878;
  --shell: 1280px;
  --font: "Modam", Tahoma, system-ui, sans-serif;
  --latin: "Modam", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--inv);
  background: var(--dark);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }

.shell { width: min(var(--shell), calc(100% - 3rem)); margin-inline: auto; }

/* Section base ------------------------------------------------------------ */
/* Section order: show Work (نمونه‌کارها) right after the hero, before the studio manifesto */
main { display: flex; flex-direction: column; }
.hero { order: 1; }
.marquee { order: 2; }
.work { order: 3; }
.studio { order: 4; }
.stats { order: 5; }
.services { order: 6; }
.team { order: 7; }
.process { order: 8; }
.tutorials { order: 9; }
.promise { order: 10; }
.faq { order: 11; }
.contact { order: 12; }

.section-dark { background: var(--dark); color: var(--inv); }
.section-light { background: var(--light); color: var(--ink); }
.section-cream { background: var(--cream); color: var(--ink); }
.studio, .stats, .services, .work, .process, .team, .tutorials, .promise, .faq, .contact { padding-block: clamp(3.25rem, 6.5vw, 6rem); }

/* Latin label helper (safe to letter-space) */
.hero-eyebrow span, .wordmark-text i, .hero-scroll em { font-family: var(--latin); }

/* Scroll progress --------------------------------------------------------- */
.scroll-progress {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  height: 2px; width: 0%; z-index: 120;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.1s linear;
}

/* ===== Masthead ===== */
.masthead {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 90;
  padding-block: 1.15rem;
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead.is-stuck {
  background: rgba(16, 17, 20, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line-dark);
  padding-block: 0.7rem;
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.wordmark { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--inv); }
.wordmark-mark { width: 36px; height: 36px; border-radius: 9px; flex: none; display: block; }
.wordmark-text { display: grid; gap: 5px; line-height: 1; }
.wordmark-text b { font-size: 1.15rem; font-weight: 700; line-height: 1; }
.wordmark-text i { font-size: 0.58rem; font-style: normal; letter-spacing: 0.2em; text-transform: uppercase; color: var(--inv-soft); line-height: 1; }

.rail-nav { display: flex; gap: 2rem; }
.rail-nav a { position: relative; font-size: 0.92rem; color: var(--inv-soft); transition: color 0.25s; }
.rail-nav a::after { content: ""; position: absolute; inset-block-end: -6px; inset-inline: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: inline-end; transition: transform 0.3s var(--ease); }
.rail-nav a:hover, .rail-nav a.is-active { color: var(--inv); }
.rail-nav a:hover::after, .rail-nav a.is-active::after { transform: scaleX(1); transform-origin: inline-start; }

.masthead-actions { display: flex; align-items: center; gap: 1.1rem; }
.ghost-call { font-size: 0.9rem; color: var(--inv); border: 1px solid var(--line-dark); border-radius: 100px; padding: 0.5rem 1.1rem; transition: border-color 0.25s, background-color 0.25s; }
.ghost-call:hover { border-color: var(--accent); background: rgba(192, 125, 78, 0.12); }
.menu-btn { width: 44px; height: 44px; display: none; place-content: center; border: 1px solid var(--line-dark); border-radius: 100px; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--inv); margin: 2px auto; transition: transform 0.3s; }

/* ===== Overlay nav ===== */
.overlay-nav {
  position: fixed; inset: 0; z-index: 110; background: var(--dark);
  display: grid; align-content: center;
  opacity: 0; transform: translateY(-8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.overlay-nav.is-open { opacity: 1; transform: none; }
.overlay-close { position: absolute; inset-block-start: 2rem; inset-inline-start: 2rem; width: 52px; height: 52px; border: 1px solid var(--line-dark); border-radius: 100px; }
.overlay-close::before, .overlay-close::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 20px; height: 1.5px; background: var(--inv); transform: translate(-50%, -50%) rotate(45deg); }
.overlay-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.overlay-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: end; }
.overlay-links { display: grid; gap: 0.3rem; }
.overlay-links a { display: flex; align-items: baseline; gap: 1rem; font-size: clamp(1.5rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.25; color: var(--inv); transition: color 0.25s, padding-inline-start 0.35s var(--ease); }
.overlay-links a::before { content: attr(data-i); font-family: var(--latin); font-size: 0.85rem; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; }
.overlay-links a:hover { color: var(--accent-2); padding-inline-start: 0.8rem; }
.overlay-aside { border-inline-start: 1px solid var(--line-dark); padding-inline-start: 2rem; }
.overlay-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--inv-soft); font-family: var(--latin); }
.overlay-phone { display: block; font-size: 1.7rem; font-weight: 700; margin-block: 0.6rem 1.4rem; }
.overlay-socials { display: flex; gap: 1.2rem; margin-bottom: 1.4rem; }
.overlay-socials a { color: var(--inv-soft); border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; transition: color 0.25s, border-color 0.25s; }
.overlay-socials a:hover { color: var(--inv); border-color: var(--accent); }
.overlay-areas { color: var(--inv-soft); font-size: 0.9rem; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; background: var(--dark); overflow: hidden; padding-block: 9rem 4.5rem; }
.hero-frame { position: absolute; inset: 0; z-index: 0; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: grayscale(0.12) contrast(1.03) brightness(0.66); }
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 17, 20, 0.55) 0%, rgba(16, 17, 20, 0.08) 32%, rgba(16, 17, 20, 0.86) 100%),
    linear-gradient(to left, rgba(16, 17, 20, 0.5) 0%, rgba(16, 17, 20, 0) 60%);
}
.hero-frame-tag { position: absolute; inset-block-end: 1.6rem; inset-inline-start: auto; inset-inline-end: 1.6rem; z-index: 2; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--latin); color: var(--inv); border: 1px solid var(--line-dark); background: rgba(16, 17, 20, 0.5); backdrop-filter: blur(6px); padding: 0.4rem 0.8rem; border-radius: 100px; }
.hero-content { position: relative; z-index: 3; width: 100%; max-width: 780px; margin-inline-end: auto; }
.hero-eyebrow { font-size: 0.82rem; color: var(--inv); margin-bottom: 1.4rem; display: inline-flex; align-items: center; gap: 0.7rem; }
.hero-eyebrow span { color: var(--accent-2); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }
.hero-title { font-size: clamp(2.15rem, 5.4vw, 4.6rem); font-weight: 700; line-height: 1.22; letter-spacing: 0; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent-2); font-style: normal; }
.hero-meta { display: grid; grid-template-columns: 1fr auto; gap: 1.6rem 3rem; align-items: end; margin-top: 2rem; max-width: 760px; }
.hero-lede { color: var(--inv-soft); font-size: clamp(0.98rem, 1.4vw, 1.15rem); max-width: 52ch; }
.hero-cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-scroll { position: absolute; inset-block-end: 2rem; inset-inline-start: max(1.5rem, (100% - var(--shell)) / 2); inset-inline-end: auto; z-index: 3; display: grid; justify-items: center; gap: 0.6rem; color: var(--inv-soft); }
.hero-scroll span { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); }
.hero-scroll em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; writing-mode: vertical-rl; }

/* Buttons ----------------------------------------------------------------- */
.btn-solid, .btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 52px; padding: 0 1.7rem; font-size: 0.95rem; font-weight: 600; border-radius: 100px; transition: transform 0.25s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: #a96639; transform: translateY(-2px); }
.btn-solid.full { width: 100%; }
.btn-line { border: 1px solid var(--line-dark); color: var(--inv); }
.btn-line:hover { border-color: var(--accent); color: var(--accent-2); }
.section-light .btn-line, .section-cream .btn-line { border-color: var(--ink); color: var(--ink); }
.section-light .btn-line:hover, .section-cream .btn-line:hover { background: var(--ink); color: var(--light); }
.btn-line.light { border-color: var(--line-dark); color: var(--inv); }

/* ===== Marquee ===== */
.marquee { background: var(--accent); color: #fff; overflow: hidden; padding-block: 0.9rem; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; gap: 1.6rem; animation: marquee 34s linear infinite; }
.marquee-track span { font-size: 1.05rem; font-weight: 600; }
.marquee-track i { font-style: normal; opacity: 0.6; font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(50%); } }

/* Section heads ----------------------------------------------------------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2.2rem, 4vw, 4rem); }
.sec-kicker { display: inline-block; font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 0.9rem; }
.sec-kicker.light { color: var(--accent-2); }
.sec-title { font-size: clamp(1.6rem, 3.2vw, 2.7rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.sec-title.light { color: var(--inv); }
.sec-note { max-width: 40ch; color: var(--ink-soft); font-size: 1rem; }
.sec-note.light { color: var(--inv-soft); }

/* ===== Studio / manifesto ===== */
.studio-grid { display: grid; grid-template-columns: 0.35fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.studio-index { position: sticky; top: 7rem; align-self: start; display: grid; gap: 0.4rem; }
.studio-index .idx { font-family: var(--latin); font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 700; color: var(--accent); line-height: 1; }
.studio-index .idx-label { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.studio-head { font-size: clamp(1.55rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.3; margin-bottom: 2.2rem; }
.studio-head span { color: var(--accent); }
.studio-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.studio-cols p { color: var(--ink-soft); font-size: 1.02rem; }
.studio-marks { list-style: none; display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line-light); }
.studio-marks li { position: relative; padding-inline-start: 1.4rem; font-weight: 600; }
.studio-marks li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.62em; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* ===== Stats ===== */
.stats { border-block: 1px solid var(--line-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 2rem; }
.stat { border-inline-start: 1px solid var(--line-dark); padding-inline-start: 1.6rem; }
.stat-num { display: block; font-family: var(--latin); font-size: clamp(2.2rem, 4.4vw, 3.8rem); font-weight: 700; line-height: 1; color: var(--inv); white-space: nowrap; }
.stat-cap { display: block; margin-top: 0.8rem; color: var(--inv-soft); font-size: 0.92rem; }
.stat-cta { display: grid; align-content: center; gap: 1.1rem; }
.stat-cta p { color: var(--inv-soft); }

/* ===== Services index ===== */
.svc-index { border-top: 1px solid var(--line-light); }
.svc-row { display: grid; grid-template-columns: 4rem 1.1fr 1.4fr 3rem; align-items: center; gap: 1.5rem; padding-block: clamp(1.4rem, 2.6vw, 2.3rem); border-bottom: 1px solid var(--line-light); transition: padding-inline 0.4s var(--ease), background-color 0.35s; }
.svc-no { font-family: var(--latin); font-size: 0.95rem; color: var(--accent); font-weight: 600; }
.svc-name { font-size: clamp(1.15rem, 2.4vw, 1.9rem); font-weight: 700; transition: color 0.3s; }
.svc-desc { color: var(--ink-soft); font-size: 0.98rem; }
.svc-go { justify-self: end; width: 44px; height: 44px; border: 1px solid var(--line-light); border-radius: 100px; position: relative; transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.svc-go::before, .svc-go::after { content: ""; position: absolute; inset: 50% auto auto 50%; background: var(--ink); }
.svc-go::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.svc-go::after { width: 8px; height: 8px; border-inline-start: 1.5px solid var(--ink); border-block-end: 1.5px solid var(--ink); transform: translate(-50%, -50%) rotate(45deg); margin-inline-start: 3px; }
.svc-row:hover { background: var(--cream); padding-inline: 1.5rem; }
.svc-row:hover .svc-name { color: var(--accent); }
.svc-row:hover .svc-go { background: var(--accent); border-color: var(--accent); transform: translateX(-4px); }
.svc-row:hover .svc-go::before, .svc-row:hover .svc-go::after { border-color: #fff; background: #fff; }

/* ===== Work / projects ===== */
.work-filters { display: flex; gap: 0.5rem; }
.wf-tab { font-size: 0.88rem; color: var(--inv-soft); border: 1px solid var(--line-dark); border-radius: 100px; padding: 0.5rem 1.1rem; transition: color 0.25s, border-color 0.25s, background-color 0.25s; }
.wf-tab:hover { color: var(--inv); border-color: var(--inv-soft); }
.wf-tab.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }
.work-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }
.work-item { position: relative; display: block; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 4px; background: var(--dark-2); }
.work-item.is-feature { grid-column: 1 / -1; }
.work-media { overflow: hidden; aspect-ratio: 4 / 3; }
.work-item.is-feature .work-media { aspect-ratio: 16 / 9; }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(0.15) brightness(0.9); transition: transform 0.8s var(--ease), filter 0.6s; }
.work-item:hover .work-media img { transform: scale(1.05); filter: grayscale(0) brightness(1); }
.work-info { position: absolute; inset-block-end: 0; inset-inline: 0; padding: clamp(1.2rem, 3vw, 2.2rem); display: grid; gap: 0.4rem; background: linear-gradient(0deg, rgba(16, 17, 20, 0.92), rgba(16, 17, 20, 0) 100%); }
.work-cat { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--accent-2); font-weight: 600; }
.work-info h3 { font-size: clamp(1.15rem, 2.2vw, 1.9rem); font-weight: 700; line-height: 1.3; color: var(--inv); }
.work-loc { color: var(--inv-soft); font-size: 0.85rem; }
.work-item.is-hidden { display: none; }

/* ===== Tutorials / blog (dark) ===== */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2vw, 1.8rem); align-items: stretch; }
.edu-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 12px; background: var(--dark-2); transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.edu-card:hover { transform: translateY(-5px); border-color: rgba(192, 125, 78, 0.45); box-shadow: 0 24px 44px -24px rgba(0, 0, 0, 0.7); }
.edu-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.edu-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2) brightness(0.82); transition: transform 0.8s var(--ease), filter 0.5s; }
.edu-card:hover .edu-media img { transform: scale(1.05); filter: none; }
.edu-tag { position: absolute; top: 1rem; inset-inline-start: 1rem; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--accent-2); background: rgba(16, 17, 20, 0.72); border: 1px solid var(--line-dark); padding: 0.3rem 0.8rem; border-radius: 100px; backdrop-filter: blur(6px); }
.edu-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1.5rem 1.5rem 1.6rem; }
.edu-body h3 { font-size: 1.18rem; font-weight: 700; color: var(--inv); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.edu-body p { color: var(--inv-soft); font-size: 0.92rem; line-height: 1.8; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.edu-date { font-size: 0.76rem; color: var(--inv-soft); opacity: 0.8; }
.edu-link { margin-top: auto; padding-top: 1rem; color: var(--accent-2); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.edu-link::after { content: "←"; transition: transform 0.3s var(--ease); }
.edu-card:hover .edu-link::after { transform: translateX(-4px); }

/* ===== Process timeline ===== */
.process-grid { display: grid; grid-template-columns: 0.7fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.process-lead { position: sticky; top: 7rem; }
.timeline { list-style: none; display: grid; gap: 0; counter-reset: step; }
.tl-step { position: relative; padding: clamp(1.6rem, 3vw, 2.4rem) 0 clamp(1.6rem, 3vw, 2.4rem) 0; padding-inline-start: 4.5rem; border-top: 1px solid var(--line-light); }
.tl-step:last-child { border-bottom: 1px solid var(--line-light); }
.tl-no { position: absolute; inset-inline-start: 0; inset-block-start: clamp(1.6rem, 3vw, 2.4rem); font-family: var(--latin); font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.tl-step h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 700; margin-bottom: 0.6rem; }
.tl-step p { color: var(--ink-soft); max-width: 46ch; }

/* ===== Team ===== */
.team-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.member { position: relative; overflow: hidden; border-radius: 4px; }
.member-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--dark-3); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: grayscale(0.4) brightness(0.92); transition: transform 0.9s var(--ease), filter 0.6s; }
.member:hover .member-photo img { transform: scale(1.04); filter: grayscale(0) brightness(1); }
.member-meta { position: absolute; inset-block-end: 0; inset-inline: 0; padding: clamp(1.3rem, 3vw, 2rem); background: linear-gradient(0deg, rgba(16, 17, 20, 0.95), transparent); }
.member-meta h3 { font-size: clamp(1.1rem, 1.7vw, 1.45rem); font-weight: 700; }
.member-role { color: var(--accent-2); font-weight: 600; font-size: 0.85rem; margin-block: 0.2rem 0.6rem; }
.member-note { color: var(--inv-soft); font-size: 0.9rem; max-width: 44ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.4s; }
.member:hover .member-note { max-height: 120px; opacity: 1; }

/* ===== Promise ===== */
.promise-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.promise-title { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.2; position: sticky; top: 7rem; }
.promise-list { display: grid; gap: 1.4rem; }
.promise-card { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.6rem; padding: clamp(1.5rem, 3vw, 2.2rem); background: #fff; border: 1px solid var(--line-light); border-radius: 6px; }
.promise-no { grid-row: 1 / 3; font-family: var(--latin); font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.promise-card h3 { font-size: 1.25rem; font-weight: 700; }
.promise-card p { color: var(--ink-soft); }

/* ===== FAQ ===== */
.faq-grid { display: grid; grid-template-columns: 0.6fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-lead { position: sticky; top: 7rem; }
.faq-list { display: grid; }
.faq-list details { border-top: 1px solid var(--line-dark); padding-block: 1.3rem; }
.faq-list details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 600; color: var(--inv); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 26px; height: 26px; border: 1px solid var(--line-dark); border-radius: 100px; position: relative; transition: background-color 0.3s, border-color 0.3s; }
.faq-list summary { position: relative; }
.faq-list summary::before { content: ""; position: absolute; inset-inline-end: 12px; inset-block-start: 50%; width: 1.5px; height: 11px; background: var(--accent-2); transform: translateY(-50%); transition: opacity 0.3s; z-index: 1; }
.faq-list details[open] summary::before { opacity: 0; }
.faq-list summary { padding-inline-end: 0; }
.faq-list details p { color: var(--inv-soft); margin-top: 0.9rem; max-width: 62ch; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-title { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; margin-block: 0.9rem 1.2rem; }
.contact-copy p { color: var(--ink-soft); max-width: 42ch; }
.contact-points { list-style: none; display: grid; gap: 0.7rem; margin-block: 1.8rem; }
.contact-points li { position: relative; padding-inline-start: 1.5rem; font-weight: 500; }
.contact-points li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.contact-direct { display: grid; gap: 0.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line-light); }
.contact-direct a { font-weight: 600; color: var(--ink); transition: color 0.25s; }
.contact-direct a:hover { color: var(--accent); }

.contact-form { background: #fff; border: 1px solid var(--line-light); border-radius: 8px; padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.1rem; box-shadow: 0 30px 60px -30px rgba(20, 22, 26, 0.25); }
.field { display: grid; gap: 0.45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--light); border: 1px solid var(--line-light); border-radius: 6px; padding: 0.85rem 0.95rem; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.field textarea { resize: vertical; min-height: 118px; }
.field input::placeholder, .field textarea::placeholder { color: #a9a293; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(192, 125, 78, 0.16); }
.form-msg { min-height: 1.2rem; font-size: 0.9rem; font-weight: 600; color: var(--accent-2); }
.form-msg.is-error { color: #e0876f; }

/* Contact — dark, refined */
.contact-title { color: var(--inv); }
.contact-copy p { color: var(--inv-soft); }
.contact-points li { color: var(--inv); }
.contact-direct { border-top-color: var(--line-dark); }
.contact-direct a { color: var(--inv); }
.contact-direct a:hover { color: var(--accent-2); }
.contact-form {
  background: linear-gradient(180deg, var(--dark-2), var(--dark));
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.field label { color: var(--inv-soft); font-weight: 500; }
.field input, .field select, .field textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  color: var(--inv);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}
.field input::placeholder, .field textarea::placeholder { color: #676c74; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(192, 125, 78, 0.06);
  box-shadow: 0 0 0 3px rgba(192, 125, 78, 0.22);
}
.field select option { background: var(--dark-2); color: var(--inv); }

/* ===== Footer ===== */
.site-foot { padding-block: clamp(3.5rem, 6vw, 6rem) 2rem; border-top: 1px solid var(--line-dark); }
.foot-top { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: start; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.foot-brand { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.05; color: var(--inv); }
.foot-brand span { color: var(--accent); }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 3rem; }
.foot-col { display: grid; gap: 0.55rem; align-content: start; }
.foot-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--inv-soft); font-family: var(--latin); margin-bottom: 0.4rem; }
.foot-col a, .foot-col span { color: var(--inv-soft); transition: color 0.25s; }
.foot-col a:hover { color: var(--accent-2); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; color: var(--inv-soft); font-size: 0.85rem; flex-wrap: wrap; }
.foot-top-link { transition: color 0.25s; }
.foot-top-link:hover { color: var(--accent-2); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .rail-nav { display: none; }
  .menu-btn { display: grid; }
  /* With the inline nav gone, give the header more breathing room so the
     wordmark and actions don't hug the screen corners. */
  .masthead-inner { width: calc(100% - 4rem); }
  .hero-frame::after {
    background:
      linear-gradient(180deg, rgba(16, 17, 20, 0.5) 0%, rgba(16, 17, 20, 0.2) 30%, rgba(16, 17, 20, 0.92) 100%);
  }
  .hero-content { max-width: 100%; }
  .hero-frame-tag { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-row, .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cta { grid-column: 1 / -1; border-inline-start: 0; padding-inline-start: 0; }
  .studio-grid, .process-grid, .promise-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .studio-index, .process-lead, .promise-title, .faq-lead { position: static; }
  .studio-index { display: flex; align-items: baseline; gap: 1rem; }
}
@media (max-width: 860px) {
  .overlay-grid { grid-template-columns: 1fr; align-items: start; gap: 2rem; }
  .overlay-aside { border-inline-start: 0; border-block-start: 1px solid var(--line-dark); padding-inline-start: 0; padding-block-start: 1.6rem; }
  .svc-row { grid-template-columns: 3rem 1fr; grid-template-areas: "no name" "no desc"; gap: 0.3rem 1rem; }
  .svc-desc { grid-area: desc; }
  .svc-go { display: none; }
  .work-gallery, .team-row, .studio-cols, .field-row, .edu-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 2rem); }
  .ghost-call { display: none; }
  .hero { padding-block: 7rem 3rem; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-cta-row { width: 100%; }
  .hero-cta-row a { flex: 1; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}

/* ===== Article / tutorial detail page ===== */
.article-page { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); min-height: 60vh; }
.article-crumbs { display: flex; gap: 0.6rem; align-items: center; font-size: 0.85rem; color: var(--inv-soft); margin-bottom: 1.6rem; }
.article-crumbs a:hover { color: var(--accent-2); }
.article { max-width: 820px; margin-inline: auto; }
.article-head { margin-bottom: 1.8rem; }
.article-kicker { font-size: 0.78rem; color: var(--accent-2); font-weight: 600; }
.article-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; line-height: 1.28; margin: 0.8rem 0 0; color: var(--inv); }
.article-lead { margin-top: 1rem; color: var(--inv-soft); font-size: 1.08rem; line-height: 1.9; }
.article-cover { margin: 0 0 2rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-dark); }
.article-cover img { width: 100%; height: auto; display: block; max-height: 460px; object-fit: cover; }
.article-body { display: grid; gap: 1.3rem; }
.article-body p { color: #c9ccd2; font-size: 1.05rem; line-height: 2.1; margin: 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); }
.article-tags span { font-size: 0.82rem; color: var(--inv-soft); border: 1px solid var(--line-dark); border-radius: 100px; padding: 0.35rem 0.9rem; }
.article-faq { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line-dark); display: grid; gap: 0.9rem; }
.article-faq h2 { color: var(--inv); font-size: 1.35rem; margin: 0 0 0.4rem; }
.article-faq details { border: 1px solid var(--line-dark); border-radius: 12px; background: var(--dark-2); padding: 0.9rem 1.2rem; }
.article-faq summary { color: var(--inv); font-weight: 600; cursor: pointer; list-style: none; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq details[open] summary { margin-bottom: 0.6rem; }
.article-faq p { color: #c9ccd2; line-height: 2; margin: 0; }
.article-cta { margin-top: 2.6rem; padding: clamp(1.5rem, 3vw, 2.2rem); border: 1px solid var(--line-dark); border-radius: 14px; background: var(--dark-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.article-cta p { color: var(--inv); font-weight: 500; margin: 0; max-width: 46ch; }
.article-missing { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; display: grid; gap: 1rem; justify-items: center; }
.article-missing h1 { font-size: 2rem; color: var(--inv); }
.article-missing p { color: var(--inv-soft); }

.edu-card.page-hidden { display: none; }
.edu-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; margin-block-start: 2.2rem; }
.edu-pages .page-btn { min-width: 2.75rem; height: 2.75rem; padding: 0 0.9rem; font: inherit; font-size: 0.95rem; color: var(--inv-soft); background: transparent; border: 1px solid var(--line-dark); border-radius: 10px; cursor: pointer; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.edu-pages .page-btn:hover:not(:disabled):not(.is-active) { color: var(--inv); border-color: rgba(192, 125, 78, 0.45); }
.edu-pages .page-btn.is-active { color: var(--ink); background: var(--accent); border-color: var(--accent); cursor: default; }
.edu-pages .page-btn:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 860px) {
  .edu-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .edu-pages { gap: 0.4rem; margin-block-start: 1.6rem; }
  .edu-body { padding: 0.9rem 0.9rem 1rem; gap: 0.45rem; }
  .edu-body h3 { font-size: 0.95rem; line-height: 1.5; }
  .edu-body p { font-size: 0.8rem; line-height: 1.65; }
  .edu-link { font-size: 0.85rem; }
  .team-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc(50% - 0.45rem); gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .team-row::-webkit-scrollbar { display: none; }
  .member { scroll-snap-align: start; }
  .member-meta { padding: 0.85rem 0.9rem; }
  .member-meta h3 { font-size: 0.95rem; }
  .member-role { font-size: 0.72rem; margin-block: 0.15rem 0; }
  .member-note { display: none; }
}

/* Project detail page ------------------------------------------------------ */
.pj-stage { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-dark); background: var(--dark-2); margin: 0 0 0.9rem; }
.pj-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pj-track::-webkit-scrollbar { display: none; }
.pj-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; cursor: zoom-in; }
.pj-slide img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.pj-nav { z-index: 2; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(16, 17, 20, 0.55); color: var(--inv); backdrop-filter: blur(6px); cursor: pointer; display: grid; place-items: center; font-size: 1.35rem; line-height: 1; padding: 0 0 0.2rem; transition: border-color 0.3s, background-color 0.3s; }
.pj-nav:hover { border-color: var(--accent); background: rgba(16, 17, 20, 0.85); }
.pj-stage .pj-nav { position: absolute; top: 50%; translate: 0 -50%; }
.pj-prev { inset-inline-start: 0.8rem; }
.pj-next { inset-inline-end: 0.8rem; }
.pj-count { position: absolute; z-index: 2; inset-block-end: 0.8rem; inset-inline-start: 0.9rem; font-size: 0.8rem; color: var(--inv); background: rgba(16, 17, 20, 0.62); border: 1px solid var(--line-dark); border-radius: 100px; padding: 0.25rem 0.8rem; backdrop-filter: blur(6px); }
.pj-zoom-hint { position: absolute; z-index: 2; inset-block-end: 0.8rem; inset-inline-end: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--inv-soft); background: rgba(16, 17, 20, 0.62); border: 1px solid var(--line-dark); border-radius: 100px; padding: 0.25rem 0.8rem; backdrop-filter: blur(6px); pointer-events: none; }
.pj-thumbs { display: flex; gap: 0.6rem; overflow-x: auto; scrollbar-width: none; padding-block: 0.15rem; margin: 0 0 2rem; }
.pj-thumbs::-webkit-scrollbar { display: none; }
.pj-thumb { flex: 0 0 auto; width: 84px; height: 58px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: 0.5; cursor: pointer; background: var(--dark-2); transition: opacity 0.3s, border-color 0.3s; }
.pj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-thumb.is-active { border-color: var(--accent); opacity: 1; }
.pj-thumb:hover { opacity: 1; }
.pj-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden; margin: 0 0 2.4rem; }
.pj-spec { background: var(--dark-2); padding: 1.05rem 1.25rem; }
.pj-spec dt { font-size: 0.75rem; color: var(--inv-soft); margin: 0 0 0.4rem; }
.pj-spec dd { font-size: 0.95rem; font-weight: 700; color: var(--inv); margin: 0; }
.pj-h2 { font-size: 1.3rem; font-weight: 700; color: var(--inv); margin: 0 0 1.1rem; }
.pj-video { margin: 2.4rem 0 0; }
.pj-video video { width: 100%; border-radius: 14px; border: 1px solid var(--line-dark); background: #000; display: block; }
.pj-crew { margin: 2.4rem 0 0; }
.pj-team { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.pj-mate { display: inline-flex; align-items: center; gap: 0.8rem; border: 1px solid var(--line-dark); background: var(--dark-2); border-radius: 100px; padding: 0.45rem 0.55rem; padding-inline-end: 1.3rem; }
.pj-mate img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; }
.pj-mate b { display: block; font-size: 0.9rem; color: var(--inv); line-height: 1.4; }
.pj-mate small { font-size: 0.74rem; color: var(--inv-soft); }
.pj-similar { margin: 2.6rem 0 0; }
.article .article-body { margin: 0; }
.pj-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(12, 13, 15, 0.96); }
.pj-lb[hidden] { display: none; }
.pj-lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.pj-lb-stage img { max-width: 94vw; max-height: 86vh; user-select: none; -webkit-user-drag: none; transition: transform 0.2s ease-out; will-change: transform; }
.pj-lb-stage img.dragging { transition: none; }
.pj-lb-close { position: fixed; z-index: 3; top: max(1rem, env(safe-area-inset-top)); inset-inline-end: 1rem; font-size: 1.6rem; }
.pj-lb .pj-lb-prev, .pj-lb .pj-lb-next { position: fixed; z-index: 3; top: 50%; translate: 0 -50%; }
.pj-lb .pj-lb-prev { inset-inline-start: 1rem; }
.pj-lb .pj-lb-next { inset-inline-end: 1rem; }
.pj-lb-count { position: fixed; z-index: 3; inset-block-end: max(1.1rem, env(safe-area-inset-bottom)); inset-inline-start: 50%; translate: -50% 0; font-size: 0.85rem; color: var(--inv); background: rgba(16, 17, 20, 0.72); border: 1px solid var(--line-dark); border-radius: 100px; padding: 0.3rem 0.95rem; }
@media (max-width: 860px) {
  .pj-zoom-hint { display: none; }
  .pj-stage .pj-nav { display: none; }
  .pj-thumb { width: 66px; height: 46px; }
  .pj-specs { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pj-lb-stage img { transition: none; }
}
