/* ============================================================
   Lukmaan Khalid — deep McLaren orange on black
   Mobile-first: base = 360px–899px, desktop override at 900px+
   ============================================================ */

:root {
  --black: #080706;
  --black-soft: #0c0a09;
  --panel: #100d0b;
  --panel-2: #16110e;
  --line: #2a1e17;
  --line-soft: #1b1411;
  --orange: #ff6a00;        /* deep McLaren papaya, pushed to full chroma */
  --orange-bright: #ff8f1f;
  --orange-hot: #ffab52;
  --orange-soft: #ffb377;
  --orange-deep: #ff3a00;   /* vivid red-orange so gradients stay hot, not muddy */
  --text: #f5efea;
  --text-dim: #9a8b81;
  --text-mute: #6d6059;
  --ok: #7fc49e;
  /* Google Sans everywhere — display and body share one family */
  --font-body: 'Google Sans', 'Product Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: var(--font-body);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

.btn, .nav-link, .nav-youtube, .copy-btn, .card-link, .work-link,
.work-back, .hamburger {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  /* faint papaya glow bleeding from the top */
  background-image:
    radial-gradient(120% 60% at 50% -20%, rgba(255, 106, 0, 0.26), transparent 62%),
    radial-gradient(90% 50% at 100% 0%, rgba(255, 58, 0, 0.2), transparent 65%);
  background-repeat: no-repeat;
}

button, input, textarea, select, optgroup { font-family: var(--font-body); }

/* ============================================================
   NAVBAR — mobile base: fixed right drawer
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 72px;
  background: rgba(8, 7, 6, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65);
  border-bottom-color: #55300f;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  user-select: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #120b06;
  background: linear-gradient(150deg, var(--orange-bright), var(--orange-deep));
  /* clipped corner = motorsport badge */
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.logo-type {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.logo-accent { color: var(--orange); margin-left: 0.15em; }

/* Mobile drawer — closed off-screen right */
.nav-links {
  position: fixed;
  top: 72px;
  right: 0;
  bottom: 0;
  width: min(320px, 100vw);
  background: var(--black-soft);
  border-left: 1px solid var(--line);
  padding: 1.2rem 1.5rem 1.6rem;
  transform: translateX(101%);
  transition: transform 0.35s ease;
  z-index: 100;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-links.open { transform: translateX(0); }

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  padding: 0.85rem 0.9rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  bottom: 0;
  height: 2px;
  width: calc(100% - 1.8rem);
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--text); }

.nav-youtube {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--orange-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-youtube::after { display: none; }
.nav-youtube:hover { border-color: var(--orange); color: var(--text); }
.yt-icon { color: var(--orange); transition: color 0.2s ease; }
.nav-youtube:hover .yt-icon { color: var(--orange-hot); }

.hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--orange-soft);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.menu-open { overflow: hidden; }

/* ============================================================
   LAYOUT / PAGES
   ============================================================ */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  padding-top: 72px;
}

.page {
  min-height: calc(100vh - 72px - 74px);
  display: none;
  animation: pageIn 0.4s ease both;
}

[hidden] { display: none !important; }

.page.visible { display: flex; flex-direction: column; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Diagonal speed lines behind the hero */
.speedlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 106, 0, 0.1) 0 1px,
    transparent 1px 26px
  );
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

/* ============================================================
   HOME — Hero
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2.5rem, 7vh, 5rem) 1.5rem 2.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-soft);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.7rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.7);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.68); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 106, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7.6vw, 3.7rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 0.08em;
}

.hero-title-line { display: block; }

.hero-title-accent {
  background: linear-gradient(98deg, #ffd2a6 0%, var(--orange-bright) 40%, var(--orange) 70%, var(--orange-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.heading-underline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.underline-bar {
  width: clamp(54px, 12vw, 128px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange));
}

.heading-underline .underline-bar:last-child {
  background: linear-gradient(90deg, var(--orange), transparent);
}

.underline-diamond {
  width: 9px;
  height: 9px;
  background: var(--orange);
  transform: rotate(45deg);
}

.hero-role {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(0.86rem, 2.4vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.role-prefix { color: var(--orange); margin-right: 0.35rem; }

.role-tag {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.16em 0.6em;
  font-size: 0.6em;
  vertical-align: middle;
  letter-spacing: 0.12em;
  color: #170c04;
  background: var(--orange);
  border-radius: 4px;
}

.tagline {
  margin-top: 1.1rem;
  min-height: 1.6em;
  font-size: clamp(0.85rem, 2vw, 0.98rem);
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.caret {
  color: var(--orange);
  animation: blink 1s steps(1) infinite;
  margin-left: 2px;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.2rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  min-height: 46px;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  color: #150b04;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange));
  box-shadow: 0 8px 26px rgba(255, 106, 0, 0.42);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffb066, var(--orange-bright));
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--orange-soft);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--text);
}

.btn-full { width: 100%; }

/* ===== Cards ===== */
.cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: min(100% - 2rem, 560px);
  margin: 0 auto 2.2rem;
}

.card {
  background: linear-gradient(160deg, var(--panel), var(--black-soft));
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 1.6rem 1.4rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #663a1c;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  color: var(--orange);
  background: rgba(255, 106, 0, 0.16);
  border: 1px solid #4d2a12;
  margin-bottom: 0.95rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.card p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.55; }

.card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.card-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  transition: color 0.2s ease;
}

.card-link:hover .card-cta { color: var(--orange-hot); }
.card-cta svg { transition: transform 0.2s ease; }
.card-link:hover .card-cta svg { transform: translateX(3px); }

/* ===== Empty work page ===== */
.work-empty .work-header { margin-bottom: 0.5rem; }

.empty-note {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--text-mute);
}

/* ============================================================
   SECTION HEADINGS (Work / Contact)
   ============================================================ */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}

.section-heading::after {
  content: '';
  display: block;
  width: 2.4em;
  height: 3px;
  margin-top: 0.35em;
  background: var(--orange);
}

.section-lead {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 48ch;
}

/* ============================================================
   WORK PAGE
   ============================================================ */
.page-work { justify-content: center; }

.work-wrapper {
  width: min(100% - 2rem, 880px);
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 4rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.work-header { display: flex; flex-direction: column; align-items: center; }

.work-header .section-heading::after { margin-left: auto; margin-right: auto; }
.work-header .section-lead { margin-left: auto; margin-right: auto; }

.work-list {
  list-style: none;
  width: 100%;
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.work-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-left: 3px solid transparent;
  border-radius: 10px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.work-row:hover {
  border-left-color: var(--orange);
  border-color: #40301f;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.work-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 8px;
  color: var(--orange);
  background: rgba(255, 106, 0, 0.15);
  border: 1px solid #4d2a12;
}

.work-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.work-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.work-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.work-tags code {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-hot);
  background: rgba(255, 106, 0, 0.14);
  border: 1px solid #4d2a12;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--orange);
  border: 1px solid #4d2a12;
  border-radius: 6px;
  padding: 0.62rem 0.9rem;
  min-height: 44px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.work-link:hover {
  color: #150b04;
  background: var(--orange);
  border-color: var(--orange);
}

.work-back { margin-top: 1.9rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.page-contact { justify-content: center; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 5vw, 3rem);
  width: min(100% - 2rem, 1040px);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vh, 3rem) 0 2.5rem;
  align-items: start;
  text-align: center;
}

.contact-info { display: flex; flex-direction: column; align-items: center; }
.contact-info .section-lead { margin-left: auto; margin-right: auto; }
.heading-underline.align-left { justify-content: center; }
.contact-info .section-heading::after { margin-left: auto; margin-right: auto; }

.contact-details {
  list-style: none;
  margin-top: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: stretch;
  width: 100%;
  text-align: left;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  color: var(--orange);
  background: rgba(255, 106, 0, 0.15);
  border: 1px solid #4d2a12;
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.detail-body strong {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.contact-details a,
.detail-value {
  font-size: 0.88rem;
  color: var(--orange-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-details a:hover { color: var(--text); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  min-height: 44px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover { color: var(--text); border-color: var(--orange); }
.copy-btn.copied { color: var(--ok); border-color: rgba(127, 196, 158, 0.4); }

.contact-panel {
  background: linear-gradient(160deg, var(--panel-2), var(--black-soft));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.panel-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.3rem 0 1.6rem;
}

.panel-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--text);
}

.panel-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: var(--orange);
  transform: rotate(45deg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.1rem 1rem;
  border-top: 1px solid var(--line-soft);
  background: var(--black-soft);
  font-size: 0.74rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

/* ============================================================
   DESKTOP (900px+)
   ============================================================ */
@media (min-width: 900px) {
  .navbar {
    padding: 0 clamp(1.5rem, 4vw, 3.5rem);
    position: static;
    height: 76px;
  }

  .nav-links {
    display: flex;
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    background: none;
    border: none;
    padding: 0;
    transform: none;
    overflow: visible;
  }

  .nav-link {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    padding: 0.5rem 0.9rem;
    min-height: auto;
  }

  .nav-link::after { left: 0.9rem; width: calc(100% - 1.8rem); }

  .nav-youtube {
    width: auto;
    margin-top: 0;
    margin-left: 0.5rem;
    padding: 0.55rem 0.95rem;
    background: transparent;
  }

  .hamburger { display: none; }
  body.menu-open { overflow: revert; }

  main { padding-top: 0; }
  .page { min-height: calc(100vh - 76px - 52px); }

  .hero { padding: clamp(2rem, 5vh, 3.5rem) 2rem 2rem; }
  .hero-badge { margin-bottom: 1.3rem; }
  .hero-title { font-size: clamp(2.4rem, 4.4vw, 3.9rem); }
  .heading-underline { margin-top: 1.4rem; }
  .hero-role { margin-top: 1.2rem; }
  .tagline { margin-top: 0.9rem; }
  .hero-actions { margin-top: 1.7rem; }

  .cards { grid-template-columns: 1fr 1fr; gap: 1.15rem; width: min(760px, 100% - 3rem); margin-bottom: 2.6rem; }
  .card { padding: 1.4rem 1.5rem; }

  .work-wrapper { padding: clamp(2rem, 4vh, 3rem) 0; }
  .work-list { margin-top: 1.9rem; }
  .section-heading { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }

  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
    width: min(1040px, 100% - 3rem);
    text-align: left;
    align-items: center;
  }

  .contact-info { align-items: flex-start; }
  .contact-info .section-lead { margin-left: 0; }
  .contact-info .section-heading::after { margin-left: 0; }

  .logo-mark { font-size: 0.9rem; }
  .heading-underline.align-left { justify-content: flex-start; }
}

/* ============================================================
   MOBILE REFINEMENTS (≤899px)
   ============================================================ */
@media (max-width: 899px) {
  html, body { overflow-x: clip; max-width: 100%; }
  body { min-height: 100dvh; overflow-wrap: break-word; }
  .page { min-height: calc(100dvh - 146px); }

  .logo-type { font-size: 1rem; letter-spacing: 0.04em; }
  .logo-mark { width: 30px; height: 30px; font-size: 0.8rem; }

  .hero { padding: 2.25rem 1.1rem 2.25rem; }
  .hero-badge { font-size: 0.6rem; letter-spacing: 0.14em; padding: 0.4rem 0.85rem; }
  .hero-title { font-size: clamp(1.6rem, 7.4vw, 2.3rem); }
  .hero-role { font-size: 0.8rem; letter-spacing: 0.09em; }
  .tagline { font-size: 0.82rem; line-height: 1.55; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    width: 100%;
    max-width: 320px;
    margin-top: 1.8rem;
  }

  .hero-actions .btn { width: 100%; }

  .cards { gap: 0.9rem; width: min(100% - 2rem, 560px); }
  .card { padding: 1.35rem 1.15rem; }
  .card h3 { font-size: 1.02rem; }
  .card p { font-size: 0.86rem; }



  /* Rows: icon + text first, action on its own full-width line */
  .work-row {
    flex-wrap: wrap;
    gap: 0.85rem 0.8rem;
    padding: 1rem;
  }

  .work-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 7px; }
  .work-icon svg { width: 22px; height: 22px; }
  .work-info { flex: 1 1 8rem; }
  .work-name { font-size: 0.88rem; letter-spacing: 0.02em; }
  .work-desc { font-size: 0.82rem; }
  .work-link { flex: 1 1 100%; justify-content: center; }

  .work-wrapper { padding: 1.9rem 0 2.3rem; }
  .work-back { width: 100%; max-width: 320px; margin-top: 1.6rem; }

  .contact-wrapper { padding: 1.75rem 0 2.3rem; gap: 1.5rem; }
  .section-lead { font-size: 0.86rem; }

  .contact-details li { padding: 0.85rem; gap: 0.75rem; }
  .detail-icon { width: 40px; height: 40px; flex: 0 0 40px; }
  .detail-icon svg { width: 18px; height: 18px; }
  .contact-details a, .detail-value { font-size: 0.84rem; }
  .copy-label { display: none; }
  .copy-btn { padding: 0.6rem 0.7rem; }
  .copy-btn svg { width: 16px; height: 16px; }

  .contact-panel { padding: 1.3rem 1.15rem 1.5rem; }
  .panel-title { font-size: 1rem; }

  .footer { font-size: 0.7rem; letter-spacing: 0.03em; padding: 1rem 0.85rem; }

  .empty-note { font-size: 0.84rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
}
