/*
Theme Name: Dev Portfolio — Алексей Сачков
Theme URI: https://avelor.net
Author: Алексей Сачков
Author URI: https://avelor.net
Description: Минималистичное тёмное портфолио iOS-разработчика Алексея Сачкова. Terminal-эстетика с графитовой гаммой и cyan-акцентом.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dev-portfolio
Tags: portfolio, developer, dark, minimal, one-page, ios, swift, terminal
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors — graphite spectrum */
  --c-void:       #080c0e;    /* deepest background */
  --c-bg:         #0d1117;    /* page background */
  --c-surface:    #161b22;    /* cards / panels */
  --c-raised:     #1c2128;    /* elevated surface */
  --c-border:     #21262d;    /* dividers */
  --c-border-hi:  #30363d;    /* hover borders */

  /* Text */
  --c-text:       #e6edf3;
  --c-muted:      #8b949e;
  --c-dim:        #484f58;

  /* Accent — terminal cyan */
  --c-cyan:       #39d0c8;
  --c-cyan-dim:   #1a6b68;
  --c-cyan-glow:  rgba(57, 208, 200, 0.12);

  /* Secondary accents */
  --c-orange:     #f0883e;    /* warnings / numbers */
  --c-green:      #3fb950;    /* success / available */
  --c-purple:     #bc8cff;    /* keywords */

  /* Typography */
  --f-display: 'Syne', 'Helvetica Neue', sans-serif;
  --f-body:    'Epilogue', 'Helvetica Neue', sans-serif;
  --f-mono:    'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --sp-2:   0.5rem;
  --sp-4:   1rem;
  --sp-6:   1.5rem;
  --sp-8:   2rem;
  --sp-12:  3rem;
  --sp-16:  4rem;
  --sp-24:  6rem;
  --sp-32:  8rem;

  /* Layout */
  --max-w:  1160px;
  --radius: 8px;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur:    0.25s;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.2;
}

.mono {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-8);
}

.section { padding-block: var(--sp-32); }

/* ============================================================
   SCANLINE TEXTURE
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ============================================================
   CURSOR
   ============================================================ */
.c-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--c-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .1s var(--ease);
  mix-blend-mode: screen;
}
.c-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(57,208,200,0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%,-50%);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease);
}
body.hover-active .c-ring {
  width: 52px; height: 52px;
  border-color: rgba(57,208,200,0.6);
}

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(13,17,23,0.88);
  backdrop-filter: blur(24px) saturate(1.5);
  border-color: var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-8);
}
.logo {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--c-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-bracket { color: var(--c-dim); }
.logo-cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--c-cyan);
  animation: blink 1.2s step-end infinite;
  vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.nav-link {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--c-muted);
  transition: color var(--dur) var(--ease);
  position: relative;
}
.nav-link .n { color: var(--c-orange); margin-right: 0.2em; }
.nav-link:hover { color: var(--c-text); }
.nav-hire {
  padding: 0.45rem 1.1rem;
  background: transparent;
  border: 1px solid var(--c-cyan);
  border-radius: var(--radius);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--c-cyan);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  letter-spacing: 0.06em;
}
.nav-hire:hover { background: var(--c-cyan); color: var(--c-void); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--c-muted);
  transition: var(--dur) var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: var(--sp-16);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* animated grid bg */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57,208,200,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,208,200,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  animation: gridPan 30s linear infinite;
}
@keyframes gridPan {
  from { transform: translate(0,0); }
  to   { transform: translate(60px,60px); }
}

/* radial glow behind photo */
.hero-glow {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--c-cyan-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-left { position: relative; z-index: 1; }

/* status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(63,185,80,0.08);
  border: 1px solid rgba(63,185,80,0.2);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-green);
  margin-bottom: var(--sp-6);
  letter-spacing: 0.08em;
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--c-green);
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(63,185,80,0.4); }
  50%      { box-shadow: 0 0 0 4px rgba(63,185,80,0); }
}

.hero-title { margin-bottom: var(--sp-6); }
.hero-title .line-dim   { color: var(--c-muted); display: block; }
.hero-title .line-cyan  { color: var(--c-cyan);  display: block; }
.hero-title .line-slash { color: var(--c-dim);   font-size: 0.5em; vertical-align: middle; }

.hero-desc {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 52ch;
  line-height: 1.8;
  margin-bottom: var(--sp-8);
}

/* tech stack pills */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}
.tech-pill {
  padding: 0.28rem 0.75rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-muted);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tech-pill:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  border: none;
}
.btn-primary {
  background: var(--c-cyan);
  color: var(--c-void);
  font-weight: 600;
}
.btn-primary:hover {
  background: #5de8e0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(57,208,200,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--c-muted);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover {
  color: var(--c-text);
  border-color: var(--c-border-hi);
  transform: translateY(-2px);
}

/* Hero photo */
.hero-photo-wrap {
  position: relative;
  z-index: 1;
}
.hero-photo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(57,208,200,0.08) 0%,
    transparent 50%,
    rgba(240,136,62,0.05) 100%
  );
  z-index: 1;
}
.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) contrast(1.05);
  transition: filter .4s var(--ease);
}
.hero-photo-frame:hover img { filter: grayscale(0%) contrast(1); }

/* decorative corner brackets */
.hero-photo-frame::after {
  content: '';
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border: 1px solid rgba(57,208,200,0.15);
  border-radius: 12px;
  pointer-events: none;
  z-index: 2;
}

/* experience tag on photo */
.exp-tag {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  z-index: 3;
  backdrop-filter: blur(8px);
}
.exp-tag-num {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-cyan);
  line-height: 1;
}
.exp-tag-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--c-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: var(--sp-8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1;
}
.scroll-hint-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--c-cyan), transparent);
  animation: scrollDrop 1.6s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0) translateY(-100%); opacity: 1; }
  50%  { transform: scaleY(1) translateY(0); opacity: 1; }
  100% { transform: scaleY(0) translateY(100%); opacity: 0; }
}
.scroll-hint span {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--c-dim);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section {
  border-top: 1px solid var(--c-border);
}
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-24);
  align-items: start;
}
.about-sidebar { position: sticky; top: 80px; }
.about-sidebar-title {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: var(--sp-4);
}
.terminal-block {
  background: var(--c-void);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  line-height: 1.9;
}
.terminal-block .prompt { color: var(--c-cyan); }
.terminal-block .cmd    { color: var(--c-text); }
.terminal-block .val    { color: var(--c-orange); }
.terminal-block .str    { color: var(--c-green); }
.terminal-block .key    { color: var(--c-purple); }
.terminal-block .cmt    { color: var(--c-dim); }

.about-main { padding-top: var(--sp-2); }

.section-label {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--c-cyan);
}

.about-heading { margin-bottom: var(--sp-6); }
.about-heading em { color: var(--c-cyan); font-style: italic; }

.about-body {
  font-size: 1.05rem;
  color: var(--c-muted);
  line-height: 1.9;
  margin-bottom: var(--sp-8);
  max-width: 60ch;
}
.about-body strong { color: var(--c-text); font-weight: 500; }

/* skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-4);
}
.skill-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-6);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.skill-card:hover {
  border-color: var(--c-cyan-dim);
  background: var(--c-raised);
}
.skill-card-name {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--c-text);
  margin-bottom: 0.25rem;
}
.skill-card-level {
  height: 2px;
  background: var(--c-border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.skill-card-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-green));
  border-radius: 2px;
  transform-origin: left;
  animation: barGrow 1s var(--ease) both;
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-section { border-top: 1px solid var(--c-border); }

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--sp-12);
}

.repo-count {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--c-muted);
}
.repo-count span { color: var(--c-cyan); }

.portfolio-filters {
  display: flex;
  gap: var(--sp-2);
}
.pf-btn {
  padding: 0.3rem 0.9rem;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--c-muted);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.06em;
}
.pf-btn:hover, .pf-btn.active {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: var(--c-cyan-glow);
}

/* repo-card style grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.project-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--c-cyan-dim);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--c-cyan-dim);
}

/* featured card spans full width */
.project-card.featured {
  grid-column: span 2;
  flex-direction: row;
}

.project-thumbnail {
  position: relative;
  overflow: hidden;
  background: var(--c-raised);
}
.project-card:not(.featured) .project-thumbnail {
  aspect-ratio: 16/9;
}
.project-card.featured .project-thumbnail {
  width: 380px;
  flex-shrink: 0;
}
.project-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .4s var(--ease);
  filter: grayscale(20%);
}
.project-card:hover .project-thumbnail img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

/* code overlay on thumbnail */
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,17,23,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  font-family: var(--f-mono);
  font-size: 2rem;
  color: var(--c-cyan);
}
.project-card:hover .thumb-overlay { opacity: 1; }

.project-body {
  padding: var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-muted);
}
.lang-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.project-title {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.7;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.p-tag {
  padding: 0.2rem 0.6rem;
  background: var(--c-raised);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}
.project-stars {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-muted);
}
.project-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-cyan);
  transition: gap var(--dur) var(--ease);
}
.project-link:hover { gap: 0.6rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { border-top: 1px solid var(--c-border); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-24);
  align-items: start;
}

.contact-heading { margin-bottom: var(--sp-6); }
.contact-heading em { color: var(--c-cyan); font-style: normal; }

.contact-copy {
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--sp-8);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.contact-link-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  text-decoration: none;
}
.contact-link-item:hover {
  border-color: var(--c-cyan-dim);
  background: var(--c-raised);
}
.cli-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--c-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-cyan);
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: 0.75rem;
}
.cli-text { flex: 1; }
.cli-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--c-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cli-value {
  font-size: 0.9rem;
  color: var(--c-text);
  margin-top: 0.1rem;
}
.cli-arrow { color: var(--c-dim); transition: transform var(--dur) var(--ease); }
.contact-link-item:hover .cli-arrow { transform: translateX(4px); }

/* Form */
.contact-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-8);
}

.form-title {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-title::before { content: '//'; color: var(--c-dim); }

.form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.field input,
.field textarea,
.field select {
  background: var(--c-raised);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 0.9rem;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  width: 100%;
  resize: none;
  appearance: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-cyan);
  background: var(--c-surface);
}
.field textarea { min-height: 120px; }

.form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-6);
  gap: var(--sp-4);
}
.form-hint { font-family: var(--f-mono); font-size: 0.65rem; color: var(--c-dim); }

#form-status {
  display: none;
  margin-top: var(--sp-4);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-family: var(--f-mono);
  font-size: 0.78rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: var(--sp-6) 0;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.footer-left {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-dim);
}
.footer-left span { color: var(--c-cyan); }
.footer-links {
  display: flex;
  gap: var(--sp-6);
}
.footer-links a {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-muted);
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--c-cyan); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-bottom: var(--sp-16); }
  .hero-photo-wrap { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .about-sidebar { position: static; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { flex-direction: column; }
  .project-card.featured .project-thumbnail { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-12); }
}

@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--sp-6); position: fixed; inset: 0 0 0 auto; width: 280px; background: var(--c-surface); padding: var(--sp-16) var(--sp-8); border-left: 1px solid var(--c-border); transition: transform var(--dur) var(--ease); transform: translateX(100%); }
  .site-nav.open { display: flex; transform: translateX(0); }
  .nav-toggle { display: flex; }
  .section { padding-block: var(--sp-24); }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .field-row { grid-template-columns: 1fr; }
  .form-bottom { flex-direction: column; align-items: flex-start; }
  .footer-row { flex-direction: column; text-align: center; }
}
