/* ========================================
   fergalmechin.fr — Editorial One Pager
   ======================================== */

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

:root {
  --bg:        #0c0c0f;
  --bg-panel:  #141418;
  --bg-raised: #1c1c22;
  --text:      #eae8e4;
  --text-dim:  #918f8b;
  --accent:    #e8a838;
  --accent-dim:#c4872a;
  --accent-glow: rgba(232, 168, 56, .15);
  --accent-glow-strong: rgba(232, 168, 56, .3);
  --serif:     'Playfair Display', Georgia, 'Times New Roman', serif;
  --mono:      'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --sans:      'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius:    6px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,.4);
  --shadow-lg: 0 16px 50px rgba(0,0,0,.5);
  --shadow-glow: 0 0 30px var(--accent-glow);
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  /* Subtle noise texture via SVG */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s, text-shadow .2s;
}
a:hover {
  color: #fff;
  text-shadow: 0 0 12px var(--accent-glow-strong);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* --- Section scaffolding --- */
.section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: grid;
  padding: clamp(2rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
}

/* Alternating subtle section backgrounds */
.section:nth-child(odd)  { background: var(--bg); }
.section:nth-child(even) { background: linear-gradient(160deg, var(--bg) 0%, #100f14 50%, var(--bg) 100%); }

/* Top accent line on each section */
.section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 5rem;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-dim) 0%, transparent 60%);
  opacity: .4;
}

.section:first-child::after { display: none; }

/* ===== NAV (fixed sidebar) ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 4rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  z-index: 100;
  background: linear-gradient(180deg, rgba(12,12,15,.95) 0%, rgba(20,20,24,.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(232,168,56,.08);
}

/* Vertical accent line in nav */
.nav::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(232,168,56,.15) 30%, rgba(232,168,56,.15) 70%, transparent 100%);
  z-index: -1;
}

.nav__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--text-dim);
  background: transparent;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  z-index: 1;
}

.nav__dot:hover,
.nav__dot.active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow-strong), 0 0 24px var(--accent-glow);
  transform: scale(1.3);
}

.nav__dot::after {
  content: attr(data-label);
  position: absolute;
  left: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-dim);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  transform: translateY(-50%) translateX(-4px);
  background: var(--bg-raised);
  padding: .25rem .6rem;
  border-radius: 3px;
  border: 1px solid rgba(232,168,56,.15);
}

.nav__dot:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ===== HERO (Section 1) ===== */
.hero {
  display: flex;
  flex-direction: column;
  padding-left: 6rem;
}

/* Large radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vh;
  background: radial-gradient(ellipse, rgba(232,168,56,.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

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

/* --- Top label --- */
.hero__label {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(232,168,56,.15);
  display: inline-block;
  flex-shrink: 0;
}

/* --- Two-column wrapper --- */
.hero__columns {
  display: flex;
  align-items: stretch;
  gap: clamp(2rem, 4vw, 5rem);
  flex: 1;
}

/* --- Left column: identity --- */
.hero__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

/* --- Right column: widget --- */
.hero__right {
  width: clamp(380px, 34vw, 500px);
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 1rem;
}

.hero__name {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero__name span {
  display: block;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow), 0 4px 20px rgba(0,0,0,.5);
}

.hero__tagline {
  margin-top: 2rem;
  font-size: 1.05rem;
  font-family: var(--sans);
  color: var(--text-dim);
  max-width: 45ch;
  line-height: 1.75;
}

/* ===== PRICING WIDGET ===== */
.widget {
  width: 100%;
  background: linear-gradient(170deg, var(--bg-raised) 0%, var(--bg-panel) 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0,0,0,.3);
  overflow: hidden;
  position: relative;
}

/* Subtle top glow */
.widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

/* --- Tabs --- */
.widget__tabs {
  display: flex;
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.widget__tab {
  flex: 1;
  padding: .75rem .7rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .25s;
  position: relative;
}

.widget__tab:hover {
  color: var(--text);
}

.widget__tab--active {
  color: var(--accent);
  background: rgba(232,168,56,.04);
}

.widget__tab--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* --- Panels --- */
.widget__panel {
  display: none;
  padding: 1.3rem 1.5rem 1.5rem;
}

.widget__panel--active {
  display: block;
}

/* --- Input row (days) --- */
.widget__label {
  display: block;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .5rem;
}

.widget__label--small {
  font-size: .68rem;
  margin-bottom: .3rem;
}

.widget__input-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1rem;
}

.widget__stepper {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--accent);
  font-size: 1.1rem;
  font-family: var(--mono);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget__stepper:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
}

.widget__stepper:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: none;
}

.widget__stepper:hover {
  background: rgba(232,168,56,.12);
  border-color: rgba(232,168,56,.25);
}

.widget__stepper:active {
  background: rgba(232,168,56,.2);
  transform: scale(.95);
}

.widget__input {
  flex: 1;
  height: 42px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  outline: none;
  transition: border-color .2s;
  -moz-appearance: textfield;
}

.widget__input::-webkit-inner-spin-button,
.widget__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.widget__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* --- Date details --- */
.widget__details {
  margin-bottom: 1rem;
}

.widget__summary {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--text-dim);
  cursor: pointer;
  padding: .55rem .8rem;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius);
  transition: all .2s;
  list-style: none;
}

.widget__summary::-webkit-details-marker { display: none; }

.widget__summary::before {
  content: '+ ';
  color: var(--accent);
  font-weight: 700;
}

details[open] .widget__summary::before {
  content: '− ';
}

.widget__summary:hover {
  background: rgba(232,168,56,.05);
  border-color: rgba(232,168,56,.15);
  color: var(--text);
}

.widget__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-top: .7rem;
}

.widget__input--date {
  width: 100%;
  height: 38px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--mono);
  font-size: .82rem;
  padding: 0 .6rem;
  outline: none;
  transition: border-color .2s;
  color-scheme: dark;
}

.widget__input--date:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.widget__duration {
  margin-top: .5rem;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-dim);
  opacity: .7;
  font-style: italic;
  min-height: 1.2em;
}

/* --- Results --- */
.widget__results {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.2rem;
}

.widget__result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem 0;
}

.widget__result--small {
  opacity: .7;
}

.widget__result--small .widget__result-label {
  font-size: .72rem;
}

.widget__result--small .widget__result-value {
  font-size: 1rem;
  color: var(--text-dim);
}

.widget__result--monthly {
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  padding: .35rem .5rem;
  background: rgba(255,255,255,.015);
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,.06);
}

.widget__result--monthly .widget__result-value {
  align-self: flex-end;
}

.widget__result-hourly {
  font-size: .72rem;
  color: var(--text-dim);
  opacity: .6;
  margin-left: .3rem;
}

.widget__disclaimer {
  display: inline;
  font-size: .5rem;
  font-style: italic;
  color: rgba(255,255,255,.3);
  letter-spacing: .05em;
  text-transform: none;
}

.widget__result--main {
  background: linear-gradient(90deg, rgba(232,168,56,.08), rgba(232,168,56,.03));
  padding: .7rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232,168,56,.15);
  margin: .2rem -.3rem;
}

.widget__result--main .widget__result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 15px var(--accent-glow);
}

.widget__result-label {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.widget__result-value {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}

/* --- CTA --- */
.widget__cta {
  display: block;
  text-align: center;
  width: 100%;
  padding: .8rem 1.2rem;
  font-size: .82rem;
}

.widget__cta--secondary {
  margin-top: .5rem;
  font-size: .72rem;
  padding: .6rem 1rem;
}

.widget__cta--secondary:hover {
  color: var(--bg);
  background: var(--accent);
}

/* --- Obligation de résultat panel --- */
.widget__resultat-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: .5rem 0;
  text-align: center;
}

.widget__resultat-text {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* --- Widget responsive --- */
.hero__rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-dim), transparent 70%);
  margin-top: 3rem;
  opacity: .3;
}

.hero__cta-row {
  display: flex;
  gap: 1.2rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: .75rem 1.8rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity .3s;
  z-index: -1;
}

.btn:hover {
  color: var(--bg);
  box-shadow: 0 0 20px var(--accent-glow-strong), var(--shadow-sm);
  text-shadow: none;
}

.btn:hover::before {
  opacity: 1;
}

.btn--filled {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 15px var(--accent-glow);
  font-weight: 500;
}

.btn--filled:hover {
  background: #f0b850;
  border-color: #f0b850;
  color: var(--bg);
  box-shadow: 0 4px 25px var(--accent-glow-strong), var(--shadow-md);
}

.btn--filled:hover::before { opacity: 0; }

/* ===== ABOUT (Section 2) ===== */
.about {
  grid-template-columns: 2fr 3fr;
  gap: clamp(2rem, 5vw, 6rem);
  padding-left: 6rem;
  align-content: center;
}

.about__heading {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 2rem;
}

.about__heading em {
  font-style: italic;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.about__sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dim);
  border-left: 3px solid var(--accent);
  padding: 1rem 0 1rem 1.4rem;
  line-height: 1.7;
  background: linear-gradient(90deg, var(--accent-glow) 0%, transparent 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.about__body {
  font-family: var(--sans);
}

.about__body p {
  margin-bottom: 1.2rem;
  color: var(--text-dim);
  line-height: 1.75;
}

.about__body p strong {
  color: var(--text);
  font-weight: 500;
}

/* ===== SKILLS (Section 3) ===== */
.skills {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-left: 6rem;
  align-content: center;
}

.skills__title {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin-bottom: 1rem;
}

.skill-col {
  background: linear-gradient(170deg, var(--bg-raised) 0%, var(--bg-panel) 100%);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  box-shadow: var(--shadow-md);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}

/* Subtle top accent gradient */
.skill-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim), transparent);
}

.skill-col:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(232,168,56,.12);
}

.skill-col__heading {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.skill-col ul {
  list-style: none;
}

.skill-col li {
  padding: .45rem 0;
  color: var(--text-dim);
  font-size: .88rem;
  position: relative;
  padding-left: 1.2rem;
  transition: color .2s, padding-left .2s;
}

.skill-col li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  transition: transform .2s;
}

.skill-col li:hover {
  color: var(--text);
  padding-left: 1.5rem;
}

.skill-col li:hover::before {
  transform: translateX(3px);
}

/* ===== PROJECTS (Section 4) ===== */
.projects {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-left: 6rem;
  align-content: center;
}

.projects__title {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin-bottom: 1rem;
}

.project-card {
  background: linear-gradient(170deg, var(--bg-raised) 0%, var(--bg-panel) 100%);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.project-card:hover {
  text-shadow: none;
}

/* Left accent bar on cards */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.project-card:hover {
  border-color: rgba(232,168,56,.15);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card__tag {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--mono);
}

.project-card__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--text);
}

.project-card__desc {
  font-size: .85rem;
  font-family: var(--sans);
  color: var(--text-dim);
  line-height: 1.65;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
  padding-top: .5rem;
}

.project-card__tech span {
  font-size: .63rem;
  padding: .25rem .6rem;
  border: 1px solid rgba(232,168,56,.15);
  border-radius: 3px;
  color: var(--text-dim);
  font-family: var(--mono);
  background: rgba(232,168,56,.04);
  transition: border-color .2s, color .2s;
}

.project-card:hover .project-card__tech span {
  border-color: rgba(232,168,56,.25);
  color: var(--text);
}

/* --- Featured project card --- */
.project-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(232,168,56,.08) 0%, var(--bg-panel) 40%, var(--bg-raised) 100%);
  border: 1.5px solid rgba(232,168,56,.2);
  box-shadow: var(--shadow-md), 0 0 40px var(--accent-glow), inset 0 1px 0 rgba(232,168,56,.1);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto 1fr auto;
  gap: .6rem 2rem;
  padding: clamp(1.8rem, 3vw, 2.8rem);
}

.project-card--featured .project-card__tag {
  grid-column: 1 / -1;
  font-size: .72rem;
  letter-spacing: .25em;
}

.project-card--featured .project-card__name {
  grid-column: 1;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.project-card--featured .project-card__desc {
  grid-column: 1;
  font-size: .95rem;
  max-width: 55ch;
  line-height: 1.7;
}

.project-card--featured .project-card__tech {
  grid-column: 1;
}

.project-card--featured .project-card__link {
  grid-column: 2;
  grid-row: 2 / 5;
  align-self: center;
  white-space: nowrap;
}

.project-card--featured::before {
  opacity: 1;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  box-shadow: 0 0 12px var(--accent-glow-strong);
}

.project-card--featured:hover {
  border-color: rgba(232,168,56,.35);
  box-shadow: var(--shadow-lg), 0 0 60px var(--accent-glow-strong);
  transform: translateY(-6px);
}

@media (max-width: 900px) {
  .project-card--featured {
    grid-template-columns: 1fr;
  }
  .project-card--featured .project-card__link {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

/* ===== EXPERIENCE (Section 5) ===== */
.experience {
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 6rem);
  padding-left: 6rem;
  align-content: center;
}

.experience__title {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin-bottom: 1rem;
}

.experience__labels {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.exp-label {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 1rem 1.2rem;
  background: var(--bg-panel);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.04);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, box-shadow .3s;
}

.exp-label:hover {
  border-color: rgba(232,168,56,.12);
  box-shadow: var(--shadow-md);
}

.exp-label strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin-top: .4rem;
}

.experience__timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 2px solid rgba(232,168,56,.2);
  padding-left: 2.2rem;
  position: relative;
}

/* Gradient fade on timeline line */
.experience__timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(232,168,56,.1) 100%);
}

.timeline-item {
  position: relative;
  padding: 1rem 1.2rem;
  background: var(--bg-panel);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.03);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

.timeline-item:hover {
  border-color: rgba(232,168,56,.12);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-2.2rem - 6px);
  top: 1.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 10px var(--accent-glow-strong);
}

/* Connector line from dot to card */
.timeline-item::after {
  content: '';
  position: absolute;
  left: calc(-2.2rem + 5px);
  top: calc(1.3rem + 4px);
  width: calc(2.2rem - 5px);
  height: 1px;
  background: rgba(232,168,56,.15);
}

.timeline-item__date {
  font-size: .72rem;
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.timeline-item__role {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: .3rem 0;
}

.timeline-item__detail {
  font-size: .85rem;
  font-family: var(--sans);
  color: var(--text-dim);
  line-height: 1.65;
}

/* ===== CONTACT (Section 6) ===== */
.contact {
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  padding-left: 6rem;
  align-content: center;
}

/* Large glow behind contact */
.contact::before {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 20%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(ellipse, rgba(232,168,56,.05) 0%, transparent 60%);
  pointer-events: none;
}

.contact > * { position: relative; z-index: 1; }

.contact__title {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
}

.contact__text {
  font-size: 1.05rem;
  font-family: var(--sans);
  color: var(--text-dim);
  line-height: 1.85;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg-panel) 100%);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .83rem;
  color: var(--text-dim);
  box-shadow: var(--shadow-sm);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}

/* Hover sweep effect */
.contact__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  transition: left .5s;
}

.contact__link:hover::before {
  left: 100%;
}

.contact__link:hover {
  border-color: rgba(232,168,56,.2);
  color: var(--text);
  transform: translateX(6px);
  box-shadow: var(--shadow-md), 0 0 20px var(--accent-glow);
  text-shadow: none;
}

.contact__link-label {
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: .15rem;
}

/* --- Primary contact link (email) --- */
.contact__link--primary {
  border: 1.5px solid rgba(232,168,56,.25);
  background: linear-gradient(135deg, rgba(232,168,56,.1) 0%, var(--bg-panel) 100%);
  font-size: 1rem;
  padding: 1.3rem 1.8rem;
  box-shadow: var(--shadow-md), 0 0 25px var(--accent-glow);
}

.contact__link--primary .contact__link-label {
  font-size: .72rem;
  margin-bottom: .3rem;
}

.contact__link--primary:hover {
  border-color: rgba(232,168,56,.4);
  box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow-strong);
}

/* ===== Section numbers ===== */
.section-num {
  position: absolute;
  top: clamp(1.5rem, 4vw, 4rem);
  right: clamp(1.5rem, 4vw, 4rem);
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 12rem);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  background: linear-gradient(180deg, rgba(232,168,56,.07) 0%, rgba(232,168,56,.02) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SCROLL HINT ===== */
.scroll-hint {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: .25em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { opacity: .3; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(-6px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav { display: none; }

  .section {
    padding: 2.5rem 1.5rem;
  }

  .section::after {
    left: 0;
  }

  .hero {
    padding-left: 1.5rem;
  }

  .hero__columns {
    flex-direction: column;
  }

  .hero__right {
    width: 100%;
    padding-top: 0;
  }

  .about,
  .skills,
  .experience,
  .contact {
    grid-template-columns: 1fr;
    padding-left: 1.5rem;
  }

  .projects {
    padding-left: 1.5rem;
    grid-template-columns: 1fr;
  }

  .hero__name {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .section-num {
    font-size: clamp(3.5rem, 18vw, 7rem);
  }

  .experience__timeline::before { display: none; }

  .mobile-nav {
    display: flex;
  }
}

@media (min-width: 901px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(12,12,15,.9), rgba(20,20,24,.98));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(232,168,56,.1);
  z-index: 100;
  display: flex;
  justify-content: space-around;
  padding: .7rem 0;
}

.mobile-nav a {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: .5rem .6rem;
  transition: color .2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* ===== Utility ===== */
.accent { color: var(--accent); }
