/* ============================================================
   Nicole Design & Co. — styles.css
   Bespoke editorial system: Spectral serif + Hanken Grotesk,
   warm off-white, soft beige, warm ink, ink-blue accent.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg:          #FBFAF6;   /* warm off-white */
  --paper:       #FFFFFF;   /* cards on bg */
  --beige:       #F0EBE0;   /* soft beige panel */
  --beige-deep:  #E6DECF;   /* deeper beige */

  /* Ink */
  --ink:         #1B1A16;   /* warm near-black */
  --ink-soft:    #595549;   /* muted body text */
  --ink-faint:   #908A7C;   /* captions / meta */

  /* Accent */
  --accent:      #2337FE;   /* electric blue */
  --accent-deep: #1726C9;
  --accent-tint: #ECEEFF;

  /* Lines */
  --line:        rgba(27, 26, 22, 0.12);
  --line-soft:   rgba(27, 26, 22, 0.07);

  /* Type */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 11vh, 8.5rem);
  --radius: 4px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 22ch; }
.section-head .eyebrow { margin-bottom: 1.1rem; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.amp, .brand-amp { font-style: italic; color: var(--accent); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1rem; }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

/* Brand wordmark + monogram */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.brand:hover .brand-mark { background: var(--accent); color: #fff; border-color: var(--accent); }
.brand-word {
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-desktop { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav-desktop > a {
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-soft);
  position: relative;
  transition: color .3s var(--ease);
}
.nav-desktop > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 1px; background: var(--ink);
  transition: width .35s var(--ease);
}
.nav-desktop > a:hover { color: var(--ink); }
.nav-desktop > a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  padding: 0.6rem 1.15rem;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  background: transparent;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink) !important;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; border-color: var(--ink); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.5rem var(--gutter) 1.75rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.nav-mobile a {
  padding: 0.9rem 0;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .nav-cta { border: none; padding: 1rem 0 0; color: var(--accent) !important; font-weight: 600; font-size: 1.05rem; text-align: left; background: transparent; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(8rem, 20vh, 12rem);
  padding-bottom: var(--section-y);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 1.4rem;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32ch;
  margin-top: 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.6rem; }

.hero-meta { margin-top: clamp(3.5rem, 8vw, 6rem); }
.meta-rule { height: 1px; background: var(--line); margin-bottom: 1.4rem; }
.hero-disciplines {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2.4rem;
}
.hero-disciplines li {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  position: relative;
}
.hero-disciplines li:not(:last-child)::after {
  content: "·"; position: absolute; right: -1.35rem; color: var(--line);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding-block: var(--section-y); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 5vw, 5rem);
}
.about .eyebrow { padding-top: 0.6rem; }
.about-lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.about-text {
  margin-top: 1.6rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding-block: var(--section-y); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3.25rem);
  transition: background .4s var(--ease);
}
.service-card:hover { background: var(--paper); }
.service-index {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.service-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-top: 1.5rem;
  letter-spacing: -0.01em;
}
.service-desc {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 38ch;
}

/* Wider section head w/ intro paragraph */
.section-head--wide { max-width: 46ch; }
/* Head whose title is hand-broken into exactly two lines via <br> */
.section-head--2line { max-width: none; }
.section-intro {
  margin-top: 1.4rem;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ============================================================
   HOW WE WORK
   ============================================================ */
.process {
  padding-block: var(--section-y);
  background: var(--beige);
}
.process-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.process-step {
  background: var(--beige);
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.process-num {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1;
  color: var(--accent);
  font-weight: 300;
}
.process-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  letter-spacing: -0.01em;
}
.process-desc { color: var(--ink-soft); font-size: 1.02rem; max-width: 34ch; }

/* ============================================================
   TEAM / PORTFOLIOS
   ============================================================ */
.team { padding-block: var(--section-y); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.team-card {
  display: grid;
  grid-template-columns: minmax(150px, 190px) 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}
.team-photo {
  width: 100%;
  height: auto !important;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--beige);
  border: 1px solid var(--line-soft);
}
.team-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.01em;
}
.team-role { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-top: 0.25rem; }
.team-bio { color: var(--ink-soft); margin-top: 1.1rem; font-size: 1rem; line-height: 1.55; }
.team-tags {
  list-style: none; padding: 0;
  margin-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.team-tags li {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--ink-soft);
  padding: 0.34rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
}
.team-actions {
  margin-top: 1.6rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.team-link {
  font-size: 0.95rem;
  color: var(--ink);
  width: fit-content;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.team-link:hover { color: var(--accent); border-color: var(--accent); }
.team-link--primary { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.team-link--primary:hover { color: var(--accent-deep); }
.link-arrow { display: inline-block; margin-left: 0.35rem; transition: transform .3s var(--ease); }
.team-link--primary:hover .link-arrow { transform: translate(2px, -2px); }
.team-link[data-placeholder]:not(.team-link--primary) { color: var(--ink-faint); }

/* ============================================================
   EXPERIENCE YOU CAN BUILD ON
   ============================================================ */
.experience { padding-block: var(--section-y); background: var(--beige); }
.build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}
.build-col {
  padding-top: 2rem;
  border-top: 1px solid var(--ink);
}
.build-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
}
.build-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.3rem;
}
.build-copy {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.contact {
  padding-block: clamp(5rem, 13vh, 9rem);
  background: var(--ink);
  color: var(--bg);
}
.contact-inner { max-width: 760px; margin-inline: auto; text-align: center; }
.contact .eyebrow { color: rgba(251,250,246,0.55); }
.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 1.2rem;
  text-wrap: balance;
}
.contact-text {
  color: rgba(251,250,246,0.72);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  margin: 1.5rem auto 0;
  max-width: 52ch;
}
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: #fff;
  margin: 2.4rem 0;
  border-bottom: 1px solid rgba(251,250,246,0.3);
  padding-bottom: 4px;
  transition: border-color .35s var(--ease), color .35s var(--ease);
}
.contact-email:hover { border-color: #fff; }
.contact .btn-primary { background: var(--bg); color: var(--ink); }
.contact .btn-primary:hover { background: var(--accent); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-soft);
}
.brand--footer .brand-word { font-size: 1.25rem; }
.footer-loc { color: var(--ink-soft); margin-top: 1.1rem; font-size: 0.98rem; }
.footer-mail { display: inline-block; margin-top: 0.4rem; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .3s var(--ease), border-color .3s var(--ease); }
.footer-mail:hover { color: var(--accent); border-color: var(--accent); }

.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-label {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.4rem;
}
.footer-col a { font-size: 0.95rem; color: var(--ink-soft); width: fit-content; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-col a[data-placeholder] { color: var(--ink-faint); }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding-top: 1.75rem;
  font-size: 0.82rem; color: var(--ink-faint);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .build-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .team-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .header-inner { height: 66px; }
  .brand-word { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1; }
  .team-card { grid-template-columns: 1fr; }
  .team-photo { max-width: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}
