/* =========================================================
   Arthur Industries — Style
   ========================================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Dark (default) */
  --bg:       #030712;
  --surface:  #0c1628;
  --text:     #e8eef4;
  --text-dim: #8896a8;
  --gold:     #c9a84c;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --emerald:  #34d399;
  --border:   rgba(232, 238, 244, 0.08);
  --nav-bg:   rgba(3, 7, 18, 0.85);
}

[data-theme="light"] {
  --bg:       #f8f9fc;
  --surface:  #ffffff;
  --text:     #0f172a;
  --text-dim: #64748b;
  --gold:     #92650a;
  --gold-dim: rgba(146, 101, 10, 0.10);
  --emerald:  #059669;
  --border:   rgba(15, 23, 42, 0.08);
  --nav-bg:   rgba(248, 249, 252, 0.85);
}

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

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

.animate-in {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__wordmark {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  transition: opacity 0.2s;
}

.nav__wordmark:hover { opacity: 0.8; }

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.nav__toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* Show sun in dark mode, moon in light mode */
[data-theme="dark"] .nav__toggle-icon--moon { display: none; }
[data-theme="light"] .nav__toggle-icon--sun { display: none; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 80px;
  text-align: center;
}

.hero__content {
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero__ornament {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0.7;
}

.hero__title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero__subline {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.hero__location {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.12em;
  color: var(--gold);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: var(--gold);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section__label {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  margin-bottom: 48px;
}

/* --- About --- */
.about__body {
  max-width: 680px;
  margin-bottom: 40px;
}

.about__body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dim);
}

.about__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  border-radius: 100px;
  padding: 8px 20px;
}

/* --- Portfolio --- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .portfolio__grid { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.card--active:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

a.card--active { cursor: pointer; }
a.card { text-decoration: none; color: inherit; }

.card--emerald:hover { border-color: var(--emerald); }
.card--emerald .card__name { color: var(--emerald); }

.card--soon {
  border-style: dashed;
  opacity: 0.45;
  cursor: default;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card__category {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.card__status {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.card__status--active {
  color: var(--gold);
  background: var(--gold-dim);
}

.card__status--soon {
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
}

.card__name {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.card--active:not(.card--emerald) .card__name {
  color: var(--text);
}

.card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  flex: 1;
}

.card__link-hint {
  display: block;
  margin-top: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s, transform 0.25s;
}

.card--active:hover .card__link-hint {
  opacity: 1;
  transform: translateX(0);
}

.card--emerald:hover .card__link-hint { color: var(--emerald); }

/* --- Founder --- */
.founder__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .founder__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
    text-align: center;
  }
}

.founder__monogram-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder__monogram {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--gold);
  background: var(--gold-dim);
}

.founder__name {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.founder__title {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.founder__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 600px;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}

.footer__wordmark {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer__rule {
  border: none;
  height: 1px;
  background: var(--gold);
  opacity: 0.3;
  margin-bottom: 28px;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__contact p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
}

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

.footer__links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__legal {
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.6;
}
