/* ==========================================================================
   Adrian Gramada — personal site
   Minimal, responsive, single-page scroll
   ========================================================================== */

:root {
   --navy: #0B2444;
   --near-black: #161415;
   --accent: #F06000;
   --teal: #11ABB0;
   --white: #ffffff;
   --off-white: #FAFAFA;
   --ink: #313131;
   --muted: #838C95;
   --muted-light: #A9ADB2;
   --border: #E8E8E8;

   --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
   --max-width: 880px;
   --max-width-wide: 1180px;
}

* , *::before, *::after { box-sizing: border-box; }

html {
   scroll-behavior: smooth;
   scroll-padding-top: 70px;
}

body {
   margin: 0;
   font-family: var(--font);
   font-size: 16px;
   line-height: 1.7;
   color: var(--ink);
   background: var(--white);
   -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
   margin: 0 0 16px;
   font-weight: 700;
   line-height: 1.2;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; margin: 0; padding: 0; }

img { max-width: 100%; }

/* ------------------------------------------------------------------ */
/* Scroll reveal                                                       */
/* ------------------------------------------------------------------ */

.reveal {
   opacity: 0;
   transform: translateY(24px);
   transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
   opacity: 1;
   transform: none;
}

@media (prefers-reduced-motion: reduce) {
   html { scroll-behavior: auto; }
   .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------ */
/* Progress bar + Nav                                                  */
/* ------------------------------------------------------------------ */

.progress-bar {
   position: fixed;
   top: 0; left: 0;
   height: 3px;
   width: 0%;
   background: var(--accent);
   z-index: 1000;
   transition: width .1s linear;
}

.nav {
   position: fixed;
   top: 0; left: 0; right: 0;
   z-index: 900;
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 18px 6%;
   background: transparent;
   transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.solid {
   background: rgba(11, 36, 68, 0.92);
   backdrop-filter: blur(6px);
   padding: 12px 6%;
   box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.nav-brand {
   display: flex;
   align-items: center;
}
.logo-mark {
   width: 38px;
   height: 38px;
   display: block;
   transition: transform .3s ease;
}
.nav-brand:hover .logo-mark {
   transform: rotate(-6deg) scale(1.05);
}

.nav-links {
   display: flex;
   gap: 32px;
}
.nav-links a {
   font-size: 14px;
   font-weight: 600;
   letter-spacing: .3px;
   color: rgba(255,255,255,.75);
   padding: 6px 0;
   border-bottom: 2px solid transparent;
   transition: color .2s ease, border-color .2s ease;
}
.nav-links a:hover,
.nav-links a.active {
   color: var(--white);
   border-color: var(--accent);
}
.nav-links a:focus {
   outline: none;
}
.nav-links a:focus-visible {
   outline: 2px solid rgba(255,255,255,.6);
   outline-offset: 4px;
   border-radius: 2px;
}

.nav-toggle {
   display: none;
   flex-direction: column;
   justify-content: space-between;
   width: 26px;
   height: 18px;
   background: none;
   border: none;
   padding: 0;
   cursor: pointer;
}
.nav-toggle span {
   display: block;
   height: 2px;
   width: 100%;
   background: var(--white);
   border-radius: 2px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
   min-height: 100vh;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   text-align: center;
   padding: 100px 6% 60px;
   background:
      radial-gradient(circle at 20% 20%, rgba(17,171,176,.18), transparent 45%),
      radial-gradient(circle at 80% 80%, rgba(240,96,0,.15), transparent 45%),
      linear-gradient(160deg, var(--near-black), var(--navy));
   color: var(--white);
   position: relative;
   overflow: hidden;
   isolation: isolate;
}

/* Graphic layer 1: faint engineering grid + dots, fading out towards the edges */
.hero::before {
   content: "";
   position: absolute;
   inset: 0;
   z-index: -1;
   background-image:
      radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.5px),
      linear-gradient(rgba(17,171,176,.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(17,171,176,.07) 1px, transparent 1px);
   background-size: 32px 32px, 128px 128px, 128px 128px;
   background-position: 0 0, -1px -1px, -1px -1px;
   -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 80%);
           mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 80%);
}

/* Graphic layer 2: network constellations in the corners + slowly drifting glows */
.hero::after {
   content: "";
   position: absolute;
   inset: -10%;
   z-index: -1;
   pointer-events: none;
   background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg stroke='%2311ABB0' stroke-opacity='.35' stroke-width='1' fill='none'%3E%3Cpath d='M40 60L140 30L230 90L330 50M140 30L120 150L230 90L260 200L360 170M120 150L60 240L170 270L260 200M170 270L150 360L280 330L260 200M330 50L360 170'/%3E%3C/g%3E%3Cg fill='%2311ABB0'%3E%3Ccircle cx='40' cy='60' r='3'/%3E%3Ccircle cx='140' cy='30' r='4'/%3E%3Ccircle cx='230' cy='90' r='3'/%3E%3Ccircle cx='330' cy='50' r='3'/%3E%3Ccircle cx='120' cy='150' r='3'/%3E%3Ccircle cx='260' cy='200' r='4'/%3E%3Ccircle cx='360' cy='170' r='3'/%3E%3Ccircle cx='60' cy='240' r='3'/%3E%3Ccircle cx='170' cy='270' r='3'/%3E%3Ccircle cx='150' cy='360' r='3'/%3E%3C/g%3E%3Ccircle cx='280' cy='330' r='4' fill='%23F06000'/%3E%3C/svg%3E") no-repeat right 8% top 20% / min(40vw, 440px) auto,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg stroke='%2311ABB0' stroke-opacity='.35' stroke-width='1' fill='none'%3E%3Cpath d='M40 60L140 30L230 90L330 50M140 30L120 150L230 90L260 200L360 170M120 150L60 240L170 270L260 200M170 270L150 360L280 330L260 200M330 50L360 170'/%3E%3C/g%3E%3Cg fill='%2311ABB0'%3E%3Ccircle cx='40' cy='60' r='3'/%3E%3Ccircle cx='140' cy='30' r='4'/%3E%3Ccircle cx='230' cy='90' r='3'/%3E%3Ccircle cx='330' cy='50' r='3'/%3E%3Ccircle cx='120' cy='150' r='3'/%3E%3Ccircle cx='260' cy='200' r='4'/%3E%3Ccircle cx='360' cy='170' r='3'/%3E%3Ccircle cx='60' cy='240' r='3'/%3E%3Ccircle cx='170' cy='270' r='3'/%3E%3Ccircle cx='150' cy='360' r='3'/%3E%3C/g%3E%3Ccircle cx='280' cy='330' r='4' fill='%23F06000'/%3E%3C/svg%3E") no-repeat left 6% bottom 10% / min(34vw, 360px) auto,
      radial-gradient(circle at 30% 35%, rgba(17,171,176,.16), transparent 35%),
      radial-gradient(circle at 70% 70%, rgba(240,96,0,.10), transparent 35%);
   opacity: .55;
   animation: hero-drift 24s ease-in-out infinite alternate;
}

@keyframes hero-drift {
   from { transform: translate3d(0, 0, 0); }
   to   { transform: translate3d(-2%, 2%, 0); }
}

@media (prefers-reduced-motion: reduce) {
   .hero::after { animation: none; }
}

.hero-inner { max-width: 640px; }

.hero h1 {
   font-size: clamp(38px, 7vw, 72px);
   letter-spacing: -1px;
   margin-bottom: 14px;
   color: var(--white);
}

.hero-lead {
   display: inline-block;
   font-family: 'Caveat', cursive;
   font-weight: 700;
   font-size: clamp(30px, 4.6vw, 46px);
   line-height: 1;
   color: var(--accent);
   transform: rotate(-4deg);
   margin-right: 10px;
   text-decoration: underline wavy rgba(240,96,0,.45);
   text-underline-offset: 8px;
   vertical-align: middle;
   position: relative;
   top: -4px;
}

.hero-tagline {
   font-size: clamp(16px, 2.4vw, 20px);
   color: rgba(255,255,255,.85);
   margin-bottom: 6px;
}

.hero-location {
   display: inline-flex;
   align-items: center;
   gap: 7px;
   font-size: 14px;
   color: rgba(255,255,255,.55);
   margin-bottom: 36px;
}
.hero-location .flag {
   font-size: 15px;
   line-height: 1;
   transform: translateY(-0.5px);
}

.social {
   display: flex;
   justify-content: center;
   gap: 18px;
}
.social a {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 44px;
   height: 44px;
   border-radius: 50%;
   border: 1px solid rgba(255,255,255,.25);
   color: var(--white);
   transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.social a svg { width: 18px; height: 18px; }
.social a:hover {
   background: var(--accent);
   border-color: var(--accent);
   transform: translateY(-3px);
}

.scroll-cue {
   position: absolute;
   bottom: 36px;
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 6px;
   color: rgba(255,255,255,.6);
   font-size: 12px;
   letter-spacing: 1px;
   text-transform: uppercase;
   animation: bob 2.2s ease-in-out infinite;
}
.scroll-cue svg { width: 18px; height: 18px; }

@keyframes bob {
   0%, 100% { transform: translateX(-50%) translateY(0); }
   50% { transform: translateX(-50%) translateY(8px); }
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.section {
   padding: 110px 6%;
}
.section-light  { background: var(--white); }
.section-muted  { background: var(--off-white); }
.section-dark   {
   background: linear-gradient(160deg, var(--navy), var(--near-black));
   color: rgba(255,255,255,.85);
}
.section-dark h2,
.section-dark h3 { color: var(--white); }

.section-inner {
   max-width: var(--max-width);
   margin: 0 auto;
}

.section-next {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 40px;
   height: 40px;
   margin: 56px auto 0;
   border-radius: 50%;
   border: 1px solid var(--border);
   color: var(--muted);
   transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.section-next svg { width: 16px; height: 16px; }
.section-next:hover {
   border-color: var(--accent);
   color: var(--accent);
   transform: translateY(3px);
}
.section-dark .section-next {
   border-color: rgba(255,255,255,.2);
   color: rgba(255,255,255,.6);
}
.section-wide .section-inner {
   max-width: var(--max-width-wide);
}

.section h2 {
   font-size: clamp(26px, 4vw, 34px);
   position: relative;
   display: inline-block;
   margin-bottom: 48px;
}
.section h2::after {
   content: "";
   position: absolute;
   left: 0; bottom: -12px;
   width: 46px;
   height: 3px;
   background: var(--accent);
}

/* ------------------------------------------------------------------ */
/* About                                                               */
/* ------------------------------------------------------------------ */

/* "Daylight" echo of the hero: the same teal/orange glows and engineering
   grid, washed out to a whisper so the text stays fully legible, fading
   down into the off-white of the Timeline section below. */
#about {
   position: relative;
   isolation: isolate;
   overflow: hidden;
   background:
      radial-gradient(ellipse 60% 45% at 12% 0%, rgba(17,171,176,.10), transparent 70%),
      radial-gradient(ellipse 50% 40% at 92% 8%, rgba(240,96,0,.07), transparent 70%),
      radial-gradient(ellipse 45% 30% at 100% 62%, rgba(17,171,176,.06), transparent 70%),
      linear-gradient(180deg, #EEF3F7 0%, #F7F9FB 38%, var(--off-white) 100%);
}

/* Seam: a thin teal → orange line where the hero ends (matches the logo gradient) */
#about::before {
   content: "";
   position: absolute;
   top: 0; left: 0; right: 0;
   height: 3px;
   z-index: -1;
   background: linear-gradient(90deg, transparent, var(--teal) 25%, var(--accent) 75%, transparent);
   opacity: .55;
}

/* Faint dot grid + blueprint lines, strongest near the top and fading out */
#about::after {
   content: "";
   position: absolute;
   inset: 0;
   z-index: -1;
   pointer-events: none;
   background-image:
      radial-gradient(rgba(11,36,68,.11) 1px, transparent 1.5px),
      linear-gradient(rgba(17,171,176,.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(17,171,176,.06) 1px, transparent 1px);
   background-size: 32px 32px, 128px 128px, 128px 128px;
   background-position: 0 0, -1px -1px, -1px -1px;
   -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.45) 40%, transparent 85%);
           mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.45) 40%, transparent 85%);
}

/* Lift the credentials bar off the tinted background */
#about .credentials-bar {
   background: rgba(255,255,255,.78);
   border-color: rgba(11,36,68,.08);
   box-shadow: 0 10px 30px -18px rgba(11,36,68,.35);
   -webkit-backdrop-filter: blur(4px);
           backdrop-filter: blur(4px);
}

.about-lead {
   font-size: 17px;
   color: var(--muted);
   margin-bottom: 48px;
}

.about-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 32px;
   margin-bottom: 40px;
}

.about-col {
   text-align: center;
}

.about-col-inner {
   display: inline-block;
   text-align: left;
}

.about-col h3 {
   font-size: 15px;
   letter-spacing: .2px;
   margin-bottom: 18px;
   padding-bottom: 12px;
   border-bottom: 2px solid var(--accent);
   display: inline-block;
}

.about-col ul {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: 10px;
}
.about-col li {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   font-size: 14.5px;
   color: var(--muted);
}
.about-col li::before {
   content: "";
   flex-shrink: 0;
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: var(--teal);
}

.credentials-bar {
   display: flex;
   flex-wrap: wrap;
   background: var(--off-white);
   border: 1px solid var(--border);
   border-radius: 16px;
   padding: 8px;
}
.credential {
   flex: 1 1 220px;
   display: flex;
   align-items: flex-start;
   gap: 14px;
   padding: 16px 24px;
   border-left: 1px solid var(--border);
}
.credential:first-child { border-left: none; }
.credential-icon { font-size: 22px; line-height: 1; }
.credential-title {
   font-weight: 700;
   font-size: 14px;
   color: var(--ink);
   margin: 0 0 2px;
}
.credential-sub {
   font-size: 12.5px;
   color: var(--muted);
   margin: 0;
}

/* ------------------------------------------------------------------ */
/* Timeline                                                            */
/* ------------------------------------------------------------------ */

/* "Journey map": picks up the off-white where About fades out, adds faint
   topographic contours in the margins (a nod to the 🧭 heading), and cools
   gradually towards the bottom so the step into the dark Skills section
   feels intentional rather than abrupt. */
#timeline {
   position: relative;
   isolation: isolate;
   overflow: hidden;
   background:
      radial-gradient(ellipse 50% 35% at 0% 30%, rgba(240,96,0,.045), transparent 70%),
      radial-gradient(ellipse 55% 35% at 100% 75%, rgba(17,171,176,.07), transparent 70%),
      linear-gradient(180deg, var(--off-white) 0%, #F5F7FA 55%, #E9EEF4 100%);
}

/* Contour lines: top-left and bottom-right, kept mostly in the side margins */
#timeline::before {
   content: "";
   position: absolute;
   inset: 0;
   z-index: -1;
   pointer-events: none;
   background:
      url("../images/contours.svg") no-repeat left -180px top 60px / 560px auto,
      url("../images/contours.svg") no-repeat right -220px bottom 40px / 680px auto;
   opacity: .32;
}

/* Seam into Skills: the same teal → orange line used at the top of About */
#timeline::after {
   content: "";
   position: absolute;
   bottom: 0; left: 0; right: 0;
   height: 3px;
   z-index: -1;
   background: linear-gradient(90deg, transparent, var(--teal) 25%, var(--accent) 75%, transparent);
   opacity: .55;
}

.timeline {
   position: relative;
   padding-left: 56px;
}
/* The trail: starts orange at the current role, cools to teal, fades into the past */
.timeline::before {
   content: "";
   position: absolute;
   left: 21px;
   top: 6px;
   bottom: 6px;
   width: 2px;
   border-radius: 2px;
   background: linear-gradient(180deg, var(--accent) 0%, var(--teal) 30%, rgba(17,171,176,.35) 75%, var(--border) 100%);
}

.timeline-item {
   position: relative;
   padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
   position: absolute;
   left: -56px;
   top: 0;
   width: 44px;
   height: 44px;
   border-radius: 50%;
   background: var(--white);
   border: 2px solid var(--border);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 19px;
   z-index: 1;
}
.timeline-current .timeline-marker {
   border-color: var(--accent);
   box-shadow: 0 0 0 4px rgba(240,96,0,.15);
}

.timeline-card h3 {
   font-size: 19px;
   margin-bottom: 4px;
}
.timeline-date {
   font-size: 13px;
   font-weight: 700;
   letter-spacing: .5px;
   text-transform: uppercase;
   color: var(--accent);
   margin-bottom: 6px;
}
.timeline-org {
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 14px;
   font-weight: 600;
   color: var(--muted);
   margin-bottom: 10px;
}
.org-logo {
   height: 20px;
   width: auto;
   max-width: 72px;
   object-fit: contain;
   flex-shrink: 0;
}
.timeline-card p:not(.timeline-date):not(.timeline-org) {
   color: var(--muted);
   font-size: 15px;
   margin-bottom: 0;
}

.timeline-card p:not(.timeline-date):not(.timeline-org) + p {
   margin-top: 12px;
}

.timeline-list {
   margin-top: 12px;
   display: flex;
   flex-direction: column;
   gap: 8px;
}
.timeline-list li {
   position: relative;
   padding-left: 16px;
   font-size: 14px;
   color: var(--muted);
   line-height: 1.6;
}
.timeline-list li::before {
   content: "–";
   position: absolute;
   left: 0;
   color: var(--accent);
   font-weight: 700;
}

.timeline-achievements {
   margin-top: 16px;
   padding-top: 16px;
   border-top: 1px dashed var(--border);
}
.timeline-achievements .label {
   font-size: 12px;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: .5px;
   color: var(--teal);
   margin-bottom: 10px;
}

/* ------------------------------------------------------------------ */
/* Skills                                                              */
/* ------------------------------------------------------------------ */

/* "Workbench": back to the dark of the hero, with the same teal/orange glows
   and a whisper of the dot grid, plus faint circuit-board traces running in
   from the margins (a nod to the 🛠️ heading). Darkens towards the bottom so
   it settles seamlessly into the near-black footer. */
#skills {
   position: relative;
   isolation: isolate;
   overflow: hidden;
   background:
      radial-gradient(ellipse 55% 30% at 50% 0%, rgba(17,171,176,.12), transparent 70%),
      radial-gradient(ellipse 45% 35% at 100% 35%, rgba(240,96,0,.08), transparent 70%),
      radial-gradient(ellipse 45% 35% at 0% 80%, rgba(17,171,176,.08), transparent 70%),
      radial-gradient(rgba(255,255,255,.045) 1px, transparent 1.5px) 0 0 / 32px 32px,
      linear-gradient(180deg, var(--navy) 0%, #0F1C2E 70%, var(--near-black) 100%);
}

/* Circuit traces: top-left, entering from the left edge */
#skills::before,
#skills::after {
   content: "";
   position: absolute;
   z-index: -1;
   pointer-events: none;
   width: 560px;
   height: 560px;
   background: url("../images/circuit.svg") no-repeat 0 0 / contain;
   opacity: .28;
}
#skills::before {
   top: 40px;
   left: -60px;
}
/* …and bottom-right, the same board rotated to enter from the right edge */
#skills::after {
   bottom: 30px;
   right: -60px;
   transform: rotate(180deg);
   opacity: .22;
}

.skills-grid {
   columns: 3 250px;
   column-gap: 22px;
}

.skill-card {
   background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
   border: 1px solid rgba(255,255,255,.09);
   border-radius: 16px;
   padding: 22px;
   break-inside: avoid;
   margin-bottom: 22px;
   box-shadow: 0 18px 40px -28px rgba(0,0,0,.8);
   -webkit-backdrop-filter: blur(6px);
           backdrop-filter: blur(6px);
}
/* Keep the reveal fade, and add a gentle lift + teal edge on hover */
.skill-card.reveal {
   transition: opacity .6s ease, transform .6s ease, border-color .25s ease, background .25s ease;
}
.skill-card.in-view:hover {
   transform: translateY(-3px);
   border-color: rgba(17,171,176,.38);
   background: linear-gradient(160deg, rgba(17,171,176,.09), rgba(255,255,255,.03));
}
@media (prefers-reduced-motion: reduce) {
   .skill-card.reveal { transition: none; }
   .skill-card.in-view:hover { transform: none; }
}

.skill-card-header {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-bottom: 16px;
   padding-bottom: 14px;
   border-bottom: 1px solid rgba(255,255,255,.09);
}
.skill-card-header h3 {
   font-size: 15px;
   margin: 0;
   color: var(--white);
}

.skill-icon {
   flex-shrink: 0;
   width: 34px;
   height: 34px;
   border-radius: 10px;
   background: linear-gradient(135deg, rgba(17,171,176,.22), rgba(240,96,0,.2));
   box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 16px;
}

.skill-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
}
.skill-tags li {
   display: flex;
   align-items: center;
   gap: 6px;
   font-size: 12.5px;
   padding: 6px 12px;
   border-radius: 999px;
   background: rgba(255,255,255,.06);
   color: rgba(255,255,255,.85);
}

.skill-card-wide {
   column-span: all;
   margin-top: 22px;
}
.skill-notes {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 10px 32px;
}
.skill-notes li {
   position: relative;
   padding-left: 16px;
   font-size: 14px;
   line-height: 1.6;
   color: rgba(255,255,255,.75);
}
.skill-notes li::before {
   content: "–";
   position: absolute;
   left: 0;
   color: var(--accent);
   font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.footer {
   background: var(--near-black);
   color: rgba(255,255,255,.6);
   padding: 50px 6% 40px;
   text-align: center;
}
.footer-inner {
   max-width: var(--max-width);
   margin: 0 auto;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 20px;
}
.social-footer a {
   width: 38px;
   height: 38px;
   border-color: rgba(255,255,255,.15);
}
.social-footer a svg { width: 16px; height: 16px; }

.go-top {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 38px;
   height: 38px;
   border-radius: 50%;
   background: rgba(255,255,255,.06);
   transition: background .2s ease;
}
.go-top:hover { background: var(--accent); }
.go-top svg { width: 16px; height: 16px; }

.footer-note {
   font-size: 13px;
   margin: 0;
}

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

@media (max-width: 900px) {
   .skill-notes {
      grid-template-columns: 1fr;
   }
   .about-grid {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      width: fit-content;
      margin: 0 auto 56px;
      gap: 28px;
   }
   .about-col {
      text-align: left;
   }
   .credentials-bar {
      flex-direction: column;
   }
   .credential {
      flex: 0 0 auto;
      border-left: none;
      border-top: 1px solid var(--border);
      padding: 16px 8px;
   }
   .credential:first-child { border-top: none; }
}

@media (max-width: 700px) {
   .nav-links {
      position: fixed;
      top: 0; right: 0;
      height: 100vh;
      width: 220px;
      flex-direction: column;
      justify-content: center;
      gap: 28px;
      background: rgba(11, 36, 68, 0.97);
      backdrop-filter: blur(6px);
      transform: translateX(100%);
      transition: transform .3s ease;
      padding-left: 40px;
   }
   .nav-links.open { transform: translateX(0); }
   .nav-toggle { display: flex; }

   .section { padding: 80px 6%; }

   #timeline::before {
      opacity: .2;
      background-position: left -200px top 40px, right -220px bottom 20px;
      background-size: 400px auto, 460px auto;
   }

   #skills::before,
   #skills::after {
      width: 360px;
      height: 360px;
      opacity: .16;
   }
   #skills::before { left: -120px; top: 20px; }
   #skills::after  { right: -120px; bottom: 20px; }

   .timeline { padding-left: 46px; }
   .timeline::before { left: 17px; }
   .timeline-marker {
      left: -46px;
      width: 36px;
      height: 36px;
      font-size: 16px;
   }
}
