/* ═════════ Tokens ═════════ */
:root {
  --green: #3BB54A;
  --green-dark: #2E9A3C;
  --black: #111;
  --text: #1C1C1C;
  --grey: #EEEEEE;
  --font: Tahoma, Verdana, "Segoe UI", sans-serif;
  --wide: .12em;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: var(--wide); line-height: 1.15; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ═════════ Buttons ═════════ */
.btn {
  display: inline-block; padding: 14px 26px; font: 700 15px/1 var(--font); letter-spacing: .02em; text-transform: uppercase;
  border: 0; cursor: pointer; transition: background-color .2s, transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-green { background: var(--green); color: #fff; }
@media (hover: hover) { .btn-green:hover { background: var(--green-dark); } }

/* ═════════ Header ═════════ */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 76px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(14px, 3vw, 36px);
  transition: background-color .3s, box-shadow .3s;
}
.header.scrolled { background: var(--green); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.brand, .foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.mono {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #fff; color: var(--green); font: 700 17px/1 var(--font); letter-spacing: -.02em;
  box-shadow: inset 0 0 0 3px var(--green);
}
.brand-text { display: grid; padding-left: 10px; border-left: 2px solid currentColor; }
.brand-text b { font-size: 21px; letter-spacing: .14em; line-height: 1.1; }
.brand-text small { font-size: 8.5px; letter-spacing: .12em; opacity: .9; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header .btn-head { padding: 12px 18px; }
.header.scrolled .btn-head { background: var(--black); }
@media (hover: hover) { .header.scrolled .btn-head:hover { background: #333; } }
.burger {
  width: 40px; height: 40px; border: 0; padding: 9px 8px; background: var(--green); cursor: pointer;
  display: grid; align-content: space-between;
}
.header.scrolled .burger { background: var(--black); }
.burger span { display: block; height: 3px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 40; background: rgba(17, 17, 17, .96);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.menu[hidden] { display: none; }
.menu.open { opacity: 1; pointer-events: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; display: grid; gap: 10px; }
.menu a {
  display: inline-block; padding: 6px 12px; color: #fff; font-size: clamp(26px, 5vw, 40px); font-weight: 700;
  letter-spacing: var(--wide); text-transform: uppercase;
  transform: translateY(14px); opacity: 0; transition: color .2s, transform .5s var(--ease), opacity .4s;
}
.menu.open a { transform: none; opacity: 1; }
.menu.open li:nth-child(2) a { transition-delay: .04s; }
.menu.open li:nth-child(3) a { transition-delay: .08s; }
.menu.open li:nth-child(4) a { transition-delay: .12s; }
.menu.open li:nth-child(5) a { transition-delay: .16s; }
.menu.open li:nth-child(6) a { transition-delay: .2s; }
@media (hover: hover) { .menu a:hover { color: var(--green); } }

/* ═════════ Hero ═════════ */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.hero-media, .slide { position: absolute; inset: 0; }
.slide {
  background-size: cover; background-position: center top; filter: blur(3px) saturate(1.1);
  opacity: 0; transform: scale(1.12); transition: opacity 1.4s ease, transform 9s linear;
}
.slide.on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .7)); }
.hero-content { position: relative; z-index: 1; max-width: 900px; padding: 120px 20px 80px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: .1em; text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.hero p { margin: 18px 0 26px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* ═════════ Intro ═════════ */
.intro { text-align: center; padding: 64px 0 40px; max-width: 980px; }
.intro p { margin: 0 0 26px; font-size: 18px; }

/* ═════════ Stats ═════════ */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 980px; margin-bottom: 70px; }
.stat { text-align: center; padding: 34px 10px 26px; }
.stat b { display: block; font-size: clamp(48px, 7vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-weight: 700; letter-spacing: .06em; font-size: 15px; }
.stat:nth-child(odd) { border-right: 4px solid var(--green); }
.stat:nth-child(-n+2) { border-bottom: 4px solid var(--green); }
@media (min-width: 1000px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border: 0 !important; }
  .stat:not(:last-child) { border-right: 4px solid var(--green) !important; }
}

/* ═════════ Green band ═════════ */
.band { background: var(--green); color: #fff; text-align: center; padding: 34px clamp(18px, 4vw, 60px) 40px; }
.band-title { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 26px; }
.band-body p { margin: 0 auto 18px; max-width: 980px; font-size: 18px; }

/* ═════════ Profile ═════════ */
.profile {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--black); color: #fff; padding: clamp(24px, 4vw, 48px);
}
.profile-photo { margin: 0; padding: 8px; background: #fff; box-shadow: 10px 10px 0 var(--green); }
.profile-photo img { width: clamp(140px, 16vw, 188px); }
.facts { margin: 0; display: grid; gap: 16px; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .14); padding-bottom: 14px; }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--green); font-weight: 700; letter-spacing: var(--wide); font-size: 14px; padding-top: 2px; }
.facts dd { margin: 0; }

/* ═════════ Section titles ═════════ */
.section-title { text-align: center; font-size: clamp(26px, 3.6vw, 40px); padding: 80px 0 30px; max-width: 900px; margin-inline: auto; }

/* ═════════ Service tiles ═════════ */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 320px; padding: 30px; color: #fff; isolation: isolate;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(59, 181, 74, .28), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #2A2A2A, #0E0E0E);
}
.tile::before {
  content: var(--g); position: absolute; right: -2%; top: -6%; z-index: -1;
  font: 700 clamp(140px, 17vw, 230px)/1 var(--font); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 2px rgba(59, 181, 74, .55);
  transition: transform .8s var(--ease), -webkit-text-stroke-color .4s;
}
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .7)); }
.tile h3 { font-size: clamp(20px, 2.2vw, 26px); }
.tile-level { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--green); margin-bottom: 8px; }
@media (hover: hover) {
  .tile:hover::before { transform: scale(1.08) translate(-10px, 10px); -webkit-text-stroke-color: var(--green); }
}
.tagline { text-align: center; font-weight: 700; letter-spacing: .06em; font-size: clamp(17px, 1.8vw, 22px); margin: 40px auto 0; max-width: 900px; }

/* ═════════ Projects ═════════ */
.projects { display: grid; gap: 12px; }
.projects .section-title { padding-bottom: 18px; }
.project { position: relative; display: block; overflow: hidden; min-height: clamp(380px, 52vw, 600px); color: #fff; background: #000; }
.project-img { position: absolute; inset: 0; background-size: cover; background-position: center top; transition: transform 1.2s var(--ease); }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .35)); }
.project-phone {
  position: absolute; z-index: 1; right: clamp(16px, 5vw, 64px); top: clamp(20px, 5vw, 56px); width: clamp(110px, 15vw, 190px);
  border: 6px solid #111; border-radius: 22px; box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
  transition: transform .9s var(--ease);
}
.project-cap {
  position: absolute; z-index: 2; left: 0; bottom: 0; width: min(640px, 100%);
  padding: clamp(18px, 2.6vw, 30px); background: rgba(17, 17, 17, .92);
  border-top: 4px solid var(--green);
}
.project-cap span { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--green); }
.project-cap h3 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 0; }
.project-cap p { margin: 10px 0 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s; }
.project-cap em { display: inline-block; margin-top: 12px; font-style: normal; font-weight: 700; font-size: 14px; letter-spacing: .06em; background: var(--green); padding: 8px 12px; }
@media (hover: hover) {
  .project:hover .project-img { transform: scale(1.05); }
  .project:hover .project-phone { transform: translateY(-10px) rotate(-3deg); }
  .project:hover .project-cap p { max-height: 160px; opacity: 1; }
}
@media (hover: none) { .project-cap p { max-height: none; opacity: 1; } }

/* ═════════ Resume ═════════ */
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.col-title { font-size: 20px; color: var(--green); padding-bottom: 10px; border-bottom: 4px solid var(--green); margin: 0 0 22px; }
.col-title:not(:first-child) { margin-top: 36px; }
.entry { border-left: 4px solid var(--black); padding: 2px 0 2px 20px; margin-bottom: 28px; }
.when { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--green); }
.entry h4 { font-size: 17px; margin-top: 4px; letter-spacing: .06em; }
.org { margin: 2px 0 8px; font-weight: 700; color: #555; }
.entry ul { margin: 0; padding-left: 18px; }
.entry li { margin-bottom: 4px; }
.small { margin: 0; font-size: 15px; color: #444; }
.skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.skills li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-weight: 700; }
.skills em { font-style: normal; font-weight: 400; font-size: 14px; color: #555; }
.skills i { grid-column: 1 / -1; grid-row: 2; height: 8px; background: var(--grey); position: relative; overflow: hidden; }
.skills i::after { content: ""; position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(0); transition: transform 1.2s .2s var(--ease); }
.skills.in i::after { transform: scaleX(var(--v)); }

/* ═════════ CTA ═════════ */
.cta { margin-top: 80px; }
.cta-inner {
  text-align: center; color: #fff; padding: clamp(40px, 6vw, 70px) clamp(20px, 5vw, 70px);
  background:
    linear-gradient(rgba(0, 0, 0, .82), rgba(0, 0, 0, .88)),
    url(assets/regal-desktop.webp) center / cover;
}
.cta h2 { font-size: clamp(28px, 4vw, 44px); }
.cta p { max-width: 720px; margin: 16px auto 26px; font-size: 18px; }

/* ═════════ Awards slider ═════════ */
.awards .section-title { padding-bottom: 4px; }
.sub { text-align: center; margin: 0 0 30px; color: #555; }
.slider { position: relative; overflow: hidden; padding: 0 0 46px; }
.track { display: flex; transition: transform .6s var(--ease); }
.quote { flex: 0 0 100%; margin: 0; text-align: center; padding: 10px 64px 0; }
.quote blockquote { margin: 0 auto; max-width: 820px; font-size: clamp(18px, 2vw, 22px); font-style: italic; line-height: 1.6; }
.quote figcaption { margin-top: 20px; font-weight: 700; letter-spacing: .08em; color: var(--green); font-size: 15px; }
.quote small { display: block; margin-top: 4px; color: #666; letter-spacing: .02em; font-weight: 400; }
.arrow {
  position: absolute; z-index: 1; top: 36%; width: 42px; height: 42px; border: 0; cursor: pointer;
  background: var(--green); color: #fff; font: 700 28px/1 var(--font); padding-bottom: 4px;
  transition: background-color .2s, transform .15s var(--ease);
}
.arrow:active { transform: scale(.94); }
@media (hover: hover) { .arrow:hover { background: var(--black); } }
.prev { left: 0; } .next { right: 0; }
.dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 4px; }
.dots button { width: 24px; height: 24px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: #CCC; transition: background-color .2s, transform .2s; }
.dots button[aria-selected="true"]::after { background: var(--green); transform: scale(1.2); }

/* ═════════ Footer ═════════ */
.footer { margin-top: 80px; background: var(--grey); text-align: center; padding: 50px 0 26px; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; max-width: 520px; margin: 0 auto 30px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-nav a { font-weight: 700; }
@media (hover: hover) { .foot-nav a:hover, address a:hover { color: var(--green); } }
.foot-title { color: var(--green); font-size: 18px; letter-spacing: .14em; padding-bottom: 12px; border-bottom: 1px solid #D5D5D5; margin-bottom: 16px; }
address { font-style: normal; display: grid; gap: 8px; font-weight: 700; margin-bottom: 18px; }
.socials { list-style: none; margin: 22px 0 0; padding: 0; display: flex; justify-content: center; gap: 8px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; background: var(--black); transition: background-color .2s; }
.socials svg { width: 19px; height: 19px; fill: #fff; }
@media (hover: hover) { .socials a:hover { background: var(--green); } }
.foot-brand { justify-content: center; color: var(--black); margin: 28px 0 18px; }
.foot-brand .mono { background: var(--green); color: #fff; box-shadow: none; }
.copy { margin: 0; padding-top: 16px; border-top: 1px solid #D5D5D5; font-weight: 700; letter-spacing: .08em; font-size: 14px; }

/* ═════════ Reveal ═════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.tiles .reveal:nth-child(even), .stats .reveal:nth-child(even) { transition-delay: .08s; }

/* ═════════ Responsive ═════════ */
@media (max-width: 860px) {
  .resume-grid { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; justify-items: center; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 240px; }
  .brand-text small { display: none; }
  .brand-text b { font-size: 16px; letter-spacing: .1em; }
  .mono { width: 38px; height: 38px; font-size: 15px; }
  .header .btn-head { padding: 11px 12px; font-size: 13px; }
  .slider { padding: 0 0 50px; }
  .quote { padding: 10px 6px 0; }
  .arrow { display: none; }
  .project-phone { width: 96px; border-width: 4px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
