/* ============================================================
   Amirhossein Najafdari — Portfolio
   Arial only · Black & White · Built from scratch
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; }

:root {
  --black:  #0a0a0a;
  --white:  #ffffff;
  --g1:     #1a1a1a;
  --g2:     #555555;
  --g3:     #999999;
  --g4:     #e0e0e0;
  --g5:     #f5f5f5;
  --hh:     75px;
}

html { scroll-behavior: smooth; }

body {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
address { font-style: normal; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  text-decoration: none;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-dark:hover { background: var(--g1); border-color: var(--g1); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-white:hover { background: #e8e8e8; border-color: #e8e8e8; }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-white:hover { border-color: var(--white); }

/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--hh);
  background: linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

/* Subtle engineering grid */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Gradient shimmer line at bottom */
.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.08) 15%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0.08) 85%,
    transparent 100%);
  z-index: 2;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 56px 0 56px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 12px rgba(0,0,0,0.4);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.logo:hover .logo-mark {
  border-color: rgba(255,255,255,0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 16px rgba(255,255,255,0.08);
}

.logo-name {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.02em;
  font-family: Arial, sans-serif;
  transition: color 0.2s;
}

.logo:hover .logo-name { color: #ffffff; }

.logo-brand {
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-transform: uppercase;
  transition: color 0.2s;
}

.logo:hover .logo-brand { color: #f97316; }

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

.nav-link {
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  position: relative;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 1.5px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
  opacity: 0;
}

.nav-link:hover { color: #ffffff; }
.nav-link:hover::before { opacity: 1; }
.nav-link.active { color: #ffffff; }
.nav-link.active::before { opacity: 1; background: rgba(255,255,255,0.09); }
.nav-link.active::after { transform: translateX(-50%) scaleX(1); opacity: 1; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Social icon buttons — no background, logo only */
.social-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.18s, opacity 0.18s;
}

.social-btn img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.75;
}

/* Unified header button group — white pill wrapping all icons + phone */
.header-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.header-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border-radius: 0;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.18s;
  padding: 0;
  border-left: none;
  margin-left: 0;
}

.header-contact-btn img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.header-contact-btn:hover {
  opacity: 0.7;
}

/* Tell Us Your Project CTA button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.cta-btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.38);
  transform: translateY(-1px);
}

.cta-btn__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  60%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

@media (max-width: 768px) {
  .cta-btn { display: none; }
}

.header-sep {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
  margin: 0 4px;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
}

/* ============================================================
   MOBILE NAV
   ============================================================ */

.mob-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9998;
  flex-direction: column;
}

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

.mob-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--hh);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.mob-nav-close {
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mob-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  gap: 0;
}

.mob-nav-link {
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.18s;
}

.mob-nav-link:hover,
.mob-nav-link.active { color: #ffffff; }

.mob-nav-foot {
  padding: 24px;
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   HERO
   ============================================================ */

.hero-section {
  background: var(--black);
  position: relative;
  overflow: hidden;
}

/* Unified orange grid — same 36px grid across the whole hero */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.35) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Edge vignette — fades texture into black on all sides */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0a0a0a 0%, transparent 18%, transparent 82%, #0a0a0a 100%),
    linear-gradient(180deg, #0a0a0a 0%, transparent 12%, transparent 55%, #0a0a0a 100%);
  pointer-events: none;
  z-index: 0;
}

.hero {
  min-height: calc(100vh - var(--hh));
  display: grid;
  grid-template-columns: min(44vh, 440px) 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  gap: 32px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-left {
  padding: 32px 0 0 48px;
  align-self: start;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g3);
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
}

.hero-name {
  font-size: clamp(56px, 7vw, 98px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 16px;
  font-family: Arial, sans-serif;
}

.hero-title {
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 400;
  color: var(--g2);
  margin-bottom: 24px;
  line-height: 1.4;
  font-family: Arial, sans-serif;
}

.hero-body {
  font-size: 17px;
  color: var(--g2);
  line-height: 1.8;
  max-width: 380px;
  margin-bottom: 40px;
  font-family: Arial, sans-serif;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--g4);
  padding-top: 28px;
}

.hero-stat { padding-right: 20px; }

.hero-stat:not(:last-child) {
  border-right: 1px solid var(--g4);
  margin-right: 20px;
}

.hero-stat-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 5px;
  font-family: Arial, sans-serif;
}

.hero-stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g3);
  font-family: Arial, sans-serif;
}

/* Hero intro — dynamic headline */
.hero-intro {
  padding: 36px 0 28px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--g3);
  margin-bottom: 14px;
  font-family: Arial, sans-serif;
}

.hero-headline {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  font-family: Arial, sans-serif;
  margin-bottom: 0;
}

.dyn-word {
  display: inline-block;
  color: #f97316;
  font-weight: 900;
  font-style: italic;
  position: relative;
  white-space: nowrap;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.dyn-word.dyn-out {
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dyn-word.dyn-in {
  opacity: 1;
  transform: translateY(0);
  animation: dynIn 0.38s ease forwards;
}

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

.hero-cards-label {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

/* Hero tag cards — horizontal row */
.hero-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.hero-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(52px, 5.5vw, 72px);
  padding: 0 36px;
  border: 2px solid rgba(249,115,22,0.65);
  border-radius: 12px;
  background: rgba(249,115,22,0.12);
  color: #f97316;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: clamp(14px, 1.6vw, 24px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(249,115,22,0.45);
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hero-tag:hover {
  background: rgba(249,115,22,0.22);
  border-color: #f97316;
  transform: translateX(6px);
  box-shadow: 0 0 24px rgba(249,115,22,0.2);
}

@media (max-width: 768px) {
  .hero-tags { flex-direction: row; flex-wrap: wrap; }
  .hero-tag { width: calc(50% - 4px); height: 52px; font-size: 14px; padding: 0 16px; }
}

@media (max-width: 480px) {
  .hero-tag { width: 100%; height: 50px; font-size: 13px; }
}

/* 3D Model Canvas */
.hero-canvas {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--hh));
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.hero-canvas model-viewer {
  position: absolute;
  width: 130%;
  height: 130%;
  top: 43%;
  left: 90%;
  transform: translate(-80%, -50%);
  background: transparent;
  --poster-color: #0a0a0a;
  --interaction-prompt-scale: 4;
  cursor: grab;
  z-index: 0;
}

.hero-canvas model-viewer:active { cursor: grabbing; }

/* Model viewer — progress bar */
.progress-bar {
  display: block;
  width: 33%;
  height: 10%;
  max-height: 2%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 25px;
  box-shadow: 0 3px 10px 3px rgba(0,0,0,0.5), 0 0 5px 1px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.9);
  background-color: rgba(0,0,0,0.5);
}
.progress-bar.hide { visibility: hidden; transition: visibility 0.3s; }
.update-bar {
  background-color: rgba(255,255,255,0.9);
  width: 0%;
  height: 100%;
  border-radius: 25px;
  float: left;
  transition: width 0.3s;
}

/* Model viewer — AR button */
#ar-button {
  background-color: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  bottom: 16px;
  padding: 0 16px;
  font-size: 13px;
  color: #4285f4;
  height: 32px;
  line-height: 32px;
  border-radius: 16px;
  border: 1px solid #dadce0;
  cursor: pointer;
}
#ar-button:focus { outline: none; }
#ar-button:focus-visible { outline: 1px solid #4285f4; }
#ar-button:active { background-color: #e8eaed; }

/* Model viewer — AR prompt animation */
@keyframes mv-circle {
  from { transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg); }
}
@keyframes mv-elongate {
  from { transform: translateX(100px); }
  to   { transform: translateX(-100px); }
}
model-viewer > #ar-prompt {
  position: absolute; left: 50%; bottom: 60px;
  animation: mv-elongate 2s infinite ease-in-out alternate;
  display: none;
}
model-viewer[ar-status="session-started"] > #ar-prompt { display: block; }
model-viewer > #ar-prompt > img { animation: mv-circle 4s linear infinite; }

/* ============================================================
   SOFTWARE BANNER
   ============================================================ */

.role-banner {
  background: var(--black);
  border-top: 1px solid rgba(249,115,22,0.15);
  border-bottom: 1px solid rgba(249,115,22,0.15);
  padding: 64px 48px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.role-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.35) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

.role-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--black) 75%);
  pointer-events: none;
  z-index: 1;
}

.sw-banner-label {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.sw-banner-label::before,
.sw-banner-label::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: var(--g4);
}

.software-logos {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.sw-logo-btn {
  background: var(--white);
  border: 1.5px solid var(--g4);
  border-radius: 16px;
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.22s, box-shadow 0.22s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 12px;
}

.sw-logo-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.22s;
}

.sw-logo-btn:hover {
  border-color: var(--g3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.sw-logo-btn:hover img { transform: scale(1.04); }

.sw-logo-btn.active {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15), 0 8px 24px rgba(249,115,22,0.12);
}

.sw-logo-btn.sw-logo-xl {
  overflow: hidden;
}

.sw-logo-btn.sw-logo-xl img {
  transform: scale(2);
  width: 100%;
  height: 100%;
}

.sw-logo-btn.sw-logo-xl:hover img {
  transform: scale(2.08);
}

@media (max-width: 900px) {
  .role-banner { padding: 48px 32px 56px; }
  .sw-logo-btn { min-width: 200px; flex: 1 1 calc(50% - 12px); max-width: none; }
}

@media (max-width: 560px) {
  .role-banner { padding: 40px 24px 48px; }
  .software-logos { gap: 16px; }
  .sw-logo-btn { flex: 1 1 100%; max-width: 100%; aspect-ratio: 2 / 1; }
}

/* ============================================================
   SECTIONS — COMMON
   ============================================================ */

.section { padding: 96px 0; }

.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g3);
  margin-bottom: 12px;
  font-family: Arial, sans-serif;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 16px;
  font-family: Arial, sans-serif;
}

.section-sub {
  font-size: 18px;
  color: var(--g2);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 56px;
  font-family: Arial, sans-serif;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}

/* ============================================================
   SKILLS GRID
   ============================================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--g5);
  border: 1px solid var(--g4);
  border-radius: 6px;
  padding: 24px;
}

.skill-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--g4);
  margin-bottom: 16px;
  font-family: Arial, sans-serif;
}

.skill-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.skill-items li {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  font-family: Arial, sans-serif;
}

/* ============================================================
   PROJECTS GRID
   ============================================================ */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--g4);
  gap: 1px;
  background: var(--g4);
}

.proj-card {
  background: var(--white);
  padding: 36px 32px;
  transition: background 0.18s;
}

.proj-card:hover { background: var(--g5); }

.proj-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--g3);
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
}

.proj-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 12px;
  font-family: Arial, sans-serif;
}

.proj-desc {
  font-size: 16px;
  color: var(--g2);
  line-height: 1.7;
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proj-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 3px;
  font-family: Arial, sans-serif;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--g4);
}

.exp-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--g4);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
}

.exp-period {
  font-size: 14px;
  font-weight: 700;
  color: var(--g3);
  letter-spacing: 0.04em;
  padding-top: 3px;
  font-family: Arial, sans-serif;
}

.exp-role {
  font-size: 19px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 4px;
  font-family: Arial, sans-serif;
}

.exp-company {
  font-size: 16px;
  color: var(--g2);
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid var(--g4);
  color: var(--g2);
  padding: 3px 8px;
  border-radius: 3px;
  font-family: Arial, sans-serif;
}

/* ============================================================
   AWARDS STRIP
   ============================================================ */

.awards {
  background: var(--black);
  padding: 56px 0;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.award-item {
  padding: 28px 32px;
  border-right: 1px solid rgba(255,255,255,0.07);
}

.award-item:last-child { border-right: none; }

.award-place {
  font-size: 42px;
  font-weight: 900;
  color: rgba(255,255,255,0.1);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
}

.award-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
  margin-bottom: 6px;
  font-family: Arial, sans-serif;
}

.award-detail {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  font-family: Arial, sans-serif;
}

/* ============================================================
   CTA BAND
   ============================================================ */

.cta {
  background: var(--g5);
  border-top: 1px solid var(--g4);
  border-bottom: 1px solid var(--g4);
  padding: 80px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-title {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1.1;
  max-width: 520px;
  font-family: Arial, sans-serif;
}

.cta-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--white);
  border-top: 1px solid var(--g4);
  padding: 48px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  font-family: Arial, sans-serif;
}

.footer-brand-role {
  font-size: 15px;
  color: var(--g3);
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 15px;
  color: var(--g2);
  text-decoration: none;
  transition: color 0.18s;
  font-family: Arial, sans-serif;
}

.footer-link:hover { color: var(--black); }

.footer-right { text-align: right; }

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.footer-contacts a {
  font-size: 15px;
  color: var(--g2);
  text-decoration: none;
  transition: color 0.18s;
  font-family: Arial, sans-serif;
}

.footer-contacts a:hover { color: var(--black); }

.footer-copy {
  font-size: 14px;
  color: var(--g3);
  font-family: Arial, sans-serif;
}

/* ============================================================
   INNER PAGE HERO (Projects / About / Contact)
   ============================================================ */

.page-hero {
  background: var(--g5);
  border-bottom: 1px solid var(--g4);
  padding: 72px 0 60px;
}

.page-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g3);
  margin-bottom: 14px;
  font-family: Arial, sans-serif;
}

.page-title {
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 18px;
  font-family: Arial, sans-serif;
}

.page-sub {
  font-size: 19px;
  color: var(--g2);
  max-width: 560px;
  line-height: 1.65;
  font-family: Arial, sans-serif;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  padding: 80px 0;
}

.form-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
  font-family: Arial, sans-serif;
}

.form-sub {
  font-size: 16px;
  color: var(--g2);
  margin-bottom: 32px;
  font-family: Arial, sans-serif;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--black);
  margin-bottom: 7px;
  font-family: Arial, sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--g4);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.18s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--black); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  padding: 13px 32px;
  background: var(--black);
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.18s;
}

.form-submit:hover { background: var(--g1); }

.form-success {
  display: none;
  padding: 20px;
  background: var(--g5);
  border: 1px solid var(--g4);
  border-radius: 4px;
  font-size: 17px;
  color: var(--black);
  font-family: Arial, sans-serif;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 4px;
}

.ci-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g3);
  margin-bottom: 5px;
  font-family: Arial, sans-serif;
}

.ci-val {
  font-size: 17px;
  color: var(--black);
  font-family: Arial, sans-serif;
}

.ci-val a { color: var(--black); text-decoration: none; }
.ci-val a:hover { text-decoration: underline; }

.contact-social-links {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--g4);
}

.contact-social-link {
  padding: 8px 16px;
  border: 1.5px solid var(--g4);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g2);
  text-decoration: none;
  transition: all 0.18s;
  font-family: Arial, sans-serif;
}

.contact-social-link:hover { border-color: var(--black); color: var(--black); }

/* ============================================================
   FILTER BAR (projects page)
   ============================================================ */

.filter-bar {
  border-bottom: 1px solid var(--g4);
  padding: 0;
}

.filter-bar-inner {
  display: flex;
  gap: 0;
  padding: 0 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-btn {
  padding: 16px 20px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s;
}

.filter-btn:hover { color: var(--black); }
.filter-btn.active { color: var(--black); border-bottom-color: var(--black); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 0;
}

.about-body {
  font-size: 18px;
  color: var(--g2);
  line-height: 1.8;
  font-family: Arial, sans-serif;
}

.about-body + .about-body { margin-top: 20px; }

.about-body p + p { margin-top: 16px; }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--g4);
}

.tl-year {
  font-size: 15px;
  font-weight: 700;
  color: var(--g3);
  padding-top: 2px;
  font-family: Arial, sans-serif;
}

.tl-role {
  font-size: 17px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 3px;
  font-family: Arial, sans-serif;
}

.tl-company {
  font-size: 15px;
  color: var(--g2);
  font-family: Arial, sans-serif;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Scale header at medium-large screens */
@media (max-width: 1100px) {
  .header-inner { padding: 0 36px 0 80px; gap: 16px; }
  .nav-link { padding: 6px 11px; font-size: 12px; }
  .header-group { padding: 6px 12px 6px 8px; gap: 5px; }
  .social-btn { width: 30px; height: 30px; }
  .social-btn img { width: 30px; height: 30px; }
  .header-contact-btn { font-size: 14px; }
  .header-contact-btn img { width: 30px; height: 30px; }
}

@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Tablet — compress header, all elements still visible */
@media (max-width: 900px) {
  .header-inner { padding: 0 26px 0 66px; gap: 10px; }
  .logo-mark { width: 28px; height: 28px; font-size: 12px; }
  .logo-name { font-size: 14px; }
  .nav-link { padding: 5px 8px; font-size: 11px; letter-spacing: 0.08em; }
  .header-group { padding: 5px 10px 5px 7px; gap: 4px; }
  .social-btn { width: 26px; height: 26px; }
  .social-btn img { width: 26px; height: 26px; }
  .header-contact-btn { font-size: 13px; }
  .header-contact-btn img { width: 26px; height: 26px; }
}

/* Small tablet / landscape phone — phone text hidden, all icons visible, no burger */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .header-inner { padding: 0 18px 0 50px; gap: 6px; }
  .logo-name { display: none; }
  .logo-mark { width: 26px; height: 26px; font-size: 11px; border-radius: 4px; }
  .nav-link { padding: 4px 6px; font-size: 10px; letter-spacing: 0.06em; }
  .nav-link { padding: 5px 8px; border-radius: 5px; }
  .social-btn { width: 22px; height: 22px; }
  .social-btn img { width: 22px; height: 22px; }
  .header-group { padding: 4px 8px 4px 6px; gap: 3px; }
  .header-contact-btn { font-size: 12px; padding: 0 0 0 5px; }
  .header-contact-btn img { width: 22px; height: 22px; }
  .btn-phone-text { display: none; }
  .header-sep { display: none; }

  .hero { grid-template-columns: 1fr; min-height: auto; padding: 0 24px; gap: 0; }
  .hero-left { padding: 40px 0 32px; }
  .hero-canvas { height: 65vw; max-height: 460px; margin-bottom: 48px; order: -1; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }

  .section { padding: 64px 0; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr 1fr; }

  .exp-item { grid-template-columns: 1fr; gap: 6px; }
  .exp-period { padding-top: 0; }

  .cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-right { text-align: left; }

  .filter-bar-inner { padding: 0 24px; overflow-x: auto; }
  .form-row { grid-template-columns: 1fr; }
}

/* Small phone portrait — everything scaled to minimum */
@media (max-width: 500px) {
  .header-inner { padding: 0 12px 0 34px; gap: 4px; }
  .nav-link { padding: 3px 4px; font-size: 9px; letter-spacing: 0.04em; }
  .nav-link { padding: 4px 5px; border-radius: 4px; }
  .social-btn { width: 18px; height: 18px; }
  .social-btn img { width: 18px; height: 18px; }
  .header-group { padding: 3px 6px 3px 5px; gap: 2px; border-radius: 7px; }
  .header-contact-btn { font-size: 11px; padding: 0 0 0 4px; }
  .header-contact-btn img { width: 18px; height: 18px; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .hero-stat:not(:last-child) {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--g4);
    padding-bottom: 16px;
    margin-bottom: 0;
  }
}

/* ============================================================
   YOUTUBE VIDEOS SECTION
   ============================================================ */

.yt-section {
  background: var(--black);
  padding: 80px 48px 96px;
  position: relative;
  overflow: hidden;
}

.yt-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

.yt-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0a0a0a 0%, transparent 15%, transparent 85%, #0a0a0a 100%),
    linear-gradient(180deg, #0a0a0a 0%, transparent 12%, transparent 88%, #0a0a0a 100%);
  pointer-events: none;
  z-index: 0;
}

.yt-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.yt-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}

.yt-eyebrow {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 8px;
}

.yt-title {
  font-family: Arial, sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
}

.yt-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid rgba(249,115,22,0.65);
  border-radius: 10px;
  background: rgba(249,115,22,0.1);
  color: #f97316;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.yt-more-btn:hover {
  background: rgba(249,115,22,0.22);
  border-color: #f97316;
}

.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.yt-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(249,115,22,0.2);
  background: rgba(255,255,255,0.04);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.yt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249,115,22,0.55);
  box-shadow: 0 12px 40px rgba(249,115,22,0.15);
}

.yt-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.yt-card:hover .yt-thumb img {
  transform: scale(1.04);
}

.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.2s;
}

.yt-card:hover .yt-play {
  opacity: 1;
}

.yt-play svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

.yt-card-body {
  padding: 14px 16px 16px;
}

.yt-card-title {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .yt-section { padding: 64px 32px 80px; }
  .yt-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 600px) {
  .yt-section { padding: 56px 20px 72px; }
  .yt-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .yt-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   BEFORE / AFTER COMPARE SLIDER
   ============================================================ */

.compare-section {
  background: var(--black);
  padding: 80px 48px 96px;
  position: relative;
  overflow: hidden;
}

.compare-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.14) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

.compare-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0a0a0a 0%, transparent 15%, transparent 85%, #0a0a0a 100%),
    linear-gradient(180deg, #0a0a0a 0%, transparent 14%, transparent 86%, #0a0a0a 100%);
  pointer-events: none;
  z-index: 0;
}

.compare-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.compare-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}

.compare-eyebrow {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 8px;
}

.compare-title {
  font-family: Arial, sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
}

.compare-sub {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(249,115,22,0.7);
  white-space: nowrap;
  flex-shrink: 0;
}

.compare-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid rgba(249,115,22,0.25);
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}

.compare-layer {
  position: absolute;
  inset: 0;
}

.compare-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.compare-layer--after {
  z-index: 1;
}

.compare-layer--before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #f97316;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(249,115,22,0.6);
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f97316;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.55), 0 0 0 1px rgba(249,115,22,0.4);
  pointer-events: all;
  cursor: ew-resize;
}

.compare-label {
  position: absolute;
  bottom: 18px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
}

.compare-label--left  { left: 18px; }
.compare-label--right { right: 18px; }

@media (max-width: 900px) {
  .compare-section { padding: 64px 32px 80px; }
  .compare-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 600px) {
  .compare-section { padding: 56px 20px 72px; }
  .compare-wrapper { aspect-ratio: 4 / 3; border-radius: 10px; }
  .compare-handle { width: 44px; height: 44px; }
}

/* ============================================================
   CONTACT / CHATBOX PAGE
   ============================================================ */

.contact-section {
  min-height: calc(100vh - var(--hh));
  background: var(--black);
  position: relative;
  overflow: hidden;
  padding: 72px 48px 96px;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

.contact-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0a0a0a 0%, transparent 18%, transparent 82%, #0a0a0a 100%),
    linear-gradient(180deg, #0a0a0a 0%, transparent 12%, transparent 88%, #0a0a0a 100%);
  pointer-events: none;
  z-index: 0;
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-inner--centered {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.contact-form-header {
  text-align: center;
  margin-bottom: 8px;
}

.contact-form-header .contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.contact-right--full {
  border: 1.5px solid rgba(249,115,22,0.3);
  box-shadow: 0 0 60px rgba(249,115,22,0.07), 0 24px 64px rgba(0,0,0,0.5);
}

/* Left column */
.contact-left {}

.contact-eyebrow {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 12px;
}

.contact-heading {
  font-family: Arial, sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.contact-sub {
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: var(--g3);
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 40px;
}

/* Chat bubbles */
.contact-bubbles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cb {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cb__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: white;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.cb__body {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0 14px 14px 14px;
  padding: 12px 16px 8px;
  max-width: 300px;
}

.cb__body p {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin: 0 0 6px;
}

.cb__time {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: var(--g2);
}

.cb__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--g3);
  margin-top: 4px;
  padding-left: 50px;
}

.cb__online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-green 2s infinite;
}

/* Right column — form */
.contact-right {
  background: rgba(30,30,30,0.95);
  border: 2px solid rgba(249,115,22,0.5);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 0 0 1px rgba(249,115,22,0.1), 0 32px 80px rgba(0,0,0,0.6);
}

.cf { display: flex; flex-direction: column; gap: 24px; }

.cf__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cf__group { display: flex; flex-direction: column; gap: 8px; }

.cf__label {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.cf__label-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255,255,255,0.3);
  font-size: 11px;
}

.cf__input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.cf__input::placeholder { color: rgba(255,255,255,0.25); }

.cf__input:focus {
  border-color: rgba(249,115,22,0.6);
  background: rgba(249,115,22,0.04);
}

.cf__textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

/* Dropzone */
.cf__dropzone {
  border: 2px dashed rgba(249,115,22,0.35);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cf__dropzone:hover,
.cf__dropzone.drag-over {
  border-color: #f97316;
  background: rgba(249,115,22,0.06);
}

.cf__file-hidden {
  display: none;
}

.cf__drop-text {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

.cf__drop-link {
  color: #f97316;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.cf__drop-hint {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin: 0;
  letter-spacing: 0.04em;
}

/* File list */
.cf__files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.cf__file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 12px;
}

.cf__file-ext {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  background: rgba(249,115,22,0.2);
  color: #f97316;
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.cf__file-name {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf__file-size {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--g3);
  flex-shrink: 0;
}

.cf__file-remove {
  background: none;
  border: none;
  color: var(--g3);
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}

.cf__file-remove:hover { color: #ef4444; }

/* Send button */
.cf__send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 28px;
  background: #f97316;
  border: none;
  border-radius: 10px;
  color: #0a0a0a;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.cf__send-btn:hover:not(:disabled) {
  background: #ea6a0a;
  transform: translateY(-2px);
}

.cf__send-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Result message */
.cf__result {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 16px;
  display: none;
}

.cf__result:not(:empty) { display: block; }

.cf__result--success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #86efac;
}

.cf__result--error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-section { padding: 56px 32px 80px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-right { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .contact-section { padding: 48px 20px 72px; }
  .cf__row { grid-template-columns: 1fr; }
}

/* ============================================================
   FLANGE TABLES / RESOURCES PAGE  (valvesonline-style layout)
   ============================================================ */

/* ============================================================
   RESOURCES LANDING PAGE  (category cards)
   ============================================================ */

.res-lp-hero {
  background: var(--black);
  position: relative;
  padding: calc(var(--hh) + 64px) 48px 64px;
  overflow: hidden;
}
.res-lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.res-lp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0a0a0a 0%, transparent 20%, transparent 80%, #0a0a0a 100%),
    linear-gradient(180deg, #0a0a0a 0%, transparent 16%, transparent 55%, #0a0a0a 100%);
  pointer-events: none;
}
.res-lp-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.res-lp-hero__eyebrow {
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(249,115,22,1);
  margin-bottom: 14px;
}
.res-lp-hero__title {
  font-family: Arial, sans-serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.res-lp-hero__sub {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--g3);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

.res-lp-body {
  background: #f5f5f5;
  padding: 60px 48px 80px;
}
.res-lp-body__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.res-lp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.res-cat-card {
  background: var(--white);
  border: 2px solid #e8e8e8;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
  color: var(--black);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: default;
}
.res-cat-card--active {
  cursor: pointer;
  border-color: var(--black);
}
.res-cat-card--active:hover {
  border-color: rgba(249,115,22,1);
  box-shadow: 0 6px 24px rgba(249,115,22,0.12);
  transform: translateY(-2px);
}
.res-cat-card--soon {
  opacity: 0.6;
}

.res-cat-card__icon {
  width: 52px;
  height: 52px;
  color: rgba(249,115,22,1);
  flex-shrink: 0;
}
.res-cat-card__icon svg { width: 100%; height: 100%; }

.res-cat-card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; }

.res-cat-card__title {
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--black);
  line-height: 1.2;
}
.res-cat-card__desc {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--g2);
  line-height: 1.65;
  flex: 1;
}
.res-cat-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.res-cat-card__count {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--g3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.res-cat-card__arrow {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(249,115,22,1);
  white-space: nowrap;
}
.res-cat-soon-badge {
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g3);
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 3px;
}

@media (max-width: 900px) {
  .res-lp-grid { grid-template-columns: repeat(2, 1fr); }
  .res-lp-body { padding: 40px 24px 60px; }
  .res-lp-hero { padding: calc(var(--hh) + 48px) 24px 48px; }
}
@media (max-width: 560px) {
  .res-lp-grid { grid-template-columns: 1fr; }
  .res-lp-hero { padding: calc(var(--hh) + 36px) 20px 36px; }
  .res-lp-body { padding: 32px 16px 48px; }
}

/* Force Arial on every element in the resources page — browsers don't always inherit for form elements */
.ft-page-title, .ft-page-title *,
.ft-layout, .ft-layout * {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
}

/* ── Page title bar ── */
.ft-page-title {
  background: var(--black);
  padding: calc(var(--hh) + 40px) 48px 36px;
  border-bottom: 3px solid rgba(249,115,22,0.6);
}
.ft-page-title__inner { max-width: 1320px; margin: 0 auto; }
.ft-page-title__small {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249,115,22,0.9);
  margin-bottom: 8px;
}
.ft-page-title__h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}
.ft-back-link {
  font-size: 13px;
  color: var(--g3);
  text-decoration: none;
  transition: color 0.15s;
}
.ft-back-link:hover { color: rgba(249,115,22,0.9); }

/* ── Main two-column layout ── */
.ft-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px 80px;
  gap: 0 48px;
  align-items: start;
  background: var(--white);
}

/* ── LEFT: selector panel ── */
.ft-selector-panel {
  padding-top: 40px;
  position: sticky;
  top: calc(var(--hh) + 20px);
}

.ft-intro {
  margin-bottom: 28px;
}
.ft-intro p {
  font-size: 14px;
  color: var(--g2);
  line-height: 1.7;
  margin-bottom: 10px;
}

.ft-selector-card {
  background: #fff;
  border: 2px solid var(--black);
  padding: 28px 24px;
  margin-bottom: 28px;
}
.ft-selector-card__title {
  font-size: 22px;
  font-weight: 900;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 20px;
}
.ft-selector-card__title small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249,115,22,1);
  margin-bottom: 4px;
}

.ft-selector-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ft-select {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  color: var(--black);
  background: #fff;
  border: 2px solid #d0d0d0;
  border-radius: 0;
  outline: none;
  cursor: pointer;
  appearance: auto;
  transition: border-color 0.15s;
}
.ft-select:focus { border-color: rgba(249,115,22,0.8); }

.ft-go-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  color: var(--white);
  background: var(--black);
  border: 2px solid var(--black);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.15s, border-color 0.15s;
}
.ft-go-btn:hover { background: rgba(249,115,22,1); border-color: rgba(249,115,22,1); }

.ft-selector-or {
  text-align: center;
  font-size: 13px;
  color: var(--g3);
  margin-bottom: 12px;
  position: relative;
}
.ft-selector-or::before, .ft-selector-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: #ddd;
}
.ft-selector-or::before { left: 0; }
.ft-selector-or::after  { right: 0; }

.ft-print-btn {
  width: 100%;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  color: var(--black);
  background: transparent;
  border: 2px solid #d0d0d0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: border-color 0.15s, color 0.15s;
}
.ft-print-btn:hover { border-color: var(--black); }

.ft-cat-nav { margin-bottom: 0; }
.ft-cat-nav__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g3);
  margin-bottom: 10px;
}
.ft-cat-nav__list { list-style: none; }
.ft-cat-nav__item {
  font-size: 13px;
  color: var(--g2);
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ft-cat-nav__item--active { font-weight: 700; color: var(--black); }
.ft-cat-nav__item--soon { color: var(--g3); }
.ft-soon {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f3f3f3;
  color: var(--g3);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ── RIGHT: stacked DN tables ── */
.ft-tables {
  padding-top: 40px;
}

.ft-section {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--hh) + 20px);
  transition: background 0.3s;
}
.ft-section--flash {
  background: rgba(249,115,22,0.06);
  border-radius: 4px;
}

.ft-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 0;
}
.ft-section-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--black);
  line-height: 1.3;
}
.ft-section-note {
  font-size: 12px;
  color: var(--g3);
  white-space: nowrap;
}

.ft-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ft-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}
.ft-table thead tr {
  background: var(--black);
}
.ft-table th {
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.ft-table th:first-child { text-align: left; padding-left: 16px; }
.ft-table th:last-child  { border-right: none; }

.ft-table td {
  padding: 10px 14px;
  text-align: center;
  color: var(--black);
  border-bottom: 1px solid #ebebeb;
  border-right: 1px solid #f0f0f0;
  vertical-align: middle;
}
.ft-table td:first-child { text-align: left; padding-left: 16px; }
.ft-table td:last-child  { border-right: none; }
.ft-table tbody tr:last-child td { border-bottom: none; }
.ft-table tbody tr:hover td { background: rgba(249,115,22,0.04); }
.ft-table tbody tr:nth-child(even) td { background: #fafafa; }
.ft-table tbody tr:nth-child(even):hover td { background: rgba(249,115,22,0.05); }

.ft-std {
  font-weight: 700;
  color: var(--black);
}

.ft-row-hl td {
  background: rgba(249,115,22,0.08) !important;
}
.ft-row-hl .ft-std {
  color: rgba(249,115,22,1);
}

.ft-ref-note {
  font-size: 13px;
  color: var(--g3);
  line-height: 1.6;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid #e8e8e8;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ft-layout { padding: 0 24px 60px; gap: 0 32px; }
}
@media (max-width: 860px) {
  .ft-layout { grid-template-columns: 1fr; padding: 0 20px 48px; }
  .ft-selector-panel { position: static; padding-top: 28px; }
  .ft-selector-card { margin-bottom: 20px; }
  .ft-page-title { padding: calc(var(--hh) + 28px) 20px 24px; }
}
@media (max-width: 600px) {
  .ft-table th, .ft-table td { padding: 9px 10px; font-size: 13px; }
  .ft-section-title { font-size: 15px; }
}

@media print {
  .header, .mob-nav, .ft-selector-panel, .footer { display: none; }
  .ft-layout { display: block; padding: 0; }
  .ft-page-title { padding: 20px; background: white; color: black; border: none; }
  .ft-page-title__small, .ft-page-title__h1 { color: black; }
  .ft-tables { padding-top: 0; }
  .ft-section { break-inside: avoid; margin-bottom: 28px; }
  .ft-table thead tr { background: #333; }
}
