/* index2.html — single-page overrides
   Layered on top of style.css.
   Font: Inter · Ground: warm off-white  */

/* ── CSS custom properties ────────────────────────────────────────────────── */

:root {
  --red:    #cb0101;
  --ink:    #0f0f0e;
  --ground: #f9f8f5;
  --muted:  #888888;
  --rule:   #e2e0da;
}

/* ── Background: warm off-white + dot grid ────────────────────────────────── */

body {
  background-color: var(--ground);
  font-family: 'Inter', system-ui, sans-serif;
}

/* Dot grid lives on a fixed pseudo-element behind all content */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
  pointer-events: none;
}

/* Ensure all direct page regions stack above the dot grid */
main, footer {
  position: relative;
  z-index: 1;
}

/* ── Smooth scrolling ─────────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

/* ── Nav: centered links, underline-grow hover ────────────────────────────── */

.site-nav {
  justify-content: center;
  background-color: #ffffff;
  background-image: none;
  border-bottom-color: var(--rule);
}

.nav-links > li > a {
  position: relative;
  color: var(--ink);
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links > li > a:hover {
  color: var(--red);
  text-decoration: none;
}

.nav-links > li > a:hover::after {
  transform: scaleX(1);
}

/* Mobile dropdown: reanchor to header */
@media (max-width: 767px) {
  .nav-mobile {
    position: static;
  }

  .nav-mobile ul {
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-color: var(--rule);
  }
}

/* ── Headings ─────────────────────────────────────────────────────────────── */

h1, h2, h3,
.section-label {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Entry animations ─────────────────────────────────────────────────────── */

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

/* ── Hero section ─────────────────────────────────────────────────────────── */

.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 5rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

/* All widths: hero children fill available width */
.hero > * {
  width: 100%;
}

/* Desktop: constrain hero content to 760px column */
@media (min-width: 768px) {
  .hero > * {
    max-width: 760px;
  }

  .hero h1 {
    justify-content: flex-start;
  }
}

.hero h1 {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  line-height: 1;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-icon {
  height: 1em;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.hero h2 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.hero h2:nth-of-type(1) {
  animation: fadeUp 0.7s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h2:nth-of-type(2) {
  animation: fadeUp 0.7s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-rule {
  border: none;
  border-top: 1px solid var(--rule);
  width: 100%;
  max-width: 760px;
  margin: 2.25rem 0;
  animation: fadeUp 0.7s 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero p {
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  max-width: 760px;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.85;
  color: #444444;
  text-align: justify;
}

.hero p:nth-of-type(1) {
  animation: fadeUp 0.7s 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero p:nth-of-type(2) {
  animation: fadeUp 0.7s 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (max-width: 767px) {
  .hero h1 { font-size: 3rem; }
  .hero h2 { font-size: 0.9375rem; }
  .hero p  { text-align: left; }
}

/* ── Service sections ─────────────────────────────────────────────────────── */

.service-section {
  position: relative;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.service-section[data-number]::before {
  content: attr(data-number);
  position: absolute;
  top: -0.1em;
  left: -0.05em;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14rem;
  font-weight: 700;
  color: rgba(203, 1, 1, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.service-section > * {
  position: relative;
  z-index: 1;
}

.service-section:last-child {
  border-bottom: none;
}

@media (max-width: 767px) {
  .service-section { padding: 3.5rem 1.25rem; }
  .service-section[data-number]::before { font-size: 7rem; }
}

/* Section label */
.section-label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #aaaaaa;
  margin-bottom: 0.75rem;
}

/* Section title */
.section-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--red);
  margin-bottom: 2.5rem;
}

@media (max-width: 767px) {
  .section-title { font-size: 1.625rem; }
}

/* Body paragraphs: Instrument Serif */
.service-section p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #444444;
  margin-bottom: 1.25rem;
}

/* Projects label */
.service-section h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 2rem 0 1rem;
}

/* Custom — bullet list */
.service-section ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding-left: 0;
}

.service-section ul li {
  position: relative;
  padding-left: 1.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #555555;
  margin-bottom: 0.6rem;
}

.service-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9em;
}

/* Contact email */
.service-section p.email {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

/* ── Override main ────────────────────────────────────────────────────────── */

main.single-page {
  max-width: none;
  padding: 0;
  min-height: auto;
}

/* ── Footer: colophon ─────────────────────────────────────────────────────── */

footer {
  position: relative;
  z-index: 1;
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #ffffff;
  background-image: none;
  border-top: 2px solid var(--red);
  padding: 2rem 1.5rem;
}

footer p {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
