/* Arsun Technologies — company site
   Black editorial theme: true black, oversized typography,
   logo-orange accent, generous negative space. No build step. */

:root {
  --bg: #000000;
  --bg-raised: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);

  --ink: #f5f4f0;          /* warm white */
  --body: #b6b4ad;
  --muted: #85837c;
  --faint: #595752;

  --accent: #ee8a2a;       /* swoosh orange from the logo */
  --accent-bright: #ffab55;
  --gradient: linear-gradient(100deg, #ffb45e 0%, #ee8a2a 45%, #c05f0a 100%);

  --wrap: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(238, 138, 42, 0.3); color: #fff; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.wordmark:hover { color: var(--ink); }
.logo-mark {
  display: block;
  width: 36px;
  height: auto;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-hover); }
.nav .nav-cta {
  color: #000;
  background: var(--ink);
  font-weight: 600;
}
.nav .nav-cta:hover { color: #000; background: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 110px 0 140px; text-align: center; }
.hero-mark-stage {
  display: flex;
  justify-content: center;
  margin: 0 0 48px;
  perspective: 1100px;
}
.hero-mark {
  display: block;
  width: clamp(170px, 24vw, 270px);
  height: auto;
  transform-style: preserve-3d;
  animation: swivel 8s linear infinite;
  filter: drop-shadow(0 18px 50px rgba(238, 138, 42, 0.18));
}
@keyframes swivel {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
.hero-label {
  margin: 0 0 34px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(30px, 8vw, 104px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  white-space: nowrap;
  background: linear-gradient(95deg, #ee8a2a 0%, #ffb45e 30%, #f5f4f0 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subhead {
  margin: 40px auto 0;
  max-width: 58ch;
  color: var(--body);
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.55;
  letter-spacing: 0.005em;
}

/* ---------- Section scaffolding ---------- */
section { scroll-margin-top: 88px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 40px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 72px;
  background: linear-gradient(90deg, rgba(238, 138, 42, 0.6), transparent);
}

/* ---------- Portfolio ---------- */
.portfolio { padding: 20px 0 150px; }
.work-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: baseline;
  gap: 28px;
  padding: 44px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  overflow: hidden;
  transition: background 0.2s ease, padding-left 0.25s ease;
}
/* pointer-tracked spotlight (position set by script.js) */
.work-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    440px circle at var(--mx, 50%) var(--my, 50%),
    rgba(238, 138, 42, 0.06),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.work-row:hover::before { opacity: 1; }
a.work-row:hover {
  background: var(--surface);
  padding-left: 20px;
  color: var(--body);
}
.work-num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
}
.work-main h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  transition: color 0.2s ease;
}
a.work-row:hover .work-main h3 { color: #fff; }
.work-main p {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.work-link .arrow { transition: transform 0.2s ease; }
a.work-row:hover .work-link { color: var(--accent-bright); }
a.work-row:hover .work-link .arrow { transform: translate(3px, -3px); }

.badge {
  justify-self: start;
  padding: 6px 14px;
  border: 1px solid rgba(238, 138, 42, 0.3);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Outro ---------- */
.outro { padding: 0 0 150px; }
.outro p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.outro a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.outro a:hover { color: var(--accent-bright); }
.outro .arrow { transition: transform 0.16s ease; }
.outro a:hover .arrow { transform: translateX(5px); }

/* ---------- Contact page ---------- */
.contact-page { padding: 150px 0 170px; }
.contact-label {
  margin: 0 0 34px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.contact-lead {
  margin: 0;
  color: var(--ink);
  font-size: clamp(52px, 9vw, 116px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.99;
}
.contact-lead .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-sub {
  margin: 36px 0 52px;
  max-width: 46ch;
  color: var(--body);
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 23px);
  line-height: 1.55;
}
.email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font-size: clamp(15px, 2.4vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.email:hover {
  color: #000;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(238, 138, 42, 0.4);
}
.location {
  margin: 30px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--faint);
  font-size: 13.5px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal { padding: 110px 0 140px; }
.legal h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.legal .updated {
  margin: 0 0 52px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
.legal h2 {
  margin: 48px 0 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal p {
  margin: 0 0 14px;
  max-width: 66ch;
  color: var(--body);
}
.legal .muted { color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
/* if JS never runs, keep content visible */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 104px 0 96px; }
  .portfolio { padding: 8px 0 104px; }
  .outro { padding: 0 0 104px; }
  .contact-page { padding: 104px 0 120px; }
  .work-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 34px 4px;
  }
  a.work-row:hover { padding-left: 4px; }
  .work-num { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 22px; }
  .nav { gap: 4px; }
  .nav a { padding: 7px 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

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