/* ==========================================================================
   FBKAD — foundations: tokens, reset, typography, layout primitives
   ========================================================================== */

:root {
  /* Brand — sampled from LogoTaslaklar.pdf */
  --navy:        #24407A;   /* badge ring + wordmark navy */
  --yellow:      #F9E23D;   /* badge field yellow */
  --green:       #41B73B;   /* oak leaf green */
  --ink:         #070808;   /* silhouette black */

  /* Extended navy scale for depth */
  --navy-950:    #050B1A;
  --navy-900:    #0A1428;
  --navy-850:    #0E1B36;
  --navy-800:    #142549;
  --navy-700:    #1B3160;
  --navy-600:    #24407A;
  --navy-500:    #33559A;
  --navy-400:    #4A6FBD;

  --yellow-deep: #E3C81F;
  --yellow-soft: #FFF08A;
  --paper:       #F7F6F1;
  --paper-warm:  #EFEDE4;

  /* Text */
  --text:        rgba(255, 255, 255, 0.80);
  --text-strong: #FFFFFF;
  --text-dim:    rgba(255, 255, 255, 0.52);
  --text-faint:  rgba(255, 255, 255, 0.42);  /* 4.1:1 on navy-950 — decorative micro-labels only */
  --text-dark:   #16223D;
  --text-dark-2: rgba(22, 34, 61, 0.68);

  /* Lines */
  --line:        rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --line-dark:   rgba(22, 34, 61, 0.12);

  /* Type */
  --font-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --fs-display: clamp(2.6rem, 1.1rem + 6vw, 6rem);
  --fs-h1:      clamp(2.25rem, 1.1rem + 4.6vw, 4.75rem);
  --fs-h2:      clamp(1.85rem, 1.05rem + 3.2vw, 3.5rem);
  --fs-h3:      clamp(1.35rem, 1rem + 1.4vw, 1.95rem);
  --fs-lead:    clamp(1.05rem, 0.95rem + 0.55vw, 1.3rem);
  --fs-body:    clamp(0.98rem, 0.94rem + 0.2vw, 1.06rem);
  --fs-small:   0.875rem;
  --fs-micro:   0.75rem;

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(5rem, 10vw, 11rem);
  --maxw: 1320px;
  --maxw-text: 68ch;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;

  --radius: 18px;
  --radius-lg: 28px;
}

/* --------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Decorative orbs sit outside the viewport by design. `clip` contains them
     without making the root a scroll container, so sticky + fixed still work
     (`hidden` here would break .showcase__sticky). */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------- layout -- */

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

.wrap--narrow { max-width: 940px; }

.section { position: relative; padding-block: var(--section-y); }

.section--tight { padding-block: clamp(3.5rem, 7vw, 7rem); }

/* Light (paper) sections invert the text tokens */
.section--paper {
  background: var(--paper);
  --text: var(--text-dark-2);
  --text-strong: var(--text-dark);
  --text-dim: rgba(22, 34, 61, 0.55);
  --text-faint: rgba(22, 34, 61, 0.32);
  --line: var(--line-dark);
  --line-strong: rgba(22, 34, 61, 0.2);
  color: var(--text);
}

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------- type helpers -- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.4rem;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section--paper .eyebrow { color: var(--navy-600); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--text);
  max-width: var(--maxw-text);
}

.muted { color: var(--text-dim); }

.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--text-strong);
  margin: 0;
}

.accent { color: var(--yellow); }
.accent-green { color: var(--green); }

.italic-swash {
  font-style: italic;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  color: var(--yellow);
}

/* Bottom-hairline heading block */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.section-head > div { max-width: 62ch; }

/* ------------------------------------------------------------ a11y -- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  padding: 0.85rem 1.4rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  transition: top 0.25s var(--ease-out);
}

.skip-link:focus { top: 0; }

/* --------------------------------------------- page transitions -- */

/* Cross-document transitions: navigating between pages cross-fades instead of
   flashing to a blank navy page. Browsers without support simply keep the
   hard cut, so there is nothing to polyfill. */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.38s;
  animation-timing-function: var(--ease-out);
}

/* The badge is the one element common to every page, so let it persist
   across the navigation rather than cross-fade with everything else.
   Scoped to the header: a view-transition-name must be unique per document
   and the footer carries the same mark. */
.header .brand__mark { view-transition-name: brand-mark; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .header .brand__mark { view-transition-name: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
