/* ==========================================================================
   JF Portfolio 2026 — Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:        #07111b;
  --bg-2:      #0a1724;
  --card:      rgba(255, 255, 255, 0.045);
  --card-2:    rgba(255, 255, 255, 0.065);
  --line:      rgba(255, 255, 255, 0.12);
  --text:      #ffffff;
  --muted:     #b8c2cf;
  --muted-2:   #7f8b9a;
  --orange:    #ff7a1a;
  --orange-2:  #ff9a45;
  --blue:      #36a3ff;
  --shadow:    0 24px 60px rgba(0, 0, 0, 0.35);
  --radius:    18px;
  --max:       1240px;
  --px:        30px;                      /* side gutter — halved on mobile */
  --gutter:    calc(var(--px) * 2);       /* total horizontal space reserved */
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6, p { margin-top: 0; }

/* No top spacing on the first child of any element.
   Covers both margin-top and margin-block-start (used by WP block styles). */
:first-child {
  margin-top:         0;
  margin-block-start: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 950;
}

h1 strong, h2 strong, h3 strong,
h4 strong, h5 strong, h6 strong,
.wp-block-heading strong {
  font-weight: 950;
  font-style:  inherit;
}

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

h2 {
  font-size:      36px;
  line-height:    1.12;
  letter-spacing: -.04em;
  margin-bottom:  16px;
}

h3 {
  font-size:      24px;
  line-height:    1.2;
  letter-spacing: -.02em;
  margin-bottom:  12px;
}

h4 {
  font-size:     20px;
  line-height:   1.25;
  margin-bottom: 10px;
}

h5, h6 {
  font-size:     16px;
  margin-bottom: 8px;
}

p {
  color:       var(--muted);
  line-height: 1.65;
}

ul, ol {
  color: var(--muted);
}

/* WordPress required alignments */
.alignleft   { float: left;  margin-right: 1.5em; margin-bottom: 1em; }
.alignright  { float: right; margin-left: 1.5em;  margin-bottom: 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 1em; }
.alignskinny { max-width: 840px;  margin-inline: auto; }
.alignwide   { max-width: 1680px; margin-inline: auto; }

/* ---- Page content wrapper — owns the side gutter ----------------------- */
/* padding-inline on the wrapper propagates to every nested level, so all    */
/* content — direct blocks AND blocks inside Groups / Columns — stays inset  */
/* by --px. Full-width blocks use negative margins to escape.                */
.entry-content,
.page-content {
  padding-inline: var(--px);
  box-sizing:     border-box;
}

/* Center blocks at the content width inside the padded wrapper */
.entry-content > *,
.page-content  > * {
  max-width:     var(--max);
  margin-inline: auto;
  box-sizing:    border-box;
}

/* Specificity (0,2,0) overrides the centering rule above */
.entry-content > .alignskinny,
.page-content  > .alignskinny { max-width: 840px; }

.entry-content > .alignwide,
.page-content  > .alignwide   { max-width: 1680px; }

/* Full width — break out of the wrapper's padding to reach the viewport edges */
.entry-content > .alignfull,
.page-content  > .alignfull {
  width:         calc(100% + var(--gutter));
  max-width:     100vw;
  margin-inline: calc(var(--px) * -1);
}

/* Full-width blocks that use WordPress's constrained layout (Group, Columns
   used as page sections) have escaped the entry-content padding. WordPress's
   is-layout-constrained system centres their children via max-width alone —
   no horizontal padding — so on narrow screens content touches the edges.
   Re-apply the gutter as padding so children stay inset. */
.entry-content > .alignfull.is-layout-constrained,
.page-content  > .alignfull.is-layout-constrained {
  padding-inline: var(--px);
}

/* Global .alignfull used outside an entry-content wrapper */
.alignfull {
  width:         100vw;
  max-width:     100vw;
  margin-inline: calc(50% - 50vw);
}

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -999em;
  left: 0;
  padding: 12px 24px;
  background: var(--orange);
  color: white;
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  /* max-width absorbs the gutter so the inner content area aligns with
     page blocks: (--max 1240px) + (--gutter 60px) = 1300px outer,
     minus padding-inline gives exactly 1240px usable width — same as
     .entry-content > * which gets max-width:var(--max) inside a padded wrapper. */
  max-width:      calc(var(--max) + var(--gutter));
  width:          100%;
  margin-inline:  auto;
  padding-inline: var(--px);
  box-sizing:     border-box;
}

#page { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

section { scroll-margin-top: 90px; }

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 27, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

/* Brand / Logo */
.brand {
  align-items: center;
  gap: 14px;
  min-width: 245px;
  text-decoration: none;
  color: inherit;
  display: none;
}

.custom-logo {
  display: block;
  height: 50px;
  width: auto;
}

.brand-mark {
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
  color: var(--orange);
}

.brand-name {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 17px;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

/* Primary Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: #dce4ee;
}

.nav ul li { position: relative; }

.nav ul li a {
  display: block;
  position: relative;
  padding: 8px 0;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav ul li a:hover { color: var(--text); }

.nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  height: 2px;
  background: var(--orange);
  width: 0;
  transition: width 0.25s ease;
}

.nav ul li.current-menu-item > a::after,
.nav ul li > a:hover::after,
.nav ul li > a.active::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  padding: 10px 12px;
  color: var(--text);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 13px 22px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background-position 0.28s ease, border-color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(to right, #ffb060 0%, var(--orange) 50%);
  background-size: 200% 100%;
  background-position: right center;
  color: white;
  border: none;
  box-shadow: 0 15px 28px rgba(255, 122, 26, 0.18);
}
.btn-primary:hover { background-position: left center; color: white; }

.btn .btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-outline {
  border-color: rgba(255, 122, 26, 0.65);
  color: white;
  background: linear-gradient(to right, rgba(255, 122, 26, 0.6) 0%, rgba(255, 122, 26, 0) 50%);
  background-size: 200% 100%;
  background-position: right center;
}
.btn-outline:hover { background-position: left center; }

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 33%, rgba(255, 122, 26, 0.2), transparent 30%),
    radial-gradient(circle at 42% 12%, rgba(37, 99, 235, 0.22), transparent 27%),
    linear-gradient(90deg, rgba(7, 17, 27, 0.96), rgba(7, 17, 27, 0.72));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  padding: 78px 0 70px;
  align-items: center;
}

.eyebrow {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 14px;
}

.orange { color: var(--orange); }

.hero-copy {
  max-width: 615px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Trusted logos strip */
.trusted { margin-top: 52px; }
.trusted-label {
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 16px;
}
.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 20px;
  font-weight: 950;
  align-items: center;
}

/* Hero Visual Panel */
.hero-visual {
  min-height: 455px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(10, 21, 32, 0.95), rgba(2, 7, 13, 0.94)),
    radial-gradient(circle at 70% 25%, rgba(255, 122, 26, 0.22), transparent 32%);
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

/* Tech Tags */
.floating-tags {
  position: absolute;
  top: 34px;
  left: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 2;
}

.tag {
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid rgba(54, 163, 255, 0.22);
  background: rgba(7, 33, 55, 0.62);
  font-weight: 800;
  font-size: 13px;
  color: #ecf7ff;
}

/* Strategy Card */
.strategy-card {
  position: absolute;
  top: 34px;
  right: 34px;
  z-index: 2;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 122, 26, 0.28);
  background: rgba(0, 0, 0, 0.36);
  text-align: right;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.strategy-card div {
  color: #d5dce7;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.strategy-line {
  width: 88px;
  height: 4px;
  background: var(--orange);
  margin: 13px 0 0 auto;
}

/* Code Window */
.code-window {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 20, 31, 0.96);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
  padding: 22px;
}

.window-dots {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
}

.dot { width: 11px; height: 11px; border-radius: 50%; }

/* Hyphenated variants (legacy) */
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

/* Two-class variants used in HTML: <span class="dot red"> */
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }
.filename   { color: var(--muted-2); margin-left: 12px; font-size: 12px; }

.code-content {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.code-lines {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: #ced6e2;
  font-size: 13px;
  line-height: 1.8;
}
.code-lines p { margin: 0; }
.code-orange { color: #ff9a45; }
.code-blue   { color: #61dafb; }
.indent      { padding-left: 22px; }

/* Mini Site Preview */
.mini-site {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 13px;
}
.mini-pill   { width: 95px; height: 12px; border-radius: 50px; background: rgba(255, 122, 26, 0.78); margin-bottom: 12px; }
.mini-hero   { height: 58px; border-radius: 9px; background: rgba(255, 255, 255, 0.11); margin-bottom: 10px; }
.mini-grid   { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 10px; }
.mini-grid div { height: 48px; border-radius: 9px; background: rgba(255, 255, 255, 0.085); }
.mini-button { height: 30px; border-radius: 9px; background: rgba(255, 122, 26, 0.7); }

/* --------------------------------------------------------------------------
   7. Section Headings
   -------------------------------------------------------------------------- */
.section-title {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 950;
  margin-bottom: 24px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.text-link {
  color: var(--orange);
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.text-link:hover { color: var(--orange-2); }

/* --------------------------------------------------------------------------
   8. Services
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.service-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 26, 0.5);
  background: var(--card-2);
}

.icon {
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  color: var(--orange);
}

.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p  { color: var(--muted); font-size: 14px; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   9. Skills
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.skill-group {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.skill-group:first-child {
  border-left: 0;
  padding-left: 0;
}

.skill-group h3 {
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.skill-list { display: grid; gap: 10px; }

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 14px;
  color: #e6edf6;
}

.skill-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 122, 26, 0.14);
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  flex: 0 0 auto;
  letter-spacing: -.03em;
}

/* --------------------------------------------------------------------------
   10. Experience
   -------------------------------------------------------------------------- */
.experience-wrap {
  position: relative;
  margin-top: 34px;
}

.experience-line {
  position: absolute;
  left: 40px;
  right: 40px;
  top: -16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.experience-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  /* ::before dot sits 24px above this card — must not be clipped.
     Cards contain text only so overflow:visible is safe here. */
  overflow: visible !important;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateX(-50%);
  box-shadow: 0 0 0 7px var(--bg);
}

.job-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 15px;
}

.job-mark {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #102f62;
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: 14px;
  flex: 0 0 auto;
}

.job-company { font-weight: 950; }
.job-title   { color: var(--muted); font-size: 13px; }
.job-dates   { color: var(--orange); font-size: 13px; font-weight: 900; }
.experience-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* --------------------------------------------------------------------------
   11. Projects / Portfolio
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.project-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--orange) !important;
}

.project-thumb {
  height: 135px;
  padding: 16px;
  background: linear-gradient(135deg, #111827, #172554, #0f172a);
}
.project-thumb.two   { background: linear-gradient(135deg, #1e3a8a, #1f2937, #7f1d1d); }
.project-thumb.three { background: linear-gradient(135deg, #18181b, #431407, #1e293b); }
.project-thumb.four  { background: linear-gradient(135deg, #0f172a, #164e63, #172554); }
.project-thumb.five  { background: linear-gradient(135deg, #172554, #0f172a, #44403c); }

.project-wire {
  height: 100%;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
}

.wire-pill   { width: 65px; height: 8px; background: var(--orange); border-radius: 40px; margin-bottom: 11px; }
.wire-hero   { height: 46px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); margin-bottom: 8px; }
.wire-cols   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wire-cols div { height: 24px; border-radius: 6px; background: rgba(255, 255, 255, 0.09); }

.project-body { padding: 17px; }

.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  align-items: flex-start;
}

.project-title-row h3 { font-size: 16px; margin-bottom: 3px; }

/* Arrow injected via ::after on the title row */
.project-title-row::after {
  content: '↗';
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 8px;
  margin-top: 3px;
  transition: color 0.2s ease;
}
.project-card:hover .project-title-row::after {
  color: var(--orange);
}

/* If the card block already has the .external span, hide the duplicate */
.external { display: none; }

.project-body p { color: var(--muted-2); font-size: 13px; margin: 0; }

/* --------------------------------------------------------------------------
   12. About & Contact
   -------------------------------------------------------------------------- */
.about-contact {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 28px;
}

.about-card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 32px;
}

.about-card h2,
.contact-card h2 {
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -.04em;
  font-weight: 950;
  margin-bottom: 16px;
}

.about-card p,
.contact-card p { color: var(--muted); }

.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.about-point {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--line);
}

.contact-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 13, 0.96));
}

.contact-list {
  margin: 24px 0 28px;
  display: grid;
  gap: 12px;
  color: #e4edf8;
  font-size: 15px;
}

.contact-list span {
  color: var(--orange);
  margin-right: 10px;
  font-weight: 950;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted-2);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  color: var(--orange);
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -.06em;
}

.footer-logo {
  display: block;
  height: 32px;
  width: auto;
}

.socials {
  display: flex;
  gap: 14px;
  font-weight: 900;
}

.socials a {
  color: var(--muted-2);
  transition: color 0.2s ease;
}
.socials a:hover { color: var(--orange); }

/* --------------------------------------------------------------------------
   14. Gutenberg Block Overrides
   -------------------------------------------------------------------------- */

/* ── Buttons Block ───────────────────────────────────────────────────────── */

/* Shared base — resets WP defaults and sets font/shape */
.wp-block-button__link {
  font-family:     inherit;
  font-weight:     800;
  font-size:       14px;
  border-radius:   7px !important;
  padding:         13px 22px;
  text-decoration: none;
  white-space:     nowrap;
  transition:      background-position 0.28s ease, border-color 0.2s ease;
  cursor:          pointer;
}

/* Default (fill) — gradient orange, matches .btn-primary */
.wp-block-button:not(.is-style-outlined) .wp-block-button__link {
  background:          linear-gradient(to right, #ffb060 0%, var(--orange) 50%) !important;
  background-size:     200% 100% !important;
  background-position: right center !important;
  color:               #ffffff !important;
  border:              1px solid transparent !important;
  box-shadow:          0 15px 28px rgba(255, 122, 26, 0.18);
}
.wp-block-button:not(.is-style-outlined) .wp-block-button__link:hover {
  background-position: left center !important;
  color:               #ffffff !important;
}

/* Outlined — transparent with orange border, matches .btn-outline */
.wp-block-button.is-style-outlined .wp-block-button__link {
  background:          linear-gradient(to right, rgba(255, 122, 26, 0.6) 0%, rgba(255, 122, 26, 0) 50%) !important;
  background-size:     200% 100% !important;
  background-position: right center !important;
  border:              1px solid rgba(255, 122, 26, 0.65) !important;
  color:               #ffffff !important;
  box-shadow:          none;
}
.wp-block-button.is-style-outlined .wp-block-button__link:hover {
  background-position: left center !important;
}

/* Arrow — filled orange gradient + sliding → */
.wp-block-button.is-style-arrow .wp-block-button__link {
  background:          linear-gradient(to right, #ffb060 0%, var(--orange) 50%) !important;
  background-size:     200% 100% !important;
  background-position: right center !important;
  color:               #ffffff !important;
  border:              1px solid transparent !important;
  box-shadow:          0 15px 28px rgba(255, 122, 26, 0.18);
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover {
  background-position: left center !important;
  color:               #ffffff !important;
}
.wp-block-button.is-style-arrow .wp-block-button__link::after {
  content:    '→';
  display:    inline-block;
  margin-left: 8px;
  transition: transform 0.2s ease;
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover::after {
  transform: translateX(4px);
}

/* Outlined + Arrow — orange outline + sliding → */
.wp-block-button.is-style-outlined-arrow .wp-block-button__link {
  background:          linear-gradient(to right, rgba(255, 122, 26, 0.6) 0%, rgba(255, 122, 26, 0) 50%) !important;
  background-size:     200% 100% !important;
  background-position: right center !important;
  border:              1px solid rgba(255, 122, 26, 0.65) !important;
  color:               #ffffff !important;
  box-shadow:          none;
}
.wp-block-button.is-style-outlined-arrow .wp-block-button__link:hover {
  background-position: left center !important;
}
.wp-block-button.is-style-outlined-arrow .wp-block-button__link::after {
  content:    '→';
  display:    inline-block;
  margin-left: 8px;
  transition: transform 0.2s ease;
}
.wp-block-button.is-style-outlined-arrow .wp-block-button__link:hover::after {
  transform: translateX(4px);
}

/* Ghost — no background, no border, just text + sliding → arrow */
.wp-block-button.is-style-ghost .wp-block-button__link {
  background:   none !important;
  border:       none !important;
  box-shadow:   none !important;
  padding:      0 !important;
  color:        inherit;
}
.wp-block-button.is-style-ghost .wp-block-button__link::after {
  content:    '→';
  display:    inline-block;
  margin-left: 8px;
  transition: transform 0.2s ease;
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover::after {
  transform: translateX(4px);
}

/* Home Hero Gradient block style (Group, Columns) */
.wp-block-group.is-style-home-hero-gradient,
.wp-block-columns.is-style-home-hero-gradient,
.wp-block-group.is-style-home-hero-gradient,
.has-page-background-gradient-background {
  background:
    radial-gradient(circle at 75% 33%, rgba(255, 122, 26, 0.2), transparent 30%),
    radial-gradient(circle at 42% 12%, rgba(37, 99, 235, 0.22), transparent 27%),
    linear-gradient(90deg, rgba(7, 17, 27, 0.96), rgba(7, 17, 27, 0.72));
}

/* Rounded Corners block style (Group, Columns, Column, Cover) */
.wp-block-group.is-style-rounded-corners,
.wp-block-columns.is-style-rounded-corners,
.wp-block-column.is-style-rounded-corners,
.wp-block-cover.is-style-rounded-corners {
  border-radius: 20px;
  overflow: hidden;
}

/* Clip children to rounded corners whether radius comes from the style tile
   above or from any border-radius variant in the inline style
   (border-radius shorthand OR individual corner properties like
   border-top-left-radius — all contain the substring "radius"). */
.wp-block-group[style*="radius"],
.wp-block-columns[style*="radius"],
.wp-block-column[style*="radius"],
.wp-block-cover[style*="radius"] {
  overflow: hidden;
}

/* ── Paragraph Block Styles ──────────────────────────────────────────────── */

/* Overline — matches .eyebrow / heading overline */
.wp-block-paragraph.is-style-overline {
  color:          var(--orange);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size:      12px;
  font-weight:    900;
  line-height:    1.4;
  margin-bottom:  14px;
}

/* Small — 14 px body copy */
.wp-block-paragraph.is-style-small {
  font-size:   14px;
  line-height: 1.6;
}

/* Large — 18 px body copy */
.wp-block-paragraph.is-style-large {
  font-size:   18px;
  line-height: 1.75;
}

/* Heading: italic → orange accent (no italic rendering) */
.wp-block-heading em {
  font-style: normal;
  color: var(--orange);
}

/* Heading: Overline style — mirrors .eyebrow */
.wp-block-heading.is-style-overline {
  color:          var(--orange);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size:      12px;
  font-weight:    900;
  line-height:    1.4;
  margin:         0 0 14px;
}

/* Heading: Section Title style — mirrors .section-title */
.wp-block-heading.is-style-section-title {
  font-size:      32px;
  line-height:    1.15;
  letter-spacing: -.03em;
  font-weight:    950;
  margin-bottom:  24px;
}

/* h1 + Section Title keeps the large h1 scale instead of the generic 32px */
h1.wp-block-heading.is-style-section-title {
  font-size:      clamp(44px, 6vw, 74px);
  line-height:    1.05;
  letter-spacing: -.045em;
  font-weight:    950;
  margin-bottom:  22px;
}

.wp-block-group {
  margin-top: 0;
  margin-bottom: 0;
}

.has-orange-color       { color: var(--orange) !important; }
.has-orange-background-color { background-color: var(--orange) !important; }
.has-orange-light-color { color: var(--orange-2) !important; }
.has-blue-color         { color: var(--blue) !important; }
.has-bg-background-color { background-color: var(--bg) !important; }
.has-bg-2-background-color { background-color: var(--bg-2) !important; }
.has-muted-color        { color: var(--muted) !important; }
.has-white-color             { color:            var(--text) !important; }
.has-white-background-color  { background-color: var(--text) !important; }
.has-line-color              { color:            var(--line)   !important; }
.has-line-background-color   { background-color: var(--line)   !important; }
.has-card-background-color   { background-color: var(--card)   !important; }
.has-card-2-background-color { background-color: var(--card-2) !important; }

/* --------------------------------------------------------------------------
   15. 404 / Content
   -------------------------------------------------------------------------- */
.page-content,
.entry-content {
  width: 100%;
}

.error-404 { padding: 80px 0; }
.error-404 h1 { font-size: clamp(32px, 5vw, 56px); }

/* --------------------------------------------------------------------------
   16. Responsive — Tablet (≤ 1100px)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 17, 27, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
    z-index: 100;
  }
  .nav.is-open ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    font-size: 16px;
    width: 100%;
  }
  .nav.is-open ul li a::after { display: none !important; }
  .nav-toggle { display: flex; }

  .hero-inner,
  .about-contact { grid-template-columns: 1fr; }

  .services-grid,
  .projects-grid { grid-template-columns: repeat(2, 1fr); }

  .skills-grid    { grid-template-columns: repeat(3, 1fr); }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }

  .experience-line,
  .experience-card::before { display: none; }

  /* Restore overflow on cards at tablet — dots are hidden anyway,
     so the ::before clip no longer matters here */
  .experience-card { overflow: visible; }
}

/* --------------------------------------------------------------------------
   17. Responsive — Mobile (≤ 720px)
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  :root { --px: 20px; } /* tighten side gutter on mobile */

  .header-inner { align-items: flex-start; }
  .header-inner > .btn { display: none; }

  .hero-inner { padding: 52px 0; }
  .hero-visual { min-height: 560px; }

  .code-content { grid-template-columns: 1fr; }

  .floating-tags,
  .strategy-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin: 20px;
  }

  .code-window { left: 20px; right: 20px; bottom: 20px; }

  .services-grid,
  .projects-grid,
  .skills-grid,
  .experience-grid,
  .about-points { grid-template-columns: 1fr; }

  .skill-group {
    border-left: 0;
    padding-left: 0;
  }

  .section-heading-row,
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
