/* ============================================================
   Burhan Doğuş Ayparlar — AI Ethics & Compliance
   Aesthetic: warm, editorial, classic. Ivory paper, ink text,
   one restrained deep-petrol accent. Fraunces + Hanken Grotesk.
   ============================================================ */

:root {
  --bg:         #F7F3EB;   /* warm ivory paper          */
  --bg-2:       #FBF8F2;   /* lighter section wash      */
  --surface:    #FFFFFF;   /* cards                     */
  --ink:        #211E18;   /* primary text (high contrast) */
  --ink-soft:   #46413A;   /* secondary text            */
  --muted:      #6E685D;   /* meta / captions           */
  --faint:      #8A8479;
  --line:       #E5DDCF;   /* warm hairline             */
  --line-soft:  #EEE7DA;
  --accent:     #1F3D4F;   /* deep petrol / slate navy  */
  --accent-deep:#16303E;
  --accent-ink: #FBF8F2;   /* text on accent            */
  --gold:       #9A7B4C;   /* sparing warm detail       */
  --radius:     8px;
  --radius-sm:  5px;
  --wrap:       1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow:    0 18px 40px -28px rgba(33,30,24,0.30);
  --shadow-sm: 0 8px 22px -16px rgba(33,30,24,0.28);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.72;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.012em; color: var(--accent-deep); }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: 84px 0; }
.section-title { font-size: clamp(28px, 3.4vw, 40px); margin-top: 10px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius-sm); }

/* Eyebrow — small classic label, not monospace */
.eyebrow, .eyebrow-light {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-light { color: rgba(251,248,242,0.72); }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,243,235,0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { color: var(--accent); display: grid; place-items: center; }
.brand-logo { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--accent-deep); letter-spacing: -0.01em; }
.brand-tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.primary-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.primary-nav a { font-size: 15.5px; color: var(--ink-soft); font-weight: 500; position: relative; padding: 6px 0; }
.primary-nav a:hover { color: var(--accent-deep); }
.primary-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--gold); transition: width .25s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { width: 100%; }
.primary-nav a[aria-current="page"] { color: var(--accent-deep); }

.lang-switch { display: flex; align-items: center; gap: 4px; padding-left: 22px; border-left: 1px solid var(--line); }
.lang-opt { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding: 4px 6px; border-radius: var(--radius-sm); }
.lang-opt:hover { color: var(--accent-deep); }
.lang-opt.is-active, .lang-opt[aria-current="true"] { color: var(--accent-deep); }
.header-cta { margin-left: 6px; }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); position: relative; margin-left: auto; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 11px; width: 20px; height: 1.6px; background: var(--ink); transition: .25s; }
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 13px 24px; border-radius: var(--radius); border: 1px solid transparent;
  transition: .18s ease; line-height: 1;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); color: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent-deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--bg-2); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }
.link-arrow, .read-more { font-weight: 600; color: var(--accent); display: inline-flex; gap: 7px; align-items: center; }
.link-arrow:hover, .read-more:hover { gap: 11px; color: var(--accent-deep); }

/* ----------------------------- Hero ----------------------------- */
.hero { position: relative; padding: 104px 0 76px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.14; }
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero-title { font-size: clamp(38px, 6vw, 68px); font-weight: 500; max-width: 16ch; }
.hero-sub { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); margin-top: 24px; max-width: 60ch; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ----------------------- Frameworks strip ----------------------- */
.frameworks { padding: 30px 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.frameworks .wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.fw-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.fw-list { display: flex; flex-wrap: wrap; gap: 14px 30px; list-style: none; }
.fw-list li { font-family: var(--serif); font-size: 17px; color: var(--ink-soft); font-style: italic; }

/* ----------------------------- Intro ----------------------------- */
.intro-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.intro-body { font-size: 19px; color: var(--ink-soft); line-height: 1.75; }

/* ----------------------------- Services ----------------------------- */
.services { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: .2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.service-num { font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--gold); margin-bottom: 16px; }
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 16px; line-height: 1.62; }

/* ----------------------------- Process ----------------------------- */
.process-list { display: grid; gap: 0; margin-top: 44px; max-width: 860px; }
.process-step { display: grid; grid-template-columns: 64px 1fr; gap: 26px; padding: 28px 0; border-top: 1px solid var(--line); align-items: baseline; }
.process-step:last-child { border-bottom: 1px solid var(--line); }
.step-index { font-family: var(--serif); font-size: 30px; color: var(--gold); line-height: 1; }
.process-step h3 { font-size: 22px; margin-bottom: 8px; }
.process-step p { color: var(--ink-soft); font-size: 16.5px; }

/* ----------------------------- Pilot band ----------------------------- */
.pilot { padding: 0; }
.pilot-band {
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius); padding: 56px 48px; text-align: center;
  box-shadow: var(--shadow);
}
.pilot-band h2 { color: var(--accent-ink); font-size: clamp(26px, 3vw, 36px); }
.pilot-sub { color: rgba(251,248,242,0.82); max-width: 56ch; margin: 16px auto 30px; font-size: 18px; }
.pilot-band .btn-primary { background: var(--bg); color: var(--accent-deep); border-color: var(--bg); }
.pilot-band .btn-primary:hover { background: #fff; color: var(--accent-deep); }

/* ----------------------------- Latest / posts ----------------------------- */
.latest-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-grid-wide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s ease; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-cover { aspect-ratio: 16 / 9; background: var(--accent-deep); background-size: cover; background-position: center; }
.post-cover[data-empty="1"] { background:
  linear-gradient(135deg, var(--accent-deep), var(--accent)); }
.post-card-body { padding: 26px 26px 30px; }
.post-meta { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 12px; }
.post-card-body h3 { font-size: 22px; margin-bottom: 10px; line-height: 1.25; }
.post-card-body p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.insights-list { margin-top: 12px; }
.empty-note { color: var(--muted); font-style: italic; padding: 40px 0; }

/* ----------------------------- Page hero ----------------------------- */
.page-hero { padding: 78px 0 48px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-title { font-size: clamp(34px, 5vw, 54px); margin-top: 14px; }
.page-lead { font-size: 20px; color: var(--ink-soft); margin-top: 18px; max-width: 64ch; line-height: 1.65; }

/* ----------------------------- About ----------------------------- */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.portrait-frame {
  position: sticky; top: 100px; aspect-ratio: 4 / 5; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface) center/cover no-repeat;
  display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-sm);
}
.portrait-mono { font-family: var(--serif); font-size: 46px; font-style: italic; letter-spacing: 0.06em; color: var(--gold); }
.fact-list { margin-top: 22px; display: grid; gap: 0; }
.fact-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.fact-k { font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.fact-v { font-size: 15px; color: var(--ink); font-weight: 500; text-align: right; }
.principles { margin-top: 64px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.principle { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.principle h3 { font-size: 19px; margin-bottom: 8px; }
.principle p { color: var(--ink-soft); font-size: 15.5px; }

/* ----------------------------- Prose / article ----------------------------- */
.prose { font-size: 18.5px; color: var(--ink-soft); line-height: 1.8; max-width: 70ch; }
.prose p { margin-bottom: 22px; }
.prose h2 { font-size: 28px; color: var(--accent-deep); margin: 40px 0 14px; }
.prose h3 { font-size: 22px; margin: 30px 0 10px; }
.prose ul, .prose ol { margin: 0 0 22px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 22px; margin: 26px 0; font-style: italic; color: var(--ink); }

.article-head { padding: 70px 0 36px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.article-head-inner { max-width: 70ch; }
.article-meta { font-size: 13.5px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 16px; }
.article-title { font-size: clamp(30px, 4.4vw, 48px); }
.article-lead { font-size: 20px; color: var(--ink-soft); margin-top: 18px; line-height: 1.6; }
.article-cover { margin: 36px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article-body { padding: 48px 0; }
.article-foot { padding: 36px 0 0; border-top: 1px solid var(--line); }

.cta-strip { margin: 0 0 0; }
.cta-inner { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; text-align: center; }
.cta-inner h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 22px; }

/* ----------------------------- Contact ----------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { margin-top: 8px; display: grid; gap: 0; }
.contact-list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.cl-k { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 5px; }
.contact-sub { color: var(--ink-soft); margin-bottom: 26px; }

.contact-form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,61,79,0.12); }
.form-success { background: #EAF1EC; border: 1px solid #BFD6C6; color: #2C5840; padding: 14px 16px; border-radius: var(--radius-sm); }
.form-error { background: #F6E7E4; border: 1px solid #E2BCB4; color: #94402F; padding: 14px 16px; border-radius: var(--radius-sm); }
.contact-note { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.map-section { padding-bottom: 84px; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { display: block; width: 100%; min-height: 420px; border: 0; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--accent-deep); color: rgba(251,248,242,0.78); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name { color: var(--accent-ink); }
.footer-brand p { margin-top: 14px; max-width: 40ch; font-size: 15px; color: rgba(251,248,242,0.62); }
.footer-col h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251,248,242,0.5); margin-bottom: 16px; font-weight: 600; font-family: var(--sans); }
.footer-col a, .footer-col p { display: block; color: rgba(251,248,242,0.8); font-size: 15px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(251,248,242,0.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(251,248,242,0.5); }

/* ----------------------------- Motion ----------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 980px) {
  .intro-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-grid, .principle-grid, .post-grid { grid-template-columns: 1fr 1fr; }
  .portrait-frame { position: static; max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .section { padding: 60px 0; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; margin: 0; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .primary-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .primary-nav li { width: 100%; }
  .primary-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .lang-switch { border-left: none; padding-left: 0; margin-top: 8px; }
  .header-cta { display: none; }
  .service-grid, .principle-grid, .post-grid, .post-grid-wide, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .pilot-band, .cta-inner { padding: 40px 26px; }
  .process-step { grid-template-columns: 48px 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
