/* ============================================================
   Professional Portfolio — Cybersecurity & AI Consulting
   Design System — Walnut-Led Refinement
   ============================================================ */

/* ---------- Font Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Custom Properties (Design Tokens) ---------- */
:root {
  --walnut-950: #1C100C;
  --walnut-900: #26160F;
  --walnut-800: #332015;
  --walnut-700: #4A2E1F;

  --oak-700: #6F472A;
  --oak-600: #8B5E34;
  --oak-500: #A87848;

  --parchment-300: #CDB591;
  --parchment-200: #DCC8AA;
  --parchment-100: #E9DCC7;
  --marble: #F7F1E8;

  --burgundy-700: #7B1935;
  --burgundy-800: #5A1025;
  --burgundy-500: #A4475C;

  --brass: #B08A55;

  --text-dark: #1C100C;
  --text-light: #F7F1E8;
  --text-muted-dark: #4A3327;
  --text-muted-light: #DCC8AA;

  --border-dark: #5D3A25;
  --border-light: #9A7853;

  /* Legacy aliases */
  --color-text-primary: var(--text-dark);
  --color-text-secondary: var(--text-muted-dark);
  --color-accent: var(--burgundy-700);
  --color-accent-hover: var(--burgundy-800);
  --color-white: var(--marble);
  --color-highlight: var(--brass);
  --color-border: var(--border-light);
  --color-error: #B33A3A;
  --color-success: #3A7D5C;
  --color-bg: var(--walnut-900);

  /* Typography */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  --leading-tight: 1.25;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --max-width: 1200px;
  --content-width: 720px;
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-dark);
  background-color: var(--walnut-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--burgundy-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--burgundy-800);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--burgundy-700);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

button {
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: inherit;
  border: none;
  background: none;
}

button:focus-visible {
  outline: 2px solid var(--burgundy-700);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

input,
textarea,
select {
  font-family: var(--font-sans);
  font-size: inherit;
  color: var(--text-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--text-dark);
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ---------- */
h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-muted-dark);
  font-family: var(--font-sans);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  text-align: center;
  margin-bottom: var(--space-3);
  position: relative;
  padding-bottom: var(--space-5);
}

/* Thin editorial rule under section headings */
.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background-color: var(--burgundy-700);
}

.section-subheading {
  text-align: center;
  color: var(--text-muted-dark);
  max-width: var(--content-width);
  margin: 0 auto var(--space-12);
  font-size: var(--text-lg);
  font-family: var(--font-sans);
}

.text-small {
  font-size: var(--text-sm);
}

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

/* ---------- Site Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--walnut-950);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--space-3) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--burgundy-500);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--burgundy-500);
  letter-spacing: 0.02em;
  line-height: 1;
  flex-shrink: 0;
}

.monogram + .site-name {
  margin-left: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.02em;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--parchment-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition-fast);
  text-decoration: none;
  position: relative;
  padding-bottom: var(--space-1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--burgundy-500);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--burgundy-500);
  text-decoration: none;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link[aria-current="page"] {
  color: var(--burgundy-500);
}

.nav-link[aria-current="page"]::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--parchment-300);
  transition: all var(--transition-base);
  border-radius: 1px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  background:
    /* Subtle grid overlay — circuit/data trace signal */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.018) 40px,
      rgba(255, 255, 255, 0.018) 41px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.018) 40px,
      rgba(255, 255, 255, 0.018) 41px
    ),
    linear-gradient(
      180deg,
      var(--walnut-800) 0%,
      var(--walnut-700) 52%,
      var(--oak-700) 100%
    );
  padding: var(--space-24) 0 var(--space-16);
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  color: var(--text-muted-light);
  max-width: var(--content-width);
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

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

.hero-divider {
  width: 60px;
  height: 2px;
  background-color: var(--brass);
  margin: var(--space-8) auto;
  border-radius: 1px;
}

/* ---------- Marble Texture (parchment surfaces only) ---------- */
/* Applied via background-image on parchment-based elements */
.card,
.credential-item,
.credential-badge,
.form-input,
.form-textarea,
.form-select,
.credentials-card,
.page-header {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ---------- Credibility Strip ---------- */
.credibility {
  background-color: var(--walnut-800);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.credibility-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.credibility-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--parchment-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.credibility-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--brass);
}

.credibility-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-dark);
  flex-shrink: 0;
}

.credibility-item strong {
  font-weight: 600;
  color: var(--text-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:focus-visible {
  outline: 2px solid var(--burgundy-700);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--burgundy-700);
  color: var(--marble);
  border: 2px solid var(--burgundy-700);
}

.btn-primary:hover {
  background-color: var(--burgundy-800);
  border-color: var(--burgundy-800);
  color: var(--marble);
  text-decoration: none;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--marble);
  border: 2px solid var(--burgundy-500);
}

.btn-secondary:hover {
  background-color: var(--burgundy-700);
  color: var(--marble);
  border-color: var(--burgundy-700);
  text-decoration: none;
}

.btn-secondary:active {
  transform: translateY(1px);
}

/* ---------- Section Intro (dark walnut page headers, matching hero tone) ---------- */
.section-intro {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.018) 40px,
      rgba(255, 255, 255, 0.018) 41px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.018) 40px,
      rgba(255, 255, 255, 0.018) 41px
    ),
    linear-gradient(
      180deg,
      var(--walnut-900) 0%,
      var(--walnut-800) 100%
    );
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
}

.section-intro h1,
.section-intro h2 {
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.section-intro-text {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  color: var(--text-muted-light);
  max-width: var(--content-width);
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

.section-intro-divider {
  width: 60px;
  height: 2px;
  background-color: var(--brass);
  margin: var(--space-6) auto var(--space-6);
  border-radius: 1px;
}

/* ---------- Section ---------- */
.section {
  padding: var(--space-20) 0;
  background-color: var(--parchment-200);
}

.section-alt {
  background-color: var(--walnut-800);
  color: var(--text-light);
}

.section-alt .section-heading {
  color: var(--text-light);
}

.section-alt .section-subheading {
  color: var(--text-muted-light);
}

.section-alt p {
  color: var(--text-muted-light);
}

.section-alt h2,
.section-alt h3,
.section-alt h4 {
  color: var(--text-light);
}

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.card {
  background-color: var(--parchment-100);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  position: relative;
}

/* Editorial top accent border — burgundy */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-8);
  right: var(--space-8);
  height: 2px;
  background-color: var(--burgundy-700);
  border-radius: 0 0 2px 2px;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  color: var(--burgundy-700);
}

.card-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.card h3 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-3);
  color: var(--text-dark);
}

.card p {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  color: var(--text-muted-dark);
}

.card ul {
  list-style: none;
  margin-bottom: var(--space-4);
}

.card ul li {
  position: relative;
  padding-left: var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-muted-dark);
  margin-bottom: var(--space-2);
}

.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background-color: var(--brass);
  border-radius: 50%;
}

.card-link {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--burgundy-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.card-link:hover {
  text-decoration: underline;
}

/* ---------- Credentials Block (home page) ---------- */
.credentials-block {
  max-width: 640px;
  margin: var(--space-6) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.credential-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background-color: var(--parchment-100);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  transition: box-shadow var(--transition-base);
}

.credential-item:hover {
  box-shadow: var(--shadow-sm);
}

.credential-item-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--burgundy-700);
}

.credential-item-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.credential-item-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.credential-item-text strong {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.credential-item-meta {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-muted-dark);
  line-height: 1.3;
}

/* ---------- About Section ---------- */
.about-layout {
  max-width: var(--content-width);
  margin: 0 auto;
}

.about-text h2 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-4);
}

.about-text p {
  font-family: var(--font-sans);
}

.about-text h3 {
  font-family: var(--font-heading);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.credential-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background-color: var(--parchment-200);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted-dark);
  letter-spacing: 0.02em;
}

/* ---------- Methodology step cards (no accent border) ---------- */
.card-grid .card:not(.card--service)::before {
  display: none;
}

/* ---------- Contact Form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-info h2 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-4);
}

.contact-info p {
  font-family: var(--font-sans);
  margin-bottom: var(--space-6);
}

.section-alt .contact-info p,
.section-alt .contact-link {
  color: var(--text-muted-light);
}

.section-alt .contact-link:hover {
  color: var(--burgundy-500);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted-dark);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

.contact-link:hover {
  color: var(--burgundy-700);
  text-decoration: none;
}

.contact-link-icon {
  width: 20px;
  height: 20px;
  color: var(--burgundy-700);
  flex-shrink: 0;
}

.contact-link-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: var(--marble);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  color: var(--text-dark);
  font-family: var(--font-sans);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--burgundy-700);
  box-shadow: 0 0 0 3px rgba(123, 25, 53, 0.15);
}

.form-input.has-error,
.form-textarea.has-error {
  border-color: var(--color-error);
}

.form-input.has-error:focus,
.form-textarea.has-error:focus {
  box-shadow: 0 0 0 3px rgba(179, 58, 58, 0.15);
}

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

.form-error {
  display: none;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-1);
}

.form-error.is-visible {
  display: block;
}

.form-status {
  display: none;
  padding: var(--space-4);
  border-radius: var(--border-radius);
  margin-top: var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background-color: #E8F5E9;
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.form-status--error {
  background-color: #FFEBEE;
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

.form-panel {
  background-color: var(--parchment-100);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  position: relative;
  /* Marble texture handled by base .card + .form-input etc. selectors */
}

.form-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-8);
  right: var(--space-8);
  height: 2px;
  background-color: var(--burgundy-700);
  border-radius: 0 0 2px 2px;
}

.form-submit {
  width: 100%;
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: var(--space-16) 0;
}

.cta-section h2 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-3);
}

.cta-section p {
  font-family: var(--font-sans);
  max-width: var(--content-width);
  margin: 0 auto var(--space-8);
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--walnut-950);
  border-top: 1px solid var(--border-dark);
  padding: var(--space-8) 0;
  text-align: center;
}

.footer-text {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--parchment-300);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
}

.footer-link {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--parchment-300);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--burgundy-500);
  text-decoration: underline;
}

/* ---------- Page Header ---------- */
.page-header {
  padding: var(--space-16) 0 var(--space-8);
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-3);
}

.page-header p {
  font-family: var(--font-sans);
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: var(--text-lg);
  color: var(--text-muted-dark);
}

/* ---------- Responsive ---------- */

/* Tablet and below */
@media (max-width: 1024px) {
  .about-credentials {
    justify-content: center;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .hero {
    padding: var(--space-12) 0;
  }

  .hero h1 {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .section {
    padding: var(--space-12) 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile navigation */
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--walnut-950);
    border-bottom: 1px solid var(--border-dark);
    padding: var(--space-4) var(--space-6);
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
  }

  .nav-link {
    font-size: var(--text-sm);
    color: var(--parchment-300);
  }

  .page-header {
    padding: var(--space-10) 0 var(--space-6);
  }

  .contact-layout {
    gap: var(--space-6);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}