/* ===================================================================
   Garrett Vernon — Themed Portfolio (floodlight amber / night)
   =================================================================== */
@font-face {
  font-family: 'Indoor Soccer';
  src: url('uploads/Indoor Soccer Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
:root {
  --serif: 'Manuale', serif;
  --sans: 'Hanken Grotesk', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', monospace;
  --amber: #F6B53C;
  --amber-deep: #C9810F;
  --night: #0c0e13;
  --night-2: #12151d;
  --pitch: #F3F5F0;
  --light: #f6f7f4;
  --ink: #0f172b;
  --slate: #45556c;
  --line: rgba(15,23,43,.10);
  --maxw: 1240px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--light); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* shared type */
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; }
.serif { font-family: var(--serif); }
.num { font-family: var(--mono); font-weight: 500; letter-spacing: 0.04em; }

.btn { font-family: var(--sans); font-weight: 600; font-size: 15px; height: 48px; padding: 0 26px;
  border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  cursor: pointer; border: 1.5px solid transparent; white-space: nowrap; transition: transform .15s ease, background .2s ease, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: #1a1206; box-shadow: 0 8px 24px -8px rgba(246,181,60,.6); }
.btn-amber:hover { box-shadow: 0 12px 30px -8px rgba(246,181,60,.75); }
.btn-ghost-dark { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }

.chip { font-family: var(--sans); font-weight: 500; font-size: 12.5px; padding: 5px 12px; border-radius: 7px; white-space: nowrap; }

/* section heading block */
.sec-head { margin-bottom: 52px; }
.sec-head .kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sec-head .kicker .num { font-size: 14px; color: var(--amber-deep); }
.sec-head .kicker .eyebrow { color: var(--amber-deep); }
.sec-head .kicker .rule { flex: 0 0 46px; height: 2px; background: var(--amber); }
.sec-head h2 { font-family: var(--serif); font-weight: 700; font-size: 46px; line-height: 1.04; letter-spacing: -0.01em; color: var(--ink); }
.sec-head.center { text-align: center; }
.sec-head.center .kicker { justify-content: center; }
/* dark variant */
.dark .sec-head h2 { color: #fff; }
.dark .sec-head .kicker .num, .dark .sec-head .kicker .eyebrow { color: var(--amber); }

/* ===================== NAV ===================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 70px; display: flex; align-items: center;
  transition: box-shadow .3s ease; border-bottom: 1px solid transparent; }
.nav .wrap { display: flex; align-items: center; justify-content: center; }
.nav.scrolled { background: rgba(6,21,13,.88); backdrop-filter: blur(12px) saturate(1.2); border-bottom-color: rgba(255,255,255,.08); }
.logo { font-family: var(--serif); font-weight: 700; font-size: 22px; color: #fff; white-space: nowrap; }
.logo .dot { color: var(--amber); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-family: var(--sans); font-size: 18px; font-weight: 500; color: rgba(255,255,255,.82); transition: color .2s; }
.nav-links a:hover { color: var(--amber); }
.nav-cta { font-family: var(--sans); font-weight: 600; font-size: 16px; height: 40px; padding: 0 18px; border-radius: 8px;
  background: var(--amber); color: #1a1206; display: inline-flex; align-items: center; transition: transform .15s; }
.nav-cta:hover { transform: translateY(-2px); }

/* ===================== HERO ===================== */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: var(--night); }
.hero video, .hero .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero .scrim { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 50% 6%, rgba(0,0,0,0) 42%, rgba(0,0,0,.5) 100%),
  linear-gradient(to bottom, rgba(8,10,12,.66) 0%, rgba(8,10,12,.22) 40%, rgba(6,8,10,.86) 100%); }
.hero .grade { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 108%, rgba(246,181,60,.20), transparent 62%); }
.hero-inner { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 8% 14vh; }
.hero-center { display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { color: var(--amber); margin-bottom: 22px; }
.hero .hero-title { margin-bottom: 18px; font-size: 16px; }
.hero h1 { font-family: 'Indoor Soccer', var(--serif); font-weight: 700; font-size: clamp(40px, 5.8vw, 80px); line-height: 0.98; letter-spacing: 0.005em; margin-bottom: 36px; text-shadow: 0 2px 50px rgba(0,0,0,.5); white-space: nowrap; }
@media (max-width: 520px) { .hero h1 { white-space: normal; } }
.hero-stats { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-stats span:not(.sep) { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.hero-stats .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); flex: none; }
@media (max-width: 560px) { .hero-stats .sep { display: none; } .hero-stats { gap: 8px 16px; } }
.hero-blurb { position: absolute; left: 50%; bottom: 22vh; transform: translateX(-50%); width: 100%; margin: 0; max-width: 700px; font-family: var(--sans); font-size: 20px; font-weight: 400; line-height: 1.6; color: rgba(255,255,255,.82); text-wrap: pretty; }
.hero .sub { font-family: var(--serif); font-weight: 500; font-size: clamp(19px, 2.2vw, 25px); color: rgba(255,255,255,.84); margin-bottom: 36px; max-width: 720px; }
.hero .btns { display: flex; gap: 14px; }
.hero .cue { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 4; color: #fff; opacity: .8; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,9px);} }

/* ===================== ABOUT (light) ===================== */
.about { position: relative; background: var(--light); padding: 120px 0 110px; }
.about::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 200px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(246,181,60,.12), transparent 70%); }
.about .grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; }
.about .lead { font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 1.65; color: var(--slate); margin-bottom: 16px; text-wrap: pretty; }
.about p.body { font-size: 16px; line-height: 1.65; color: var(--slate); margin-bottom: 16px; text-wrap: pretty; }
.about .badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.about .badge { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 8px 15px; }
.about .badge .d { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

.tech-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; box-shadow: 0 20px 50px -30px rgba(15,23,43,.4); }
.tech-panel .ph { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.tech-panel .ph .d-tick { width: 22px; height: 2px; background: var(--amber); flex: none; }
.tech-panel .ph h3 { font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tech-item { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 8px; border-radius: 12px; background: var(--light); border: 1px solid transparent; transition: border-color .2s, transform .2s, background .2s; }
.tech-item:hover { border-color: rgba(246,181,60,.5); transform: translateY(-3px); background: #fff; }
.tech-item img { width: 34px; height: 34px; object-fit: contain; }
.tech-item span { font-size: 12px; font-weight: 500; color: var(--slate); }

/* ===================== SKILLS (dark scoreboard) ===================== */
.skills { position: relative; background: var(--night); padding: 96px 0; overflow: hidden; }
.skills::before { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(55% 45% at 50% -6%, rgba(246,181,60,.16), transparent 70%),
  radial-gradient(40% 60% at 94% 0%, rgba(246,181,60,.08), transparent 70%); }
.skills .inner { position: relative; z-index: 2; }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sk-card { padding: 28px 24px; position: relative; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; }
.sk-card:first-child { padding-left: 24px; }
.sk-card .n { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.sk-card .n .num { font-size: 14px; color: var(--amber); }
.sk-card .n .bar { flex: 1; height: 1px; background: rgba(255,255,255,.12); }
.sk-card .ico { width: 48px; height: 48px; border-radius: 13px; background: rgba(246,181,60,.12); border: 1px solid rgba(246,181,60,.32); color: var(--amber); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.sk-card h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 10px; }
.sk-card p { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.62); text-wrap: pretty; }

/* ===================== PROJECTS (light) ===================== */
.projects { background: var(--light); padding: 110px 0; }
.sec-head .kicker .eyebrow { font-size: 15.5px; }
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.project:last-child { border-bottom: 1px solid var(--line); }
.project.flip .p-media { order: -1; }
.p-content .p-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.p-content .p-top .num { font-size: 30px; font-weight: 600; color: rgba(15,23,43,.14); }
.p-content .p-top .tick { width: 30px; height: 2px; background: var(--amber); }
.p-content h3 { font-family: var(--serif); font-weight: 700; font-size: 32px; color: var(--ink); margin-bottom: 14px; line-height: 1.08; }
.p-content .desc { font-size: 16px; line-height: 1.6; color: var(--slate); margin-bottom: 18px; max-width: 480px; text-wrap: pretty; }
.p-content ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.p-content li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: var(--slate); text-wrap: pretty; }
.p-content li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); transform: rotate(45deg); }
.p-content .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.p-content .tags .chip { background: #EAECF0; border: 1px solid rgba(15,23,43,.05); color: var(--ink); }
.p-content .acts { display: flex; gap: 12px; }
.p-media { position: relative; }
.p-frame { display: block; cursor: pointer; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; background: #0c0e13;
  box-shadow: 0 30px 60px -28px rgba(15,23,43,.5), 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.p-frame:hover { transform: translateY(-4px); box-shadow: 0 38px 70px -28px rgba(15,23,43,.55), 0 0 0 1px rgba(246,181,60,.5); }
.p-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.p-frame .bar { position: absolute; top: 0; left: 0; right: 0; height: 30px; background: rgba(12,14,19,.92); display: flex; align-items: center; gap: 7px; padding: 0 13px; z-index: 2; }
.p-frame .bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.p-frame .bar i:nth-child(1){ background:#ff5f57; } .p-frame .bar i:nth-child(2){ background:#febc2e; } .p-frame .bar i:nth-child(3){ background:#28c840; }
.p-frame img { top: 30px; height: calc(100% - 30px); }
.p-frame .glow { position: absolute; inset: 0; box-shadow: inset 0 0 60px -20px rgba(246,181,60,.4); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 3; }
.project:hover .p-frame .glow { opacity: 1; }

/* ===================== RESUME (light) ===================== */
.resume { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 100px 0; }
.resume .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.resume .r-head { max-width: 560px; margin-bottom: 48px; display: flex; flex-direction: column; align-items: center; }
.resume .r-head .sec-head { margin-bottom: 18px; }
.resume .r-head p { font-size: 16px; line-height: 1.6; color: var(--slate); margin-bottom: 26px; max-width: 460px; }
.resume .r-head .acts { display: flex; gap: 12px; justify-content: center; }
.r-doc { position: relative; aspect-ratio: 8.5/11; width: 100%; max-width: 520px; max-height: 660px; margin: 0 auto; background: #fff; border-radius: 10px;
  box-shadow: 0 30px 60px -24px rgba(15,23,43,.4), 0 0 0 1px var(--line); overflow: hidden; }
.r-doc .top { height: auto; min-height: 92px; background: linear-gradient(120deg, var(--night) 0%, #1a2030 100%); padding: 22px 28px; color: #fff; position: relative; }
.r-doc .top .nm { font-family: var(--serif); font-weight: 700; font-size: 24px; white-space: nowrap; }
.r-doc .top::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--amber); }
.r-doc .top .nm-old { font-family: var(--serif); font-weight: 700; font-size: 22px; }
.r-doc .top .rl { font-size: 12px; color: var(--amber); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.r-doc .lines { padding: 26px 28px; display: flex; flex-direction: column; gap: 11px; }
.r-doc .ln { height: 8px; border-radius: 4px; background: #eceef2; }
.r-doc .ln.h { height: 11px; width: 38%; background: #dfe3ea; margin-top: 8px; }
.r-doc .ln.s { width: 92%; } .r-doc .ln.m { width: 74%; } .r-doc .ln.x { width: 60%; }
/* clickable PDF preview */
.r-doc { display: block; padding: 0; border: 0; cursor: pointer; -webkit-appearance: none; appearance: none; transition: transform .25s ease, box-shadow .25s ease; }
.r-doc:hover { transform: translateY(-4px); box-shadow: 0 38px 70px -24px rgba(15,23,43,.5), 0 0 0 1px rgba(246,181,60,.55); }
.r-doc-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; pointer-events: none; }
.r-doc-cta { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; font-family: var(--sans); font-weight: 600; font-size: 13px; color: #1a1206; background: var(--amber); padding: 8px 16px; border-radius: 999px; box-shadow: 0 10px 26px -8px rgba(246,181,60,.75); opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.r-doc:hover .r-doc-cta, .r-doc:focus-visible .r-doc-cta { opacity: 1; transform: translateX(-50%) translateY(-3px); }

/* resume lightbox */
.resume-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 4vh 4vw; background: rgba(6,8,10,.84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.resume-modal.open { display: flex; }
.resume-modal-doc { position: relative; width: min(900px, 100%); height: 92vh; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); }
.resume-modal-doc iframe { width: 100%; height: 100%; border: 0; }
.resume-modal-close { position: absolute; top: 20px; right: 24px; z-index: 210; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--amber); color: #1a1206; font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px -8px rgba(0,0,0,.6); transition: transform .15s ease; }
.resume-modal-close:hover { transform: scale(1.06); }

/* ===================== CONTACT (dark footage band) ===================== */
.contact { position: relative; min-height: 600px; overflow: hidden; display: flex; }
.contact video, .contact .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.contact .scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,10,12,.74), rgba(6,8,10,.86)); }
.contact .grade { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 112%, rgba(246,181,60,.22), transparent 60%); }
.contact .inner { position: relative; z-index: 3; width: 100%; padding: 100px 0; }
.contact .c-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.contact .c-left .eyebrow { color: var(--amber); margin-bottom: 18px; }
.contact .c-left h2 { font-family: var(--serif); font-weight: 700; font-size: 52px; line-height: 1.04; color: #fff; margin-bottom: 18px; text-shadow: 0 2px 40px rgba(0,0,0,.5); }
.contact .c-left p { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.78); margin-bottom: 30px; max-width: 420px; }
.contact .links { display: flex; flex-direction: column; gap: 14px; }
.contact .links a { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255,255,255,.85); transition: color .2s; width: fit-content; }
.contact .links a:hover { color: var(--amber); }
.contact .links .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; color: #fff; }
.c-form { background: rgba(14,18,26,.66); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 32px; }
.c-form .fl { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 8px; display: block; letter-spacing: .02em; }
.c-form input, .c-form textarea { width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); border-radius: 10px;
  padding: 13px 15px; font-family: var(--sans); font-size: 15px; color: #fff; margin-bottom: 18px; transition: border-color .2s, background .2s; }
.c-form input::placeholder, .c-form textarea::placeholder { color: rgba(255,255,255,.4); }
.c-form input:focus, .c-form textarea:focus { outline: none; border-color: var(--amber); background: rgba(255,255,255,.08); }
.c-form textarea { resize: none; min-height: 110px; }
.c-form .btn-amber { width: 100%; }

/* ===================== FOOTER (dark) ===================== */
.footer { background: #07090d; color: rgba(255,255,255,.7); padding: 64px 0 30px; }
.footer .f-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .f-name h3 { font-family: var(--serif); font-weight: 700; font-size: 22px; color: #fff; margin-bottom: 10px; }
.footer .f-name h3 .dot { color: var(--amber); }
.footer .f-name p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.55); max-width: 320px; }
.footer h4 { font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 16px; color: rgba(255,255,255,.72); transition: color .2s; }
.footer ul a:hover { color: var(--amber); }
.footer .f-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; }
.footer .f-bottom p { font-size: 14px; color: rgba(255,255,255,.45); }
.footer .f-bottom .pitch { flex: 1; height: 1px; margin: 0 24px; background: linear-gradient(to right, transparent, rgba(246,181,60,.4), transparent); }

/* ===================== responsive ===================== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .about .grid, .resume .grid, .contact .c-grid { grid-template-columns: 1fr; gap: 44px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .sk-card:nth-child(3) { padding-left: 24px; }
  .project, .project.flip { grid-template-columns: 1fr; gap: 28px; }
  .project .p-media, .project.flip .p-media { order: -1; }
  .footer .f-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .skill-grid { grid-template-columns: 1fr; }
  .sk-card { padding-left: 24px !important; }
  .sec-head h2 { font-size: 34px; }
}
