/* emreguder.com: product-site direction, white theme only (large type, centered heroes, light bands, tiles) */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --alt: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
  --button: #0071e3;
  --button-hover: #0077ed;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --nav-line: rgba(0, 0, 0, 0.08);
  --grad: linear-gradient(90deg, #0071e3 0%, #7a5af8 55%, #e0457b 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--button);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--bg);
  padding: 0.5rem 0.75rem;
}

.container {
  max-width: 61.25rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 46rem) {
  .container {
    padding-left: 1.375rem;
    padding-right: 1.375rem;
  }
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
  font-size: 0.8125rem;
}

.nav-name {
  color: var(--text);
  font-weight: 600;
  margin-right: auto;
  white-space: nowrap;
}

.nav nav {
  display: flex;
  gap: 0.875rem;
  white-space: nowrap;
}

@media (max-width: 46rem) {
  .nav-inner {
    font-size: 0.75rem;
    gap: 0.875rem;
  }
}

@media (min-width: 46rem) {
  .nav nav {
    gap: 1.5rem;
  }
}

.nav nav a {
  color: var(--text);
  opacity: 0.8;
}

.nav nav a:hover,
.nav nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: none;
}

.nav nav a[aria-current="page"] {
  font-weight: 600;
}

/* Hero */

.hero {
  text-align: center;
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
}

.eyebrow {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 8.5vw, 5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin: 0 auto;
}

.hero .sub {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.35;
  color: var(--muted);
  max-width: 34rem;
  margin: 1.25rem auto 0;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  background: var(--button);
  color: #ffffff;
  border-radius: 980px;
  padding: 0.7rem 1.4rem;
  font-size: 1.0625rem;
}

.button:hover {
  background: var(--button-hover);
  text-decoration: none;
}

.more::after {
  content: " \203A";
}

.hero-visual {
  display: block;
  width: 100%;
  max-width: 44rem;
  height: auto;
  margin: 3.5rem auto 0;
}

/* Scroll story. Default (no JS, reduced motion, weak device): plain flow, text first,
   static visual after. With .want-3d (set in <head> before first paint): sticky 3D stage
   with full-height text steps scrolling over it. */

.story {
  display: flex;
  flex-direction: column-reverse;
}

.stage {
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 3rem;
}

.step {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.step.hero {
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.want-3d .story {
  display: grid;
}

.want-3d .story > .stage-wrap,
.want-3d .story > .steps {
  grid-area: 1 / 1;
}

.want-3d .stage {
  position: sticky;
  top: 3rem;
  height: calc(100svh - 3rem);
  align-items: flex-end;
  overflow: hidden;
  padding: 0 0 2rem;
}

.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stage .hero-visual {
  width: 90%;
  margin: 0;
}

.has-3d .stage .hero-visual {
  display: none;
}

.steps {
  position: relative;
  z-index: 1;
}

.want-3d .step {
  min-height: calc(100svh - 3rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.want-3d .step.hero {
  justify-content: flex-start;
  padding-top: 4rem;
}

.step-card {
  max-width: 24rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--nav-line);
}

.step-card .num {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}

.step-card h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 0.25rem;
}

.step-card p:not(.num) {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0.6rem;
}

.step-card .more {
  display: inline-block;
  margin-top: 0.9rem;
}

@media (min-width: 56rem) {
  .want-3d .step {
    justify-content: center;
  }
}

/* Bands */

.band {
  padding: 5rem 0;
}

.band-alt {
  background: var(--alt);
}

.center {
  text-align: center;
}

.display {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.4;
  max-width: 38rem;
  margin: 1rem auto 0;
}

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

/* Tiles */

.tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem;
}

@media (min-width: 46rem) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile.wide {
    grid-column: 1 / -1;
    min-height: 20rem;
  }
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 26rem;
  padding: 3rem 1.5rem;
  border-radius: 1.75rem;
  background: var(--alt);
  overflow: hidden;
}

.tile h3 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tile p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 24rem;
  margin-top: 0.6rem;
}

.tile .more {
  margin-top: 1rem;
  font-size: 1.0625rem;
}

.glyph {
  width: 7.5rem;
  height: 7.5rem;
  margin-top: auto;
  padding-top: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--button);
}

/* Facts */

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
  margin-top: 3.5rem;
  text-align: center;
}

@media (min-width: 46rem) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fact strong {
  display: block;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.fact span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.fact span + span {
  margin-top: 0.25rem;
}

.phone {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 1.75rem;
}

.phone a {
  color: var(--text);
}

/* Service sections */

.service {
  padding: 5rem 0;
  text-align: center;
}

.service:nth-of-type(even) {
  background: var(--alt);
}

.service .glyph {
  margin: 0 auto 1.5rem;
  padding-top: 0;
  width: 5.5rem;
  height: 5.5rem;
}

.service .num {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.service h2 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 0.25rem;
}

.service p {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--muted);
  max-width: 34rem;
  margin: 1rem auto 0;
}

.service .pills {
  justify-content: center;
  margin-top: 1.5rem;
}

.service:nth-of-type(even) .pills li {
  background: var(--bg);
}

/* CV */

.cv-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.cv-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entries li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.entries li:first-child {
  border-top: 0;
  padding-top: 0;
}

.entries .when {
  font-size: 0.9375rem;
  color: var(--muted);
}

.entries h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.entries .role {
  color: var(--text);
  margin-top: 0.15rem;
}

.entries .note {
  color: var(--muted);
  margin-top: 0.4rem;
}

@media (min-width: 46rem) {
  .entries li {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 2rem;
  }

  .entries .when {
    padding-top: 0.3rem;
  }
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pills li {
  background: var(--alt);
  border-radius: 980px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

/* Blog post */

.post {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.post h1 {
  font-size: clamp(2.2rem, 6vw, 3.25rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.post-meta {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 1rem 0 2.5rem;
}

.prose {
  font-size: 1.1875rem;
  line-height: 1.6;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
}

.prose .lead {
  font-size: 1.4rem;
  line-height: 1.4;
}

.prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.75rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose blockquote {
  margin: 2rem 0;
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

.prose figure {
  margin: 2rem 0;
}

.prose figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.post-back {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Footer */

.footer {
  background: var(--alt);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.footer a {
  color: var(--muted);
}

/* Cookie consent banner (added by assets/consent.js) */

.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  font-size: 0.9375rem;
}

.consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.consent button,
.text-button {
  font: inherit;
  border-radius: 980px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}

.consent .consent-accept {
  background: var(--button);
  border-color: var(--button);
  color: #ffffff;
}

/* Legal text pages */

.legal {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 0 5rem;
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.25rem 0 0.5rem;
}

.legal p,
.legal ul {
  margin: 0 0 1rem;
}

.legal ul {
  padding-left: 1.25rem;
}

/* Scroll reveal: CSS only, skipped where unsupported or when motion is reduced */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(2.5rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
