/* ================================================================
   Variables
   ================================================================ */
:root {
  --bg:            #ffffff;
  --surface:       #f6f6f4;
  --surface-hi:    #eeede9;
  --border:        #e4e2de;
  --border-hi:     #c8c5bf;
  --text:          #111111;
  --text-2:        #555555;
  --text-3:        #aaaaaa;
  --accent:        #b07d2a;
  --accent-hover:  #8f6418;
  --accent-dim:    rgba(176, 125, 42, 0.08);

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Cascadia Code', monospace;

  --max-w:   1120px;
  --nav-h:   62px;
  --pad-x:   2rem;
  --r:       6px;
  --r-lg:    10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t:    0.18s ease;
}

/* ================================================================
   Reset
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-hover); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 { font-size: clamp(2.75rem, 6.5vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 0.5rem; }

p { color: var(--text-2); line-height: 1.75; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ================================================================
   Layout
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: 6rem 0; }

/* Section tag: "01 — About" */
.section-tag {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.25rem !important;
}

.section-tag::after {
  content: '——';
  color: var(--border-hi);
  letter-spacing: 0;
}

.tag-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.68rem;
}

/* ================================================================
   Nav
   ================================================================ */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  transition: opacity var(--t);
}
.nav-logo:hover { opacity: 0.65; color: var(--text); }

.nav-logo-img {
  height: 26px;
  width: auto;
  filter: none;
  opacity: 0.9;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.1rem;
}

.nav-links a {
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r);
  transition: color var(--t), background-color var(--t);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-hi);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

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

/* ================================================================
   Hero
   ================================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

/* Subtle dot grid — fades from top */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 55%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 55%, transparent 80%);
  pointer-events: none;
}

.hero::after { display: none; }

.hero-content {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 2rem;
  margin-bottom: 2rem !important;
  border-bottom: 1px solid var(--border);
  display: block;
  animation: fadeUp 0.7s var(--ease) 0s both;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2rem !important;
  white-space: nowrap;
  overflow: hidden;
  animation: fadeUp 0.7s var(--ease) 0.1s both;
}

.hero-headline {
  margin-bottom: 1.75rem;
  max-width: 14ch;
  animation: fadeUp 0.7s var(--ease) 0.2s both;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-2);
  max-width: 54ch;
  margin-bottom: 2.5rem !important;
  animation: fadeUp 0.7s var(--ease) 0.3s both;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  animation: fadeUp 0.7s var(--ease) 0.5s both;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

.metric-sep {
  width: 1px;
  height: 30px;
  background: var(--border-hi);
  flex-shrink: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-kicker, .hero-headline, .hero-sub, .hero-cta, .hero-metrics { animation: none; }
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}
.btn-primary:hover {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-hi);
}
.btn-outline:hover {
  background: var(--surface-hi);
  color: var(--text);
  border-color: var(--border-hi);
}

.btn-contact {
  background: var(--surface);
  color: var(--text-2);
  border-color: var(--border-hi);
}
.btn-contact:hover {
  background: var(--surface-hi);
  color: var(--text);
  border-color: var(--border-hi);
}

/* ================================================================
   About
   ================================================================ */
.about {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-photo-wrap { display: flex; justify-content: center; }

.about-photo {
  width: 260px;
  height: 300px;
  border-radius: var(--r-lg);
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid var(--border-hi);
}

.about-copy h2 { margin-bottom: 1.5rem; }

/* ================================================================
   Track Record
   ================================================================ */
.track-record h2 { margin-bottom: 2.5rem; }

.companies {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.company {
  background: var(--bg);
  padding: 1.75rem 2rem;
  position: relative;
  transition: background var(--t);
}

.company::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transition: background var(--t);
}

.company:hover { background: var(--surface); }
.company:hover::before { background: var(--accent); }

.company-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.company-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 !important;
}

.company-tenure {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0 !important;
}

.company-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem !important;
}

.company-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 !important;
}

/* ================================================================
   Services
   ================================================================ */
.services {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services h2 { margin-bottom: 2.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.service {
  background: var(--surface);
  padding: 1.75rem;
  transition: background var(--t);
}
.service:hover { background: var(--surface-hi); }

.service-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.service-icon {
  color: var(--text-3);
  transition: color var(--t);
}
.service:hover .service-icon { color: var(--accent); }

.service h3 { color: var(--text); }
.service p { font-size: 0.875rem; margin: 0; }

/* ================================================================
   Contact
   ================================================================ */
.contact-inner { max-width: 540px; }
.contact h2 { margin-bottom: 0.75rem; }

.contact-sub {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 2rem !important;
}

.contact-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-btn-wrap {
  position: relative;
  display: inline-block;
}

.contact-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  border-radius: var(--r);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  width: max-content;
  max-width: calc(100vw - 3rem);
  z-index: 200;
  animation: popIn 0.15s var(--ease);
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.popup-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 0.5rem !important;
}

.popup-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.popup-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
  user-select: all;
}

.popup-copy {
  flex-shrink: 0;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: var(--r);
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--t);
  -webkit-tap-highlight-color: transparent;
}
.popup-copy:hover { background: var(--accent-hover); }
.popup-copy.copied { background: #22c55e; color: #fff; }

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

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-left {
  font-size: 0.82rem;
  color: var(--text-2);
}

.footer-left a {
  color: var(--text-2);
  border-bottom: 1px solid var(--border-hi);
  transition: color var(--t), border-color var(--t);
}

.footer-left a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.footer-right {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ================================================================
   Responsive — Tablet ≥640px
   ================================================================ */
@media (min-width: 640px) {
  .companies { grid-template-columns: 1fr 1fr; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ================================================================
   Responsive — Desktop ≥900px
   ================================================================ */
@media (min-width: 900px) {
  .about-inner { grid-template-columns: 280px 1fr; }
  .about-photo-wrap { justify-content: flex-start; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================
   Responsive — Mobile nav ≤768px
   ================================================================ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.25s var(--ease), opacity 0.2s ease;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 0.9rem 0; border-radius: 0; }

  .hero-metrics { gap: 1.25rem; }
  .metric-sep { display: none; }

  .company-top { flex-direction: column; gap: 0.2rem; }
}

/* ================================================================
   Responsive — Small mobile ≤480px
   ================================================================ */
@media (max-width: 780px) {
  .hero-kicker { white-space: normal; overflow: visible; }
  .kicker-sep { display: none; }
  .kicker-extra { display: block; }
}

@media (max-width: 480px) {
  :root { --pad-x: 1.25rem; }
  .section { padding: 4.5rem 0; }
  .hero-content { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .company { padding: 1.5rem; }
  .service { padding: 1.5rem; }
}
