/* ===========================================================================
   YEDİPERA — Reset, element defaults, accessibility, motion preferences
   =========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky masthead. */
  scroll-padding-top: var(--masthead-h);
}

body {
  margin: 0;
  background-color: var(--navy);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--text-strong);
  letter-spacing: var(--ls-title);
  line-height: var(--lh-title);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

address {
  font-style: normal;
}

time {
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--navy);
  color: var(--white);
}

/* --- Focus visibility ---------------------------------------------------- */

:focus-visible {
  outline: 1px solid var(--navy);
  outline-offset: 4px;
}

.section--dark :focus-visible,
.footer :focus-visible,
.hero :focus-visible,
.drawer :focus-visible {
  outline-color: rgba(255, 255, 255, 0.75);
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: var(--z-skip);
  padding: 0.875rem 1.5rem;
  background: var(--white);
  color: var(--navy);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-nav);
  transform: translate(-50%, -110%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: -4px;
}

/* --- Typography primitives ---------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 250;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display);
  text-wrap: balance;
}

.display--1 {
  font-size: var(--fs-display-1);
}

.display--2 {
  font-size: var(--fs-display-2);
}

.display--3 {
  font-size: var(--fs-display-3);
}

/* Second line of a two-part headline, held back so the first line leads. */
.display__soft {
  color: var(--text-muted);
}

.section--dark .display__soft,
.hero .display__soft {
  color: var(--text-on-dark-muted);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow--light {
  color: var(--text-on-dark-faint);
}

.lede {
  font-family: var(--font-display);
  font-size: var(--fs-lede);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--text-strong);
}

.section--dark .lede {
  color: var(--white);
}

/* --- Utilities ----------------------------------------------------------- */

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* --- Reveal-on-scroll ---------------------------------------------------
   Only armed when JS is present, so content is never trapped invisible.    */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.985);
  transition:
    opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal].is-inview {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* --- Reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
