/* DEMIROREN INVESTMENTS — styles.css
   Design system: navy/warm cream, EB Garamond serif, DM Sans
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1A2332;
  --navy-90: rgba(26,35,50,0.9);
  --navy-d:  #111827;
  --mid:     #2E3F56;
  --warm:    #F5F2ED;
  --cream:   #EDE9E1;
  --text:    #2B2B2B;
  --muted:   #6B7280;
  --stone:   #9CA3AF;
  --rule:    #C8BFB0;
  --red:     #C41E3A;
  --red-hover: #a01629;
  --serif: 'EB Garamond', Georgia, serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', 'Courier New', monospace;
  --t: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--warm);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px; height: 72px;
  background: var(--warm);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--t);
}
#main-nav.scrolled { box-shadow: 0 1px 20px rgba(26,35,50,0.07); }

.nav-brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; cursor: pointer; }
.nav-brand:hover { opacity: 0.75; }
.nav-name { font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: 0.04em; color: var(--navy); text-decoration: none; }
.nav-firm { font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; cursor: pointer; transition: color var(--t); position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--red); transition: width var(--t); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--navy); font-weight: 500; }
.nav-links a.active::after { width: 100%; }

.nav-cta { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warm); background: var(--navy); padding: 10px 22px; text-decoration: none; transition: background var(--t); }
.nav-cta:hover { background: var(--mid); }

/* ── HERO ── */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 100vh; background: var(--navy); overflow: hidden; padding-top: 72px; }
.hero-bg { position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(to bottom, rgba(26,35,50,0) 60%, rgba(26,35,50,0.6) 100%), repeating-linear-gradient(0deg, rgba(245,242,237,0.025) 0px, rgba(245,242,237,0.025) 1px, transparent 1px, transparent 72px), repeating-linear-gradient(90deg, rgba(245,242,237,0.025) 1px, transparent 1px); background-size: 100% 100%, 100% 72px, 72px 72px; }
.hero-accent { position: absolute; top: 0; bottom: 0; left: 52px; width: 1px; z-index: 2; background: linear-gradient(to bottom, transparent 10%, var(--red) 35%, var(--red) 65%, transparent 90%); opacity: 0.3; }
.hero-content { position: relative; z-index: 3; padding: 0 52px 80px 96px; max-width: 1300px; width: 100%; }

.hero-firm-tag { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 44px; opacity: 0; animation: fade 0.7s ease 0.05s forwards; }
.hero-firm-tag::before { content: ''; display: block; width: 28px; height: 1px; background: var(--red); opacity: 0.7; }
.hero-firm-tag span { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245,242,237,0.38); }

.hero-name { font-family: var(--serif); font-weight: 400; font-size: clamp(54px,9.5vw,122px); line-height: 0.92; letter-spacing: -0.03em; color: var(--warm); margin-bottom: 12px; }
.hero-name .first  { display: block; opacity: 0; transform: translateY(12px); animation: up 0.9s ease 0.1s forwards; }
.hero-name .middle { display: block; color: rgba(245,242,237,0.3); font-style: italic; margin-left: clamp(24px,4vw,60px); opacity: 0; transform: translateY(12px); animation: up 0.9s ease 0.25s forwards; }
.hero-name .last   { display: block; margin-left: clamp(48px,8vw,120px); opacity: 0; transform: translateY(12px); animation: up 0.9s ease 0.4s forwards; }

.hero-role { font-size: clamp(12px,1.4vw,15px); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,242,237,0.38); margin-top: 28px; margin-bottom: 56px; margin-left: 3px; opacity: 0; animation: fade 0.7s ease 0.55s forwards; }

.hero-bar { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; border-top: 1px solid rgba(245,242,237,0.1); padding-top: 36px; max-width: 920px; opacity: 0; animation: fade 0.8s ease 0.75s forwards; }
.hero-bar p { font-family: var(--serif); font-size: clamp(17px,1.8vw,21px); line-height: 1.7; color: rgba(245,242,237,0.55); font-style: italic; }
.hero-bar-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }

.btn-outline { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding: 11px 24px; border: 1px solid rgba(245,242,237,0.3); color: rgba(245,242,237,0.7); text-decoration: none; transition: border-color var(--t), color var(--t), background var(--t); }
.btn-outline:hover { border-color: rgba(245,242,237,0.7); color: var(--warm); background: rgba(245,242,237,0.05); }

.btn-warm { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding: 13px 28px; background: var(--navy); color: var(--warm); text-decoration: none; transition: background var(--t); }
.btn-warm:hover { background: var(--mid); }

.scroll-cue { position: absolute; bottom: 36px; left: 52px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; animation: fade 1s ease 1.2s forwards; }
.scroll-cue-line { width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, rgba(245,242,237,0.3)); }
.scroll-cue span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,242,237,0.25); writing-mode: vertical-rl; }

/* ── ANIMATIONS ── */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up   { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── BIO SECTION ── */
.bio-section { background: var(--warm); padding: 100px 52px; }
.bio-inner { display: grid; grid-template-columns: 340px 1fr; gap: 80px; max-width: 1200px; margin: 0 auto; align-items: start; }
.bio-label { display: block; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; }
.bio-left h2 { font-family: var(--serif); font-size: clamp(36px,4vw,52px); font-weight: 400; color: var(--navy); line-height: 1.1; letter-spacing: -0.02em; }
.bio-left h2 em { color: var(--mid); font-style: italic; }
.bio-left-rule { width: 28px; height: 2px; background: var(--red); margin-top: 32px; opacity: 0.6; }
.bio-right p { font-size: 17px; line-height: 1.85; color: var(--text); margin-bottom: 20px; }
.bio-right p:last-child { margin-bottom: 0; }
.bio-right strong { font-weight: 500; color: var(--navy); }

/* ── APPROACH SECTION ── */
.approach-section { background: var(--navy); padding: 100px 52px; }
.approach-inner { max-width: 1200px; margin: 0 auto; }
.approach-header { display: flex; align-items: baseline; gap: 24px; margin-bottom: 64px; }
.approach-header h2 { font-family: var(--serif); font-size: clamp(36px,4vw,52px); font-weight: 400; color: var(--warm); line-height: 1.1; letter-spacing: -0.02em; }
.approach-header h2 em { font-style: italic; color: rgba(245,242,237,0.5); }
.approach-tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,242,237,0.3); margin-left: auto; flex-shrink: 0; }
.approach-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(245,242,237,0.06); }
.approach-item { padding: 40px 36px; background: var(--navy); border: 1px solid rgba(245,242,237,0.06); transition: background var(--t); }
.approach-item:hover { background: rgba(255,255,255,0.03); }
.approach-num { display: block; font-size: 11px; letter-spacing: 0.18em; color: var(--red); margin-bottom: 20px; }
.approach-item h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--warm); line-height: 1.2; margin-bottom: 14px; }
.approach-item p { font-size: 14px; line-height: 1.8; color: rgba(245,242,237,0.45); }

/* ── WRITING TEASER ── */
.writing-teaser { background: var(--cream); padding: 100px 52px; }
.writing-teaser-inner { max-width: 1200px; margin: 0 auto; }
.section-row { display: flex; align-items: baseline; gap: 24px; margin-bottom: 52px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.section-row h2 { font-family: var(--serif); font-size: clamp(28px,3vw,40px); font-weight: 400; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; }
.section-row h2 em { font-style: italic; color: var(--mid); }
.section-row-right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.section-label-tag { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.see-all-btn { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); text-decoration: none; font-weight: 500; transition: color var(--t); }
.see-all-btn:hover { color: var(--red); }
.writing-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--rule); }
.writing-card { display: block; padding: 40px 36px; background: var(--cream); text-decoration: none; transition: background var(--t), padding-left var(--t); }
.writing-card:hover { background: var(--warm); padding-left: 48px; }
.card-type { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.card-title { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--navy); line-height: 1.3; margin-bottom: 12px; }
.card-excerpt { font-size: 14px; line-height: 1.75; color: var(--stone); margin-bottom: 24px; }
.card-arrow { font-size: 12px; letter-spacing: 0.1em; color: var(--navy); font-weight: 500; transition: color var(--t); }
.writing-card:hover .card-arrow { color: var(--red); }

/* ── CONTACT ── */
.contact-section { background: var(--warm); padding: 100px 52px; border-top: 1px solid var(--rule); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; max-width: 1200px; margin: 0 auto; align-items: center; }
.contact-left h2 { font-family: var(--serif); font-size: clamp(32px,3.5vw,48px); font-weight: 400; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px; }
.contact-left h2 em { font-style: italic; color: var(--mid); }
.contact-left p { font-size: 15px; color: var(--muted); }
.contact-right { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact-email { font-family: var(--serif); font-size: 22px; color: var(--navy); text-decoration: none; letter-spacing: -0.01em; transition: color var(--t); }
.contact-email:hover { color: var(--red); }

/* ── FOOTER ── */
.site-footer { background: var(--navy-d); padding: 48px 52px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-family: var(--serif); font-size: 15px; font-weight: 500; color: rgba(245,242,237,0.8); letter-spacing: 0.04em; }
.footer-firm { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,242,237,0.3); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,242,237,0.35); text-decoration: none; transition: color var(--t); }
.footer-links a:hover { color: rgba(245,242,237,0.7); }
.footer-copy { font-size: 12px; color: rgba(245,242,237,0.25); letter-spacing: 0.06em; }

/* ── PAGE HERO (about / writing / article pages) ── */
.page-hero { padding: 140px 52px 80px; background: var(--navy); color: var(--warm); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(36px,5vw,64px); font-weight: 400; color: var(--warm); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.page-hero p { font-size: 18px; color: rgba(245,242,237,0.55); max-width: 600px; }

/* ── ARTICLE HERO & BODY ── */
.article-hero { padding: 140px 52px 80px; background: var(--navy); color: var(--warm); }
.article-hero h1 { font-family: var(--serif); font-size: clamp(36px,5vw,52px); font-weight: 400; color: var(--warm); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 24px; max-width: 800px; }
.article-hero .meta { font-size: 13px; color: rgba(245,242,237,0.45); letter-spacing: 0.1em; text-transform: uppercase; }
.article-body { max-width: 800px; margin: 0 auto; padding: 72px 52px; }
.article-body h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--navy); margin: 56px 0 16px; letter-spacing: -0.01em; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 17px; line-height: 1.85; color: var(--text); margin-bottom: 20px; }
.article-body em { font-style: italic; color: var(--mid); }
.article-body strong { font-weight: 500; color: var(--navy); }
.article-body blockquote { border-left: 2px solid var(--red); padding: 12px 28px; margin: 36px 0; background: rgba(196,30,58,0.03); }
.article-body blockquote p { font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--navy); line-height: 1.6; }

/* ── WRITING INDEX PAGE ── */
.writing-index { max-width: 900px; margin: 0 auto; padding: 72px 52px; }
.writing-index .writing-card { padding: 36px 0; border-bottom: 1px solid var(--rule); background: transparent; }
.writing-index .writing-card:hover { padding-left: 16px; background: transparent; }
.writing-index .writing-card:last-child { border-bottom: none; }

/* ── CARD GRID ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 24px; margin-top: 40px; }
.card { background: white; border: 1px solid var(--rule); padding: 32px; transition: box-shadow var(--t), transform var(--t); }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--navy); margin: 0 0 12px; }
.card p { font-size: 14px; line-height: 1.8; color: var(--text); }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 52px; }
section { padding: 80px 52px; }
section h2 { font-family: var(--serif); font-size: clamp(28px,3vw,42px); font-weight: 400; color: var(--navy); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 24px; }
section h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--navy); margin-bottom: 16px; margin-top: 32px; }
section p { margin-bottom: 16px; color: var(--text); }
a.btn, button.btn { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding: 12px 28px; background: var(--navy); color: var(--warm); border: none; cursor: pointer; text-decoration: none; transition: background var(--t), box-shadow var(--t); }
a.btn:hover, button.btn:hover { background: var(--mid); box-shadow: 0 4px 12px rgba(26,35,50,0.15); }
a.btn-red, button.btn-red { background: var(--red); }
a.btn-red:hover, button.btn-red:hover { background: var(--red-hover); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .approach-grid { grid-template-columns: repeat(2,1fr); }
  .writing-cards { grid-template-columns: repeat(2,1fr); }
  .writing-cards .writing-card:last-child { grid-column: span 2; }
  .bio-inner { grid-template-columns: 280px 1fr; gap: 60px; }
  .contact-inner { grid-template-columns: 1fr 1fr; gap: 60px; }
}

@media (max-width: 768px) {
  #main-nav { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 12px; }
  .nav-cta { display: none; }
  .hero-content { padding: 0 24px 72px 40px; }
  .hero-accent { left: 24px; }
  .scroll-cue { left: 24px; }
  .bio-section, .approach-section, .writing-teaser, .contact-section { padding: 72px 24px; }
  .bio-inner { grid-template-columns: 1fr; gap: 48px; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .writing-cards { grid-template-columns: 1fr; background: none; gap: 1px; }
  .writing-cards .writing-card:last-child { grid-column: span 1; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-bar { grid-template-columns: 1fr; gap: 32px; }
  .hero-bar-cta { align-items: flex-start; flex-direction: row; }
  .page-hero, .article-hero { padding: 120px 24px 60px; }
  .article-body, .writing-index { padding: 48px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer { padding: 40px 24px; }
}

@media (max-width: 480px) {
  #main-nav { height: 64px; padding: 0 16px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.08em; }
  .hero-content { padding: 0 16px 60px 32px; }
  .approach-grid { grid-template-columns: 1fr; }
  section { padding: 48px 16px; }
  .bio-section, .approach-section, .writing-teaser, .contact-section { padding: 60px 16px; }
  .article-body, .writing-index { padding: 36px 16px; }
  .page-hero, .article-hero { padding: 100px 16px 48px; }
  .site-footer { padding: 32px 16px; }
  .writing-card { padding: 28px 20px; }
  .writing-card:hover { padding-left: 28px; }
  .approach-item { padding: 28px 24px; }
  .section-row { flex-wrap: wrap; gap: 16px; }
  .section-row-right { margin-left: 0; }
  .hero-bar-cta { flex-direction: column; gap: 12px; }
  .contact-email { font-size: 17px; }
}
