/* Istislav site styles — additions on top of design-system.css
   Only what the tokens layer doesn't already provide. */

/* ===== Layout helpers ===== */
.wide {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .wide { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .wide { padding-inline: 2rem; } }
@media (min-width: 1280px) { .wide { padding-inline: 2.5rem; } }

/* offset for fixed navbar */
.page { padding-top: 76px; }
.navbar { height: 76px; }

/* ===== Background texture ===== */
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.7;
}
.dark .bg-grid { opacity: 1; }

/* ===== Navbar bits ===== */
/* brand lockup: transparent icon + live HTML wordmark */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { height: 40px; width: auto; display: block; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 21px;
  letter-spacing: -0.025em; color: var(--text-primary);
}
.brand-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-tertiary); margin-top: 4px;
}
@media (max-width: 479px) {
  .brand-mark { height: 34px; }
  .brand-name { font-size: 18px; }
  .brand-tag { display: none; }
}
/* larger lockup for footer */
.brand--lg .brand-mark { height: 52px; }
.brand--lg .brand-name { font-size: 28px; }
.brand--lg .brand-tag { font-size: 10px; }

.lang-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-default),
              background-color var(--duration-fast) var(--ease-default);
}
.lang-btn:hover { color: var(--text-primary); background: var(--bg-sunken); }
.lang-btn.active { color: var(--text-inverse); background: var(--color-brand-primary); }

.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-md);
  color: var(--text-secondary); border: 1px solid var(--border-default);
  background: transparent;
  transition: all var(--duration-fast) var(--ease-default);
}
.icon-link:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--bg-sunken); }

/* ===== Mobile menu ===== */
.mobile-sheet {
  position: absolute; top: 100%; left: 0; right: 0;
  border-top: 1px solid var(--nav-border);
  background: var(--bg-page);
  box-shadow: 0 16px 32px -12px rgba(0,0,0,0.35);
}
.mobile-sheet a {
  display: block; padding: 0.9rem 0; font-size: var(--text-lg); font-weight: 600;
  color: var(--text-primary); border-bottom: 1px solid var(--border-subtle);
}
.mobile-sheet a:hover { color: var(--text-brand); }

/* ===== Hero shared ===== */
.hero { position: relative; overflow: hidden; }
.glow-amber {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(232,160,32,0.18) 0%, transparent 70%);
  filter: blur(8px);
}
.dark .glow-amber { background: radial-gradient(circle, rgba(232,160,32,0.22) 0%, transparent 70%); }

.hero-headline {
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
  font-weight: 800;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6; color: var(--text-secondary); max-width: 38ch;
}

.avail-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary);
  padding: 0.35rem 0.8rem 0.35rem 0.7rem; border-radius: var(--radius-full);
  border: 1px solid var(--border-default); background: var(--bg-surface);
}
.avail-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #16A364;
  box-shadow: 0 0 0 4px rgba(22,163,100,0.18);
}

/* hero grid layout */
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }
}
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hero-visual { position: relative; width: 100%; }
.hero-infra-block { display: none; }
.hero-stats-row { display: none; }

/* stat pills (under buttons in A/B) */
.stat-pills { display: flex; flex-wrap: wrap; gap: 1.75rem; padding-top: 0.5rem; }
.stat-pills .stat-block .stat-value { font-size: 1.6rem; }

/* ---- variant C: centered + infra diagram ---- */
.hero[data-variant="c"] .hero-grid { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; text-align: center; }
.hero[data-variant="c"] .hero-text { align-items: center; }
.hero[data-variant="c"] .hero-sub { max-width: 52ch; }
.hero[data-variant="c"] .hero-visual { display: none; }
.hero[data-variant="c"] .stat-pills { display: none; }
.hero[data-variant="c"] .hero-infra-block { display: block; margin-top: 3.5rem; }
.hero[data-variant="c"] .hero-stats-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem;
  margin-top: 3rem; max-width: 820px; margin-inline: auto; text-align: center;
}
@media (min-width: 768px) { .hero[data-variant="c"] .hero-stats-row { grid-template-columns: repeat(4, 1fr); } }
.hero[data-variant="c"] .hero-stats-row .stat-block { align-items: center; }

/* hide non-active visuals cleanly handled by v-show; keep min-height stable */
.hero-visual { min-height: 1px; }

/* ===== Glass stat badges (variant A) ===== */
.glass-badge {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; gap: 2px;
  padding: 0.7rem 0.95rem; border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-surface) 78%, transparent);
  border: 1px solid var(--border-default);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
}
.glass-badge .v { font-size: 1.4rem; font-weight: 800; line-height: 1; color: var(--text-primary); letter-spacing: -0.02em; }
.glass-badge .v.amber { color: var(--text-brand); }
.glass-badge .k { font-size: 11px; color: var(--text-tertiary); max-width: 14ch; line-height: 1.25; }

/* portrait frame */
.portrait-wrap {
  position: relative; border-radius: var(--radius-2xl); overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--bg-sunken);
  box-shadow: var(--card-shadow-hover);
}
.portrait-wrap image-slot { width: 100%; height: 100%; display: block; }

/* ===== Code window (variant B) ===== */
.code-line { white-space: pre; }
.hero .code-body { white-space: pre; overflow-x: auto; tab-size: 2; }
.tok-key { color: #FF7B72; }
.tok-str { color: #A5D6FF; }
.tok-num { color: #79C0FF; }
.tok-com { color: #8B949E; }
.tok-fn  { color: #D2A8FF; }
.tok-var { color: #FFA657; }
.tok-type{ color: #7EE787; }
.code-window-tabs {
  display: flex; gap: 1px; align-items: stretch;
  border-bottom: 1px solid var(--code-border); background: var(--bg-elevated);
  padding: 0 0.5rem;
}
.code-tab {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary);
  padding: 0.7rem 0.85rem; border-bottom: 2px solid transparent; cursor: default;
}
.code-tab.on { color: var(--text-primary); border-bottom-color: var(--color-brand-primary); }
.code-meta {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem;
  border-top: 1px solid var(--code-border); background: var(--bg-elevated);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary);
}

/* ===== Infra diagram (variant C) ===== */
.infra {
  position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin-inline: auto; width: 100%;
}
.node {
  position: absolute; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.8rem; border-radius: var(--radius-md);
  background: var(--bg-surface); border: 1px solid var(--border-default);
  box-shadow: var(--card-shadow); font-family: var(--font-mono);
  font-size: 12px; color: var(--text-secondary); white-space: nowrap;
}
.node b { color: var(--text-primary); font-weight: 700; }
.node-core {
  inset: 0; margin: auto; width: 132px; height: 132px; aspect-ratio: 1;
  flex-direction: column; gap: 4px; justify-content: center; text-align: center;
  border-radius: var(--radius-2xl); border-color: var(--border-brand);
  background: var(--bg-elevated);
}
.node-stack { flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.2; }
.node-stack > span { font-size: 11px; }
.node-core .ring {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px dashed var(--color-brand-primary);
  display: grid; place-items: center; color: var(--text-brand); font-weight: 800; font-size: 20px;
}
.infra svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.infra svg.wires path { stroke: var(--border-strong); stroke-width: 1.5; fill: none; }
.infra .dash { stroke-dasharray: 4 6; animation: dashflow 1.2s linear infinite; stroke: var(--color-brand-primary); opacity: 0.55; }
@keyframes dashflow { to { stroke-dashoffset: -20; } }

/* ===== Social proof ===== */
.proof-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1.5rem 2.75rem;
}
.proof-logo {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em;
  color: var(--text-tertiary); opacity: 0.85; white-space: nowrap;
  filter: grayscale(1); transition: color var(--duration-fast), opacity var(--duration-fast);
  font-family: var(--font-display);
}
.proof-logo .lt { font-weight: 400; }
.proof-logo:hover { color: var(--text-secondary); opacity: 1; }
.proof-logo-img {
  display: flex; align-items: center;
  transition: transform var(--duration-fast);
}
.proof-logo-img img { display: block; height: 52px; width: auto; max-width: 208px; object-fit: contain; }
.proof-logo-img:hover { transform: scale(1.04); }
.proof-logo-img .logo-dark { display: none; }
.dark .proof-logo-img .logo-light { display: none; }
.dark .proof-logo-img .logo-dark { display: block; }

/* ===== Specializations bento ===== */
.spec-grid { display: grid; gap: 1rem; grid-template-columns: repeat(6, 1fr); }
.spec-card {
  grid-column: span 6;
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.6rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); box-shadow: var(--card-shadow);
  transition: box-shadow var(--duration-normal) var(--ease-default),
              border-color var(--duration-normal) var(--ease-default),
              transform var(--duration-normal) var(--ease-default);
  position: relative; overflow: hidden;
}
.spec-card:hover {
  box-shadow: var(--card-shadow-hover); border-color: var(--border-brand);
  transform: translateY(-3px);
}
.spec-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--color-brand-primary); transform: scaleY(0); transform-origin: top;
  transition: transform var(--duration-normal) var(--ease-default);
}
.spec-card:hover::before { transform: scaleY(1); }
.spec-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary);
  letter-spacing: 0.1em;
}
.spec-card h3 { font-size: var(--text-xl); line-height: 1.25; }
.spec-card p { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.6; margin: 0; }
@media (min-width: 768px) {
  .spec-card { grid-column: span 3; }
  .spec-card:nth-child(4), .spec-card:nth-child(5) { grid-column: span 3; }
}
@media (min-width: 1024px) {
  .spec-card { grid-column: span 2; }
  /* first row: 3 cards (span 2 each = 6). second row: 2 cards span 3 each */
  .spec-card:nth-child(4), .spec-card:nth-child(5) { grid-column: span 3; }
}

/* ===== Final CTA ===== */
.cta-panel {
  position: relative; overflow: hidden;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  padding: clamp(2rem, 5vw, 4rem);
}
.cta-panel .bg-grid { opacity: 0.5; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 50%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 80% 50%, #000 20%, transparent 70%); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border-default); background: var(--bg-surface); }
.footer-wordmark {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 11vw, 9rem); line-height: 0.9;
  letter-spacing: -0.03em; color: var(--text-primary);
  opacity: 0.07; user-select: none; white-space: nowrap; overflow: hidden;
}
.footer-link { display: block; padding: 0.3rem 0; color: var(--text-secondary); font-size: var(--text-sm); }
.footer-link:hover { color: var(--text-brand); }

/* ===== Hero switcher (preview control, removable) ===== */
.hero-switch {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-full);
  border: 1px solid var(--border-default); background: var(--bg-sunken);
}
.hero-switch button {
  font-size: 12px; font-weight: 600; padding: 0.35rem 0.85rem; border-radius: var(--radius-full);
  border: none; background: transparent; color: var(--text-secondary); cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}
.hero-switch button.on { background: var(--color-brand-primary); color: #0D1008; }

/* ===== Entrance animation (transform-only — stays visible in captures/PDF) ===== */
@media (prefers-reduced-motion: no-preference) {
  [data-animate] { animation: fadeup 0.6s var(--ease-out) both; }
  [data-animate]:nth-child(2) { animation-delay: 0.04s; }
  [data-animate]:nth-child(3) { animation-delay: 0.08s; }
}
@keyframes fadeup {
  from { transform: translateY(14px); }
  to   { transform: none; }
}

/* keep Vue cloak hidden until mounted */
[v-cloak] { display: none !important; }

/* ============ PORTFOLIO PAGE ============ */
.pf-hero { position: relative; overflow: hidden; }
.pf-hero .section-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 640px; margin-top: 2.5rem; }
@media (max-width: 560px) { .pf-stats { gap: 1rem; } .pf-stats .stat-value { font-size: 1.7rem; } }

/* project block */
.proj { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--divider); }
.proj--alt { background: var(--bg-surface); }

.proj-top { display: flex; gap: 1rem; align-items: flex-start; }
.proj-index {
  font-family: var(--font-mono); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700;
  color: var(--color-brand-primary); opacity: 0.32; line-height: 0.9; flex: 0 0 auto;
}
.proj-name { font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
.proj-domain { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-brand); margin-left: 0.6rem; font-weight: 500; }
.proj-what { font-size: var(--text-lg); color: var(--text-secondary); margin-top: 0.5rem; line-height: 1.5; }

.proj-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; margin-top: 1.1rem; font-size: var(--text-sm); color: var(--text-tertiary); }
.proj-meta .sep { opacity: 0.5; }
.proj-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }

/* screenshot gallery: 3-up on desktop, swipe slider on mobile */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-top: 2rem; }
.shots image-slot {
  width: 100%; aspect-ratio: 16 / 10; display: block;
  border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  background: var(--bg-sunken);
}
.gallery-hint { display: none; }
@media (max-width: 767px) {
  .shots {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 0.75rem; margin-inline: calc(-1 * 1.25rem); padding: 0 1.25rem 0.25rem;
  }
  .shots image-slot { flex: 0 0 84%; scroll-snap-align: center; }
  .gallery-hint {
    display: block; margin-top: 0.75rem; font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary);
  }
}

/* challenge / solution / result */
.csr { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.25rem; }
@media (min-width: 768px) { .csr { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.csr-item { position: relative; padding-top: 1.1rem; border-top: 2px solid var(--border-default); }
.csr-item.s { border-top-color: var(--color-brand-primary); }
.csr-item.r { border-top-color: #16A364; }
.csr-eyebrow {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.csr-item.c .csr-eyebrow { color: var(--text-secondary); }
.csr-item.s .csr-eyebrow { color: var(--text-brand); }
.csr-item.r .csr-eyebrow { color: #16A364; }
.csr-item p { margin: 0; color: var(--text-secondary); line-height: 1.65; font-size: var(--text-base); }

/* ============ SERVICES PAGE ============ */
.srv-hero { position: relative; overflow: hidden; }
.srv-hero .section-title { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 20ch; }

/* ---- service band ---- */
.srv { position: relative; padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--divider); }
.srv--alt { background: var(--bg-surface); }

.srv-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) {
  .srv-grid { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); }
  /* on alternating rows, flip plate to the left */
  .srv--alt .srv-content { order: 2; }
}

/* ---- content column ---- */
.srv-content { display: flex; flex-direction: column; align-items: flex-start; }
.srv-head { display: flex; align-items: baseline; gap: 1rem; }
.srv-num {
  font-family: var(--font-mono); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700;
  color: var(--color-brand-primary); opacity: 0.4; line-height: 1; flex: 0 0 auto;
}
.srv-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
.srv-tagline { font-size: var(--text-xl); color: var(--text-primary); font-weight: 600; margin-top: 1.1rem; line-height: 1.35; max-width: 30ch; }
.srv-desc { color: var(--text-secondary); font-size: var(--text-lg); line-height: 1.65; margin-top: 0.85rem; max-width: 48ch; }

.srv-included { margin-top: 1.9rem; width: 100%; max-width: 540px; }
.srv-included-label {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 1.1rem;
}
.srv-included-label::after { content: ""; flex: 1; height: 1px; background: var(--divider); }
.srv-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 0.75rem 1.75rem; }
@media (min-width: 560px) { .srv-list { grid-template-columns: 1fr 1fr; } }
.srv-list li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--text-secondary); font-size: var(--text-base); line-height: 1.45; }
.srv-list li::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 7px;
  background: var(--color-brand-primary); transform: rotate(45deg); border-radius: 1px;
}

/* ---- plate visual ---- */
.srv-plate {
  position: relative; overflow: hidden;
  border: 1px solid var(--border-default); border-radius: var(--radius-2xl);
  background: var(--bg-sunken);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  min-height: 360px;
  display: flex; flex-direction: column; gap: 1.5rem;
  box-shadow: var(--card-shadow);
}
.srv--alt .srv-plate { background: var(--bg-page); }
.srv-plate .bg-grid { opacity: 0.5; }
.srv-ghost {
  position: absolute; top: -0.12em; right: 0.06em; pointer-events: none; user-select: none;
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(7rem, 16vw, 12rem);
  line-height: 1; color: var(--text-primary); opacity: 0.045; letter-spacing: -0.04em;
}
.srv-plate-top { position: relative; display: flex; align-items: center; gap: 1rem; }
.srv-icon {
  flex: 0 0 auto; width: 60px; height: 60px; border-radius: var(--radius-lg);
  display: grid; place-items: center; color: var(--text-brand);
  background: var(--tag-bg); border: 1px solid var(--tag-border);
}
.srv-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-tertiary); line-height: 1.5; }
.srv-highlight { position: relative; margin-top: auto; }
.srv-highlight-v { display: block; font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; color: var(--text-primary); line-height: 1.05; }
.srv-highlight-v .ar { color: var(--text-brand); padding-inline: 0.12em; }
.srv-highlight-k { display: block; margin-top: 0.45rem; font-size: var(--text-sm); color: var(--text-tertiary); }
.srv-plate-stack { position: relative; display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---- process band ---- */
.proc { display: grid; grid-template-columns: 1fr; gap: 1.75rem; margin-top: 3rem; }
@media (min-width: 640px) { .proc { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .proc { grid-template-columns: repeat(4, 1fr); gap: 2.25rem; } }
.proc-item { position: relative; padding-top: 1.2rem; border-top: 2px solid var(--border-brand); }
.proc-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-brand); font-weight: 600; letter-spacing: 0.12em; }
.proc-item h3 { font-size: var(--text-lg); margin-top: 0.55rem; line-height: 1.25; }
.proc-item p { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; margin-top: 0.55rem; }

/* ============ ABOUT PAGE ============ */
.about-hero { position: relative; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
}
.about-hero .section-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18ch; }
.about-lead { color: var(--text-secondary); font-size: var(--text-lg); line-height: 1.7; margin-top: 1.5rem; max-width: 56ch; }
.about-lead + .about-lead { margin-top: 1.1rem; }

/* portrait column */
.about-portrait {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  border-radius: var(--radius-2xl); overflow: hidden;
  border: 1px solid var(--border-default); background: var(--bg-sunken);
  box-shadow: var(--card-shadow-hover);
}
.about-portrait image-slot { width: 100%; height: 100%; display: block; }
.about-portrait .about-portrait-img,
.about-portrait .about-portrait-placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 1;
}
.about-portrait .about-portrait-placeholder { color: var(--text-tertiary); }
.about-portrait .about-portrait-hint {
  position: absolute; left: 0; right: 0; bottom: 1.25rem;
  text-align: center; color: var(--text-tertiary);
  font-size: var(--text-sm); padding: 0 1rem; z-index: 2;
}
.about-portrait .glow-amber { z-index: 0; }

/* values / principles */
.values { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.75rem; }
@media (min-width: 640px) { .values { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.value-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.65rem;
  padding: 1.6rem 1.7rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); box-shadow: var(--card-shadow);
  transition: box-shadow var(--duration-normal) var(--ease-default),
              border-color var(--duration-normal) var(--ease-default),
              transform var(--duration-normal) var(--ease-default);
}
.value-card:hover { box-shadow: var(--card-shadow-hover); border-color: var(--border-brand); transform: translateY(-3px); }
.value-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--color-brand-primary); transform: scaleY(0); transform-origin: top;
  transition: transform var(--duration-normal) var(--ease-default);
}
.value-card:hover::before { transform: scaleY(1); }
.value-k {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--tag-text);
  background: var(--tag-bg); border: 1px solid var(--tag-border);
  padding: 0.25rem 0.6rem; border-radius: var(--radius-full);
}
.value-card h3 { font-size: var(--text-xl); line-height: 1.25; margin-top: 0.15rem; }
.value-card p { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.6; margin: 0; }

/* philosophy prose */
.about-prose { max-width: 64ch; }
.about-prose p { color: var(--text-secondary); font-size: var(--text-lg); line-height: 1.75; margin-top: 1.25rem; }
.pull-quote {
  margin-top: 2.5rem; padding: 0 0 0 1.75rem;
  border-left: 3px solid var(--color-brand-primary);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3;
  letter-spacing: var(--tracking-heading); color: var(--text-primary);
  max-width: 24ch; text-wrap: balance;
}

/* now / timeline */
.now-list {
  margin-top: 3rem; position: relative;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-left: 2px solid var(--divider);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
}
.now-item { position: relative; padding-block: 1.4rem; }
.now-item + .now-item { border-top: 1px solid var(--divider); }
.now-item::before {
  content: ""; position: absolute; left: calc(-1 * clamp(1.25rem, 3vw, 2.25rem) - 7px);
  top: 1.85rem; width: 12px; height: 12px;
  background: var(--bg-page); border: 2px solid var(--color-brand-primary);
  border-radius: 50%; transform: rotate(45deg);
}
.now-year {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-brand);
}
.now-item h3 { font-size: var(--text-xl); line-height: 1.25; margin-top: 0.4rem; }
.now-item p { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.65; margin-top: 0.5rem; max-width: 62ch; }

/* ============ CONTACTS PAGE ============ */
.contact-hero { position: relative; overflow: hidden; }
.contact-hero .section-title { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; margin-top: 3rem; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
}

.contact-side-label {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 1.25rem;
}
.contact-side-label::after { content: ""; flex: 1; height: 1px; background: var(--divider); }

.channel-list { display: flex; flex-direction: column; gap: 0.75rem; }
.channel {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); box-shadow: var(--card-shadow);
  transition: border-color var(--duration-fast) var(--ease-default),
              box-shadow var(--duration-fast) var(--ease-default),
              transform var(--duration-fast) var(--ease-default);
}
.channel:hover { border-color: var(--border-brand); box-shadow: var(--card-shadow-hover); transform: translateX(3px); }
.channel-icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--radius-md);
  display: grid; place-items: center; color: var(--text-brand);
  background: var(--tag-bg); border: 1px solid var(--tag-border);
}
.channel-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.channel-label { font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); }
.channel-value { font-size: var(--text-base); font-weight: 600; color: var(--text-primary); }
.channel-hint { font-size: var(--text-sm); color: var(--text-tertiary); }
.channel-arrow { margin-left: auto; flex: 0 0 auto; color: var(--text-tertiary); transition: transform var(--duration-fast) var(--ease-default), color var(--duration-fast) var(--ease-default); }
.channel:hover .channel-arrow { color: var(--text-brand); transform: translateX(3px); }

/* availability card */
.avail-card {
  display: flex; align-items: center; gap: 0.85rem;
  margin-top: 1.5rem; padding: 1rem 1.15rem;
  border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  background: var(--bg-surface);
}
.avail-card .avail-dot { flex: 0 0 auto; }
.avail-card .at { font-weight: 600; color: var(--text-primary); font-size: var(--text-base); }
.avail-card .ax { font-size: var(--text-sm); color: var(--text-tertiary); }

/* feedback form */
.cform-card {
  position: relative; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl); box-shadow: var(--card-shadow);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
}
.cform-card .bg-grid { opacity: 0.4; }
.cform-title { font-size: var(--text-2xl); line-height: 1.2; }
.cform-intro { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.6; margin-top: 0.6rem; max-width: 46ch; }
.cform { position: relative; display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.75rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary);
}
.field input, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem; border-radius: var(--radius-md);
  background: var(--input-bg); border: 1px solid var(--input-border);
  color: var(--text-primary); font-size: var(--text-base); line-height: 1.5;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
.cform-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.25rem; }
.cform .btn-lg { flex: 0 0 auto; }
.cform-note { font-size: var(--text-sm); color: var(--text-tertiary); line-height: 1.5; max-width: 32ch; }
.cform-sent { font-size: var(--text-sm); color: #16A364; font-weight: 600; }
.cform-error { font-size: var(--text-sm); color: #dc2626; margin-top: 8px; }

