/* ============================================================
   Benjamen Beady — Portfolio
   css/styles.css  |  2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── VARIABLES ──────────────────────────────────────────── */
:root {
  --bg:            #060d17;
  --surface:       #0d1b2e;
  --surface-alt:   #0f2040;
  --border:        rgba(100, 255, 218, 0.1);
  --border-hover:  rgba(100, 255, 218, 0.35);
  --primary:       #64ffda;
  --primary-dim:   rgba(100, 255, 218, 0.1);
  --secondary:     #818cf8;
  --secondary-dim: rgba(129, 140, 248, 0.1);
  --accent:        #38bdf8;
  --text:          #ccd6f6;
  --text-muted:    #8892b0;
  --text-bright:   #e6f1ff;

  --font-heading:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;

  --nav-height:    70px;
  --max-width:     1100px;
  --radius:        8px;
  --radius-lg:     16px;
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ───────────────────────────────────────── */
html {
  font-size: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  min-height: 100vh;
  padding-top: var(--nav-height);
  counter-reset: section;
  overflow-x: hidden;
  opacity: 0;
  animation: pageFadeIn 0.5s ease 0.1s forwards;
}

@keyframes pageFadeIn {
  to { opacity: 1; }
}

/* Custom scrollbar */
::-webkit-scrollbar             { width: 6px; }
::-webkit-scrollbar-track       { background: var(--bg); }
::-webkit-scrollbar-thumb       { background: var(--surface-alt); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

h2::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
  flex: 1;
  max-width: 220px;
}

section:not(.hero) > h2 {
  counter-increment: section;
}

section:not(.hero) > h2::before {
  content: '0' counter(section) '.';
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 400;
  flex-shrink: 0;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1em;
  color: var(--text);
  line-height: 1.85;
}

p:last-child { margin-bottom: 0; }

strong { color: var(--text-bright); }

code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  color: var(--primary);
  background: var(--primary-dim);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--text-bright); }

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── HEADER / NAV ───────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(6, 13, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--transition), text-shadow var(--transition);
}

.site-logo:hover {
  color: var(--text-bright);
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
}

.logo-dot { color: var(--secondary); }

header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  counter-reset: nav;
}

header nav ul li         { padding: 0; }
header nav ul li::before { content: none; }

nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  display: inline-block;
  counter-increment: nav;
}

nav a:not(.nav-cta)::before {
  content: '0' counter(nav) '. ';
  color: var(--primary);
  font-size: 0.72rem;
}

nav a:hover   { color: var(--primary); background: var(--primary-dim); }
nav a:visited { color: var(--text); }
nav a:focus   { outline: 2px solid var(--primary); outline-offset: 2px; }

nav a.nav-cta {
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.45rem 1rem;
  margin-left: 0.4rem;
  transition: background var(--transition), box-shadow var(--transition);
}

nav a.nav-cta:hover {
  background: var(--primary-dim);
  box-shadow: 0 0 16px rgba(100, 255, 218, 0.25);
  color: var(--primary);
}

nav a.nav-cta:visited { color: var(--primary); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MAIN ───────────────────────────────────────────────── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  display: block;
  opacity: 0;
  animation: slideUp 0.6s ease 0.3s forwards;
}

.hero h1 {
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: slideUp 0.6s ease 0.45s forwards;
}

.hero-sub {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideUp 0.6s ease 0.6s forwards;
}

.hero-sub::before, .hero-sub::after { display: none !important; }

.typed-text { color: var(--text-muted); }

.cursor {
  display: inline-block;
  color: var(--primary);
  animation: blink 1s step-end infinite;
  margin-left: 1px;
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-body {
  max-width: 560px;
  opacity: 0;
  animation: slideUp 0.6s ease 0.75s forwards;
}

.hero-body p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.2em;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  opacity: 0;
  animation: slideUp 0.6s ease 0.9s forwards;
}

/* Hero photo with spinning gradient border */
.hero-photo-wrap {
  position: relative;
  width: 270px;
  height: 270px;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeIn 0.9s ease 1s forwards;
}

.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary) 0deg,
    var(--secondary) 120deg,
    var(--accent) 240deg,
    var(--primary) 360deg
  );
  animation: spinBorder 5s linear infinite;
  z-index: 0;
}

.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg);
  z-index: 1;
}

@keyframes spinBorder {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  max-width: none;
  border: none;
  box-shadow: none;
  margin: 0;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #060d17;
}

.btn-primary:hover {
  background: #4ce8c4;
  box-shadow: 0 0 28px rgba(100, 255, 218, 0.4);
  color: #060d17;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-dim);
  box-shadow: 0 0 18px rgba(100, 255, 218, 0.2);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ─── SECTIONS ───────────────────────────────────────────── */
section {
  padding: 5rem 0;
}

section:last-child { padding-bottom: 6rem; }

/* ─── SKILL CARDS ────────────────────────────────────────── */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.skill-card:hover {
  border-color: rgba(100, 255, 218, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.skill-card h3 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-card h3::before {
  content: '▸';
  font-size: 0.85rem;
}

/* ─── SKILLS TAGS ────────────────────────────────────────── */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

.skills-list li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(100, 255, 218, 0.18);
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: default;
}

.skills-list li:hover {
  background: rgba(100, 255, 218, 0.18);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.skills-list li::before { content: none; }

/* ─── PROJECT CARDS ──────────────────────────────────────── */
.projects-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-bottom: 0;
}

.project-card:last-child { margin-bottom: 0; }

.project-card:hover {
  border-color: rgba(100, 255, 218, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(100, 255, 218, 0.07);
}

.project-card__screenshot {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 0;
  border: none;
  box-shadow: none;
  margin: 0;
  max-width: none;
  filter: brightness(0.85) saturate(0.85);
  transition: filter var(--transition);
}

.project-card:hover .project-card__screenshot {
  filter: brightness(1) saturate(1);
}

.project-card__body {
  padding: 1.75rem 2rem;
}

.project-card__body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
  list-style: none;
  padding: 0;
}

.project-card__tags li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(100, 255, 218, 0.18);
  border-radius: 4px;
  padding: 0.2rem 0.65rem;
}

.project-card__tags li::before { content: none; }

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  margin-top: 0.5rem;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}

.project-card__link:hover {
  background: var(--primary-dim);
  box-shadow: 0 0 16px rgba(100, 255, 218, 0.25);
  color: var(--primary);
  transform: translateY(-2px);
}

.project-card__link:visited { color: var(--primary); }

/* ─── ARTICLE CARDS ──────────────────────────────────────── */
article {
  padding: 1.75rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

article:last-child { margin-bottom: 0; }

article:hover {
  border-color: rgba(129, 140, 248, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

article h3 {
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

article h3::before {
  content: '▸';
  color: var(--primary);
  font-size: 0.85rem;
}

/* ─── BLOCKQUOTE ─────────────────────────────────────────── */
blockquote {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.5rem 2rem 1.5rem 2.5rem;
  border-left: 3px solid var(--primary);
  background: var(--surface);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: hidden;
}

blockquote::before {
  content: '"';
  font-size: 8rem;
  color: var(--primary);
  opacity: 0.06;
  position: absolute;
  top: -2rem;
  left: 0.75rem;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

blockquote > p {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

/* ─── LISTS ──────────────────────────────────────────────── */
ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1em;
}

ul li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  color: var(--text);
}

ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.85rem;
}

/* ─── TWO-COLUMN GRID ────────────────────────────────────── */
.two-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* ─── FORM ───────────────────────────────────────────────── */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-field label .required {
  color: var(--secondary);
  margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(100, 255, 218, 0.15);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.08);
  background: var(--surface-alt);
}

.form-field select option {
  background: var(--surface-alt);
  color: var(--text);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.form-row .form-field { flex: 1 1 200px; }

.form-submit {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.85rem 2.2rem;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  text-transform: uppercase;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--primary-dim);
  box-shadow: 0 0 24px rgba(100, 255, 218, 0.25);
  transform: translateY(-2px);
}

.form-note {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  background: rgba(100, 255, 218, 0.05);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.form-success h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ─── AVAILABILITY BADGE ─────────────────────────────────── */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(100, 255, 218, 0.18);
  border-radius: 99px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.75rem;
}

.availability-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  letter-spacing: 0.03em;
}

footer a       { color: var(--primary); }
footer a:hover { color: var(--text-bright); }

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered grid/list children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > *:nth-child(1)  { opacity: 1; transform: none; transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2)  { opacity: 1; transform: none; transition-delay: 0.15s; }
.stagger.visible > *:nth-child(3)  { opacity: 1; transform: none; transition-delay: 0.25s; }
.stagger.visible > *:nth-child(4)  { opacity: 1; transform: none; transition-delay: 0.35s; }
.stagger.visible > *:nth-child(5)  { opacity: 1; transform: none; transition-delay: 0.45s; }
.stagger.visible > *:nth-child(6)  { opacity: 1; transform: none; transition-delay: 0.55s; }
.stagger.visible > *:nth-child(7)  { opacity: 1; transform: none; transition-delay: 0.65s; }
.stagger.visible > *:nth-child(8)  { opacity: 1; transform: none; transition-delay: 0.75s; }
.stagger.visible > *:nth-child(9)  { opacity: 1; transform: none; transition-delay: 0.85s; }
.stagger.visible > *:nth-child(10) { opacity: 1; transform: none; transition-delay: 0.95s; }

/* ─── KEYFRAMES ──────────────────────────────────────────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── UTILITIES ──────────────────────────────────────────── */
.highlight  { color: var(--primary); font-weight: 600; }
.text-muted { color: var(--text-muted); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .header-inner { padding: 0 1.25rem; }

  .nav-toggle { display: flex; }

  header nav {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    width: min(300px, 100vw);
    height: calc(100vh - var(--nav-height));
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 2.5rem 1.75rem;
    transform: translateX(110%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
  }

  header nav.open { transform: translateX(0); }

  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    counter-reset: nav;
  }

  nav a { font-size: 1rem; padding: 0.7rem 1rem; width: 100%; }
  nav a.nav-cta { margin-left: 0; margin-top: 0.75rem; text-align: center; }

  main { padding: 0 1.25rem; }

  .hero {
    min-height: auto;
    padding: 3rem 0 4rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-photo-wrap {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    order: -1;
  }

  .hero-cta   { justify-content: center; }
  .hero-body  { max-width: 100%; }

  section     { padding: 3.5rem 0; }
  h2::after   { display: none; }
  footer      { padding: 2rem 1.25rem; }
}

@media (max-width: 480px) {
  .form-row   { flex-direction: column; }
  .skill-grid { grid-template-columns: 1fr; }
  .hero-cta   { flex-direction: column; }
  .btn        { text-align: center; }
}
