/* =========================================================
   Henry Nguyen - Portfolio (Clean Final CSS)
   - Clean + No duplicates
   - Responsive: Mobile / Tablet / Desktop
   - Form V2 layout + custom round checkboxes (dot)
   - Premium chips: Desktop wrap + Mobile horizontal swipe (Level 2)
   - Reveal animation + Toast + Scroll FAB
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root{
  --bg: #ffffff;
  --bg-alt: #f6f9fd;
  --text: #0b1220;
  --muted: #5a667a;
  --border: #e7eef8;
  --shadow: 0 10px 30px rgba(10, 32, 64, 0.08);

  --brand: #0a2040;
  --brand-2: #0e4f86;
  --accent: #0f6fad;

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1120px;
  --header-h: 72px;

  /* dynamic header offset (auto-updated by JS) */
  --header-offset: var(--header-h);

  --gap: 18px;
  --gap-lg: 26px;

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --focus: 0 0 0 4px rgba(15, 111, 173, 0.22);

  /* LinkedIn brand */
  --linkedin: #0A66C2;
}

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

html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

main section[id]{
  scroll-margin-top: var(--header-offset);
}

body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

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

button, input, textarea{
  font-family: inherit;
}

::selection{
  background: rgba(15, 111, 173, 0.18);
}

/* ---------- Accessibility ---------- */
.skip{
  position: absolute;
  top: -200px;
  left: 12px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 9999;
}
.skip:focus{
  top: 12px;
  outline: none;
  box-shadow: var(--focus);
}

/* ---------- Top Anchor ---------- */
.top-anchor{
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Layout ---------- */
.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

main{
  padding-top: var(--header-h);
}

/* ---------- Header (Premium LinkedIn) ---------- */
.header{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);

  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(10, 32, 64, 0.10);
  z-index: 50;

  transition: height .18s ease, background .18s ease, box-shadow .18s ease;
}

/* Shrink when scroll */
.header.header--shrink{
  height: 64px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 28px rgba(10, 32, 64, 0.08);
}

.header__inner{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.header__left{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Brand */
.brand{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}

.brand__name{
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--linkedin);
}

.brand__cred{
  font-weight: 600;
  color: var(--linkedin);
}

/* Actions */
.header__actions{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   ICON BUTTON SYSTEM - Circle + Thin Border (Mail + Hamburger + Scroll)
   ========================================================= */
.icon-btn,
.nav-toggle,
.scroll-fab{
  display: inline-grid;
  place-items: center;

  width: 44px;
  height: 44px;
  border-radius: 999px;                         /* circle */
  border: 1px solid rgba(10, 32, 64, 0.08);      /* thinner + softer */

  background: rgba(255,255,255,0.92);
  color: var(--linkedin);

  box-shadow: 0 10px 28px rgba(10, 32, 64, 0.06);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.icon-btn:hover,
.nav-toggle:hover,
.scroll-fab:hover{
  transform: translateY(-1px);
  background: rgba(10, 102, 194, 0.04);
  border-color: rgba(10, 102, 194, 0.16);
  box-shadow: 0 14px 34px rgba(10, 32, 64, 0.10);
}

/* Icons inside */
.icon-btn .icon,
.nav-toggle .icon,
.scroll-fab .icon{
  width: 22px;
  height: 22px;
  display: block;
}

/* Email icon = LinkedIn blue */
.header__actions a.icon-btn[href^="mailto:"]{
  color: var(--linkedin);
}

/* NAV */
.nav{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Menu links */
.nav__link{
  position: relative;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;

  color: var(--linkedin);
  font-weight: 600;

  transition: background .15s ease, opacity .15s ease;
}

.nav__link:hover{
  background: rgba(10,102,194,0.08);
  opacity: .95;
}

/* Underline active */
.nav__link::after{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;

  height: 2px;
  border-radius: 999px;
  background: var(--linkedin);

  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.nav__link.active::after{
  transform: scaleX(1);
}

/* Mobile toggle (hamburger) */
.nav-toggle{
  display: none; /* default desktop hidden */
}

/* ---------- Mobile menu dropdown ---------- */
@media (max-width: 900px){
  .nav-toggle{
    display: inline-grid;
    place-items: center;
  }

  .nav{
    position: absolute;
    top: calc(var(--header-h) + 10px);
    left: 16px;
    right: 16px;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;

    padding: 10px;
    border-radius: 16px;

    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(10, 32, 64, 0.12);
    box-shadow: 0 18px 46px rgba(10, 32, 64, 0.12);
  }

  .nav.is-open{ display: flex; }

  .nav__link{
    padding: 12px 12px;
  }

  .nav__link::after{
    left: 12px;
    right: 12px;
  }
}

/* =========================================================
   HERO - Centered on all devices
   ========================================================= */
.hero{
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: var(--header-offset) 16px var(--header-offset);
}

.hero__inner{
  width: 100%;
  max-width: 1100px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

/* Avatar round */
.avatar{
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;

  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;

  flex: 0 0 auto;
  margin: 0 auto; /* Ensure center */
}

.avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Copy centered */
.hero__copy{
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Hero text */
.kicker{
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.hero__title{
  font-size: 40px;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--brand);
}

.hero__subtitle{
  font-size: 20px;
  color: var(--brand-2);
  font-weight: 600;
  margin-top: 2px;
}

/* Mobile adjustments for hero */
@media (max-width: 720px){
  .hero{
    padding: calc(var(--header-offset) / 2) 16px calc(var(--header-offset) / 2);
  }

  .avatar{
    width: 140px;
    height: 140px;
  }

  .hero__title{
    font-size: 32px;
  }

  .hero__subtitle{
    font-size: 18px;
  }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section{
  padding: 34px 0;
}
.section--alt{
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 16px;
}
.section__title{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.section__lead{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- Card ---------- */
.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(10, 32, 64, 0.06);
  padding: 18px 18px;
}
.card__title{
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

/* ---------- Bullets ---------- */
.bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}
.bullets li{
  margin: 8px 0;
  color: #111a2e;
}
.muted{
  color: var(--muted);
}

/* ================================
   Tools Chips
   ================================ */
.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.chip{
  position: relative;
  display: inline-flex;
  align-items: center;

  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  color: var(--brand);
  box-shadow: 0 8px 18px rgba(10, 32, 64, 0.06);

  max-width: 100%;
}

.chip__text{
  display: block;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 640px){
  .chip{
    padding: 10px 14px;
    font-size: 14px;
  }

  .chip__text{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

@media (max-width: 390px){
  .chip{
    font-size: 13.5px;
  }
}

/* ---------- Timeline ---------- */
.timeline{
  display: grid;
  gap: 16px;
}
.timeline__meta{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.timeline__title{
  margin: 0;
  font-size: 16px;
}
.timeline__period{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Grid 2 ---------- */
.grid2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.span2{
  grid-column: 1 / -1;
}

/* ---------- Items list ---------- */
.items{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.items li{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
}
.item__when{
  color: var(--muted);
  font-weight: 700;
}
.item__what{
  color: var(--text);
}
.subhead{
  margin: 12px 0 8px;
  color: var(--brand);
  font-weight: 700;
}

/* ---------- Contact header ---------- */
.contact-head{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 16px;
}
.contact-title{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.contact-sub{
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.35;
  white-space: normal;
}

/* ---------- Contact Form (V2) ---------- */
.form{
  width: 100%;
}

.form__new-layout--v2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.form__field{
  display: grid;
  gap: 8px;
}

.form__field--full{
  grid-column: 1 / -1;
}

.form__field > span{
  font-weight: 700;
  color: #101a30;
}

.form__field input,
.form__field textarea{
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.form__field input::placeholder,
.form__field textarea::placeholder{
  font-style: italic;
  font-weight: 400;
  color: #8a97ab;
}

.form__field input:focus,
.form__field textarea:focus{
  border-color: rgba(15,111,173,0.55);
  box-shadow: var(--focus);
}

.form__hint{
  margin-top: -4px;
  color: #7a879b;
  font-style: italic;
  font-weight: 400;
  font-size: 12.5px;
}

/* ---------- Request block ---------- */
.request-block{
  display: grid;
  gap: 14px;
}
.request-title{
  margin-bottom: 10px;
}

.request-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

/* Request item */
.request-item{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 22px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.request-item:hover{
  transform: translateY(-1px);
  border-color: rgba(15,111,173,0.35);
  box-shadow: 0 12px 22px rgba(10, 32, 64, 0.08);
}

.request-item span:first-child{
  font-weight: 600;
  color: #10203a;
}

.request-item input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Round UI (ring) */
.checkmark{
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(15,111,173,0.55);
  display: inline-block;
  position: relative;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* DOT */
.checkmark::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15,111,173,0.95);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform .16s ease, opacity .16s ease;
}

.request-item input:checked ~ .checkmark{
  border-color: rgba(15,111,173,0.95);
  box-shadow: 0 0 0 4px rgba(15,111,173,0.12);
}
.request-item input:checked ~ .checkmark::after{
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.request-item.request-item--checked{
  border-color: rgba(15,111,173,0.35);
  background: rgba(15,111,173,0.04);
}

@media (prefers-reduced-motion: reduce){
  .request-item,
  .checkmark,
  .checkmark::after{
    transition: none !important;
  }
}

/* ---------- Form actions ---------- */
.form__actions{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 12px 20px;
  border-radius: 999px;

  border: 1px solid rgba(10,102,194,0.28);
  background: linear-gradient(180deg, rgba(10,102,194,0.10), rgba(10,102,194,0.03));

  color: var(--brand);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;

  cursor: pointer;
  white-space: nowrap;
  line-height: 1.1;

  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
}

/* Icon inside send button */
.btn .btn__icon{
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
  color: var(--linkedin);

  transform: translateY(-1px) rotate(-18deg);
}
.btn .btn__icon path{
  transform-origin: center;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(10, 32, 64, 0.10);
  background: linear-gradient(180deg, rgba(10,102,194,0.13), rgba(10,102,194,0.05));
}
.btn:active{
  transform: translateY(0px);
}
.btn:disabled{
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Form status text ---------- */
.form-status{
  margin: 10px 0 0;
  font-weight: 700;
  display: none;
}
.text-success{ color: #0a7a3f; }
.text-error{ color: #d93025; }

/* ---------- Turnstile hidden cleanly ---------- */
.turnstile-holder{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.footer{
  padding: 26px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__nav{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__nav a{
  color: var(--muted);
  font-weight: 600;
}
.footer__nav a:hover{
  color: var(--brand);
}

/* ---------- Scroll FAB (position + visibility only, style is unified above) ---------- */
.scroll-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;

  opacity: 0;
  pointer-events: none;

  transition: opacity .2s ease, transform .2s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  z-index: 80;
}

/* ---------- Chat widget ---------- */
.chat-widget{
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 90;
}

.chat-fab{
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(10, 32, 64, 0.08);
  background: #fff;
  color: var(--linkedin);
  box-shadow: 0 14px 30px rgba(10, 32, 64, 0.12);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.chat-fab:hover{
  transform: translateY(-1px);
  background: rgba(10, 102, 194, 0.04);
  border-color: rgba(10, 102, 194, 0.2);
  box-shadow: 0 18px 36px rgba(10, 32, 64, 0.16);
}

.chat-fab .icon{
  width: 22px;
  height: 22px;
  display: block;
}

.chat-panel{
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(320px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(10, 32, 64, 0.16);
  padding: 12px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.chat-widget.is-open .chat-panel{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.chat-title{
  font-weight: 800;
  color: var(--brand);
}

.chat-close{
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(10, 32, 64, 0.08);
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.chat-close:hover{
  background: rgba(10, 102, 194, 0.06);
  border-color: rgba(10, 102, 194, 0.18);
}

.chat-close .icon{
  width: 16px;
  height: 16px;
  display: block;
}

.chat-cta{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
}

.chat-note{
  margin: 10px 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.chat-form{
  display: grid;
  gap: 8px;
  padding: 4px 2px;
}

.chat-field{
  display: grid;
  gap: 6px;
}

.chat-field > span{
  font-weight: 700;
  color: #101a30;
  font-size: 12px;
}

.chat-field input,
.chat-field textarea{
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.chat-field textarea{
  min-height: 70px;
  resize: vertical;
}

.chat-field input:focus,
.chat-field textarea:focus{
  border-color: rgba(15,111,173,0.55);
  box-shadow: var(--focus);
}

.chat-field input::placeholder,
.chat-field textarea::placeholder{
  font-style: italic;
  font-weight: 400;
  color: #8a97ab;
}

.chat-action,
.chat-submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 10px;
  border: 1px solid rgba(10, 102, 194, 0.2);
  background: rgba(10, 102, 194, 0.06);
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.chat-action__icon{
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  color: var(--linkedin);
  transform: translateY(-0.5px);
}

.chat-submit-row{
  display: grid;
}

.chat-submit{
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  gap: 8px;
  border-color: rgba(10, 102, 194, 0.28);
  background: linear-gradient(180deg, rgba(10, 102, 194, 0.12), rgba(10, 102, 194, 0.04));
  cursor: pointer;
}

.chat-submit__icon{
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  color: var(--linkedin);
  transform: translateY(-0.5px) rotate(-18deg);
}

.chat-action:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(10, 32, 64, 0.1);
  background: rgba(10, 102, 194, 0.1);
}

.chat-submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(10, 32, 64, 0.1);
  background: linear-gradient(180deg, rgba(10, 102, 194, 0.13), rgba(10, 102, 194, 0.05));
}

.chat-submit:active{
  transform: translateY(0);
}

.chat-submit:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chat-status{
  margin: 0;
  font-weight: 700;
  font-size: 12px;
  display: none;
}

@media (max-width: 640px){
  .chat-widget{
    right: 12px;
    bottom: 78px;
  }

  .chat-panel{
    right: 0;
  }

  .scroll-fab{
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce){
  .chat-panel,
  .chat-fab,
  .chat-action,
  .chat-submit{
    transition: none !important;
  }
}

/* ---------- Toast ---------- */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(10, 32, 64, 0.95);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 120;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* ---------- Reveal animation (fail-safe: never blank if JS fails) ---------- */
.reveal{opacity:1; transform:none;}

html.has-js .reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
html.has-js .reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}


/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .grid2{ grid-template-columns: 1fr; }
  .items li{ grid-template-columns: 110px 1fr; }
  .form__new-layout--v2{ grid-template-columns: 1fr; }
  .request-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .items li{
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .item__when{
    font-size: 13px;
  }
}

/* ---------- Print ---------- */
@media print{
  .header,
  .scroll-fab,
  .toast,
  .nav-toggle{
    display: none !important;
  }

  main{
    padding-top: 0 !important;
  }

  .section--alt{
    background: #fff !important;
    border: none !important;
  }

  .card{
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  a{
    text-decoration: none !important;
  }
}


/* ================================
   HERO SPACING OVERRIDE (precise + no full-screen)
   ================================ */
.hero{
  min-height: auto !important;
  align-items: flex-start !important;
  justify-content: center !important;
}
