/* ==========================================================================
   A S Soni & Company — design tokens
   ========================================================================== */

:root {
  /* color */
  --ink: #0E1320;
  --ink-2: #161C2C;
  --ink-3: #1F2739;
  --stone: #EFEBE1;
  --paper: #FAF8F3;
  --brass: #C89B4A;
  --brass-light: #E4C077;
  --brass-dark: #9C7530;
  --teal: #3FBFA6;
  --charcoal: #1C1C22;
  --mist: #6B7280;
  --mist-light: #9A9FAE;
  --line-dark: rgba(200, 155, 74, 0.22);
  --line-light: rgba(28, 28, 34, 0.12);
  --on-ink: #F3F1EA;

  /* type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* layout */
  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 0.6s;
}

@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;
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; }
p { margin: 0; }
ul, dl { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 19, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.seal {
  width: 40px;
  height: 40px;
  color: var(--brass-light);
  flex-shrink: 0;
}
.seal--sm { width: 34px; height: 34px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--on-ink);
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mist-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--on-ink);
  opacity: 0.82;
  transition: opacity 0.2s;
  position: relative;
}
.main-nav a:hover { opacity: 1; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 18px;
  margin: 0 auto;
  background: var(--on-ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
.btn-brass {
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  color: var(--ink);
  box-shadow: 0 8px 20px -8px rgba(200, 155, 74, 0.55);
}
.btn-brass:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(200, 155, 74, 0.65); }
.btn-ghost {
  background: transparent;
  color: var(--on-ink);
  border-color: rgba(243, 241, 234, 0.3);
}
.btn-ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; min-height: 38px; }
.btn-full { width: 100%; justify-content: center; }
.btn-arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ==========================================================================
   Eyebrow / section titles
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.1rem;
}
.eyebrow--dark { color: var(--brass-dark); }
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.section-title--light { color: var(--on-ink); }

.section-head { max-width: 640px; margin-bottom: 3rem; }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--ink { background: var(--ink); }
.section--stone { background: var(--stone); }
.section--paper { background: var(--paper); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0 6rem;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(63, 191, 166, 0.16), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  color: var(--on-ink);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.hero-title .amp {
  color: var(--brass-light);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--mist-light);
  max-width: 46ch;
  margin-bottom: 2.4rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-emblem {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.emblem-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
}
.emblem-ring--outer { inset: 0; animation: spin-slow 60s linear infinite; }
.emblem-ring--inner { inset: 14%; border-color: rgba(63, 191, 166, 0.28); }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.emblem-core {
  position: relative;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.02);
}
.emblem-mono {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--brass-light);
}
.emblem-line {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--mist-light);
}

.emblem-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--on-ink);
  background: rgba(22, 28, 44, 0.9);
  border: 1px solid var(--line-dark);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.emblem-tag--1 { top: 4%; left: -4%; }
.emblem-tag--2 { bottom: 10%; right: -8%; }
.emblem-tag--3 { bottom: -2%; left: 12%; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--mist-light);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-cue svg { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ==========================================================================
   About / ledger
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  color: var(--mist);
  font-size: 1.05rem;
  max-width: 56ch;
  margin-bottom: 1.1rem;
}

.ledger {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: 0 20px 50px -30px rgba(28,28,34,0.25);
}
.ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
}
.ledger-row:first-child { padding-top: 0; }
.ledger-row:nth-last-of-type(1) { border-bottom: none; }
.ledger-row dt {
  font-size: 0.95rem;
  color: var(--mist);
}
.ledger-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brass-dark);
}
.ledger-plus { font-size: 1.1rem; color: var(--teal); margin-left: 2px; }
.ledger-note {
  margin-top: 1.2rem;
  font-size: 0.76rem;
  color: var(--mist-light);
  font-style: italic;
}

/* ==========================================================================
   Service cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--brass);
  background: var(--ink-3);
}
.service-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(200, 155, 74, 0.1);
  color: var(--brass-light);
  margin-bottom: 1.3rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 {
  font-size: 1.15rem;
  color: var(--on-ink);
  margin-bottom: 0.6rem;
}
.service-card p {
  color: var(--mist-light);
  font-size: 0.94rem;
}

/* ==========================================================================
   Work grid
   ========================================================================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.work-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -24px rgba(28,28,34,0.35);
}
.work-tile {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(200,155,74,0.16), rgba(63,191,166,0.14));
  color: var(--brass-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.work-tile svg { width: 26px; height: 26px; }
.work-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.7rem;
}
.work-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.work-card p {
  font-size: 0.9rem;
  color: var(--mist);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 2.2rem;
}
.info-list li {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line-dark);
}
.info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.info-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(200,155,74,0.1);
  color: var(--brass-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-icon svg { width: 19px; height: 19px; }
.info-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist-light);
  margin-bottom: 0.3rem;
}
.info-value {
  display: block;
  color: var(--on-ink);
  font-size: 0.98rem;
}
.info-value--placeholder em {
  display: block;
  font-style: italic;
  color: var(--mist-light);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.contact-form {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--mist-light);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  color: var(--on-ink);
  min-height: 44px;
  transition: border-color 0.2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brass);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5l5 5 5-5' stroke='%23C89B4A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}
.form-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--mist-light);
  font-style: italic;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  margin-top: 1rem;
  color: var(--mist-light);
  font-size: 0.9rem;
  max-width: 42ch;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.1rem;
}
.footer-col a {
  display: block;
  color: var(--mist-light);
  font-size: 0.92rem;
  padding: 0.4rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--on-ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
  color: var(--mist-light);
}
.footer-bottom a:hover { color: var(--on-ink); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-emblem { order: -1; width: min(260px, 80%); }
  .about-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header[data-open="true"] .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }
  .site-header[data-open="true"] .nav-cta {
    margin: 0.25rem 0 0;
  }

  .card-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
