@import url("/fonts.css");

/* Gnomon Partners /cases page, v1.1. Tokens copied from the live homepage. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-950: #070d18;
  --navy-900: #0c1526;
  --navy-800: #131e35;
  --navy-700: #1c2d4a;
  --gold-600: #8a6d38;
  --gold-500: #a68444;
  --gold-400: #c4a05a;
  --gold-300: #d4bc82;
  --slate-700: #3d4a5c;
  --slate-600: #526075;
  --slate-500: #6b7a8f;
  --cream: #f8f7f4;
  --cream-dark: #efede8;
  --white: #ffffff;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius-md: 14px;
  --shadow-md: 0 12px 40px rgba(7, 13, 24, 0.1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; background: var(--navy-950); }
body {
  background: var(--white);
  color: var(--slate-600);
  font-family: var(--font-body);
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; height: auto; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }

.section-container { margin: 0 auto; max-width: 1160px; padding: 0 clamp(20px, 4vw, 56px); }
.section-label {
  color: var(--gold-600);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* ---- header / nav (same look as the homepage navbar, solid) ---- */
header.site {
  align-items: center;
  background: var(--navy-900);
  display: flex;
  height: 76px;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  position: relative;
  z-index: 10;
}
.header-logo img { height: 52px; width: auto; }
.nav-links { align-items: center; display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  position: relative;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a::after {
  background: var(--gold-400);
  bottom: -4px; content: ""; height: 1px; left: 0; position: absolute; width: 0;
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links .nav-cta {
  background: var(--gold-500);
  border-radius: 100px;
  color: #fff;
  letter-spacing: 0.08em;
  padding: 10px 22px;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--gold-600); }

.hamburger { background: none; border: none; cursor: pointer; display: none; flex-direction: column; gap: 6px; padding: 8px; }
.hamburger span { background: #fff; display: block; height: 1.5px; width: 22px; }
#mobile-menu {
  align-items: center; background: var(--navy-900); display: none; flex-direction: column;
  gap: 32px; inset: 0; justify-content: center; position: fixed; z-index: 999;
}
#mobile-menu.open { display: flex; }
#mobile-menu a { color: #fff; font-size: 1.1rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
#mobile-menu a[aria-current="page"] { border-bottom: 1px solid var(--gold-400); padding-bottom: 4px; }
#mobile-menu .close-btn {
  align-items: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%; color: #fff; cursor: pointer; display: flex; font-size: 1.5rem; height: 44px;
  justify-content: center; line-height: 1; position: absolute; right: 24px; top: 24px; width: 44px;
}

/* ---- summary ---- */
#overview {
  background: var(--navy-900);
  padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
  position: relative;
}
#overview::before {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(166, 132, 68, 0.12) 0%, transparent 60%);
  content: ""; inset: 0; pointer-events: none; position: absolute;
}
#overview .section-container { position: relative; }
#overview .section-label { color: var(--gold-400); }
#overview h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  max-width: 860px;
}
#overview .lead { color: rgba(255,255,255,0.78); font-size: 1.12rem; line-height: 1.7; margin-top: 24px; max-width: 680px; }
#overview .intro { color: rgba(255,255,255,0.62); font-size: 1rem; line-height: 1.7; margin-top: 14px; max-width: 680px; }
#overview .overview-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 32px; }
#overview .overview-links a {
  border-bottom: 1px solid rgba(212,188,130,0.6);
  color: var(--gold-300);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
}
#overview .overview-links a:hover { color: #fff; }

/* ---- grid ---- */
#situations { background: var(--cream); padding: clamp(64px, 8vw, 104px) 0; }
.practice { margin-top: 48px; }
.practice:first-child { margin-top: 0; }
.practice-label {
  align-items: center;
  color: var(--navy-800);
  display: flex;
  font-size: 0.74rem;
  font-weight: 700;
  gap: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.practice-label::after { background: rgba(19,30,53,0.14); content: ""; flex: 1; height: 1px; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid rgba(19, 30, 53, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  position: relative;
  transition: box-shadow 0.35s, transform 0.35s var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 {
  color: var(--navy-800);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
}
.card .problem { color: var(--navy-800); font-size: 0.94rem; font-weight: 500; line-height: 1.65; margin-top: 14px; }
.card .solution { color: var(--slate-600); font-size: 0.94rem; line-height: 1.7; margin-top: 10px; flex: 1; }
.cta-link {
  align-self: flex-start;
  border-bottom: 1px solid currentColor;
  color: var(--navy-800);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 600;
  gap: 6px;
  letter-spacing: 0.03em;
  margin-top: 22px;
  padding-bottom: 2px;
  transition: gap 0.25s;
}
.cta-link:hover { gap: 10px; }
.cta-link.case { border-bottom-width: 2px; }

.banner {
  background: var(--navy-800);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.78);
  display: grid;
  gap: 8px 48px;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  padding: 36px 40px;
}
.banner h3 { color: #fff; font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; line-height: 1.15; }
.banner .problem { color: #fff; font-size: 0.98rem; font-weight: 500; line-height: 1.65; }
.banner .solution { font-size: 0.98rem; line-height: 1.7; margin-top: 10px; }
.banner .cta-link { color: var(--gold-300); }
.banner .cta-link:hover { color: #fff; }
.practice.across .practice-label { color: var(--navy-800); }

/* ---- full stories ---- */
#stories { background: var(--white); padding: clamp(64px, 8vw, 104px) 0; }
#stories > .section-container > h2 {
  color: var(--navy-800);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 8px;
}
.story {
  border-top: 1px solid rgba(19,30,53,0.1);
  display: grid;
  gap: 16px 56px;
  grid-template-columns: 300px 1fr;
  padding: 48px 0;
  scroll-margin-top: 24px;
}
.story:first-of-type { margin-top: 32px; }
.story-meta .practice-tag {
  color: var(--gold-600);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.story-meta h3 {
  color: var(--navy-800);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.18;
  margin-top: 12px;
}
.story-meta .attribution { color: var(--slate-600); font-size: 0.86rem; font-style: italic; line-height: 1.55; margin-top: 12px; }
.story-meta .attribution.own { color: var(--navy-800); font-style: normal; font-weight: 600; }
.story-body p { color: var(--slate-600); font-size: 1.02rem; line-height: 1.8; margin-bottom: 16px; max-width: 700px; }
.story-body p:first-child { color: var(--slate-700); }
.back-link { border-bottom: 1px solid currentColor; color: var(--navy-800); display: inline-block; font-size: 0.82rem; font-weight: 600; margin-top: 4px; }
.story:target .story-meta h3 { text-decoration: underline; text-decoration-color: var(--gold-400); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---- close ---- */
#close { background: var(--navy-900); padding: clamp(72px, 9vw, 112px) 0; text-align: center; }
#close h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 auto;
  max-width: 760px;
}
#close .names { color: rgba(255,255,255,0.7); font-size: 1rem; margin-top: 16px; }
#close .actions { align-items: center; display: flex; flex-direction: column; gap: 22px; margin-top: 36px; }
.btn-primary {
  background: var(--gold-500);
  border-radius: 100px;
  color: #fff;
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 16px 34px;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.25s;
}
.btn-primary:hover { background: var(--gold-600); transform: translateY(-2px); }
.download-link { border-bottom: 1px solid rgba(212,188,130,0.6); color: var(--gold-300); font-size: 0.92rem; font-weight: 600; padding-bottom: 2px; }
.download-link:hover { color: #fff; }
.download-note { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-top: -12px; }

/* ---- footer (same as /privacy) ---- */
footer { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,0.06); padding: 48px 24px; text-align: center; }
footer img { height: 120px; margin: 0 auto 32px; max-width: min(560px, 92vw); object-fit: contain; opacity: 0.95; width: auto; }
.footer-copy, .footer-legal { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-legal { font-size: 0.72rem; line-height: 1.6; margin: 8px auto 0; max-width: 720px; }
.footer-privacy { color: var(--gold-400); margin-left: 8px; }
.footer-link { color: var(--gold-400); display: inline-block; font-size: 0.8rem; font-weight: 500; margin-top: 8px; }
.footer-privacy:hover, .footer-link:hover { opacity: 0.75; }

/* ---- from our own work (v1.1) ---- */
#own-work { background: var(--navy-900); padding: clamp(64px, 8vw, 104px) 0; }
#own-work .section-label { color: var(--gold-400); }
#own-work h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
}
#own-work .own-intro { color: rgba(255,255,255,0.68); font-size: 1rem; line-height: 1.7; margin-top: 12px; }
.own-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
.own-case {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 30px 30px 28px;
  scroll-margin-top: 24px;
}
.own-case .practice-tag { color: var(--gold-300); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.own-case h3 { color: #fff; font-family: var(--font-display); font-size: 1.55rem; font-weight: 400; line-height: 1.2; margin-top: 12px; }
.own-case .attribution { color: var(--gold-300); font-size: 0.84rem; font-weight: 600; margin-top: 10px; }
.own-case .own-text { color: rgba(255,255,255,0.8); font-size: 0.98rem; line-height: 1.8; margin-top: 16px; }
.own-case:target { border-color: var(--gold-400); }
@media (max-width: 768px) {
  .own-grid { grid-template-columns: 1fr; }
  .own-case { padding: 26px 22px 24px; }
}

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .header-logo img { height: 42px; }
  .grid { grid-template-columns: 1fr; }
  .banner { grid-template-columns: 1fr; padding: 28px 24px; }
  .card { padding: 26px 22px 22px; }
  .story { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .cta-link, .btn-primary { transition: none; }
}
