:root {
  --ink: #111a2c;
  --muted: #5f6672;
  --paper: #f8f7f3;
  --white: #ffffff;
  --blue: #1f5eff;
  --line: #dcdedc;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.container { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(96px, 10vw, 140px); }
.eyebrow {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(17, 26, 44, .08);
  background: rgba(248, 247, 243, .94);
  backdrop-filter: blur(14px);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav a, .site-footer a { position: relative; font-size: 14px; font-weight: 500; }
.primary-nav a::after, .site-footer a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after,
.site-footer a:hover::after, .site-footer a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }

.hero { padding: clamp(100px, 11vw, 166px) 0 0; }
.hero-kicker { margin-bottom: 30px; }
.hero h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(3.5rem, 6.2vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .99;
  text-wrap: balance;
}
.hero h1 span { display: block; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; margin-top: 52px; }
.hero-copy { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 21px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--blue); }
.button-secondary { border-color: #cfd1d2; background: transparent; }
.button-secondary:hover { border-color: var(--ink); }
.hero-services { display: flex; gap: 0; margin-top: clamp(90px, 11vw, 138px); border-block: 1px solid var(--line); }
.hero-services span { flex: 1; padding: 19px 24px; border-right: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.hero-services span:first-child { padding-left: 0; text-align: left; }
.hero-services span:last-child { border-right: 0; padding-right: 0; text-align: right; }

.section-heading { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end; margin-bottom: 64px; }
.section-heading h2, .about h2, .contact h2 { margin: 0; font-size: clamp(2.4rem, 4.4vw, 3.7rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.05; }
.section-heading > p { max-width: 400px; margin: 0 0 5px; color: var(--muted); font-size: 17px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 92px 28px; }
.project-visual { display: block; overflow: hidden; background: #e7e7e4; aspect-ratio: 1.22; }
.browser-frame { width: 100%; height: 100%; padding: 9% 6% 0; transition: transform .55s cubic-bezier(.22, .61, .36, 1); }
.project-visual:hover .browser-frame { transform: scale(1.018); }
.browser-bar { height: 24px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-radius: 5px 5px 0 0; background: #f2f2f1; }
.browser-bar span { width: 5px; height: 5px; border-radius: 50%; background: #aeb0b1; }
.academy-ui, .kurtay-ui, .dosemealti-ui, .four-ui { position: relative; height: calc(100% - 24px); overflow: hidden; }
.mock-nav { position: relative; z-index: 2; height: 16%; display: flex; align-items: center; gap: 8%; padding: 0 7%; font-style: normal; }
.mock-nav b { margin-right: auto; font-size: clamp(8px, .85vw, 12px); letter-spacing: -.02em; }
.mock-nav i { width: 7%; height: 2px; background: currentColor; opacity: .4; }
.academy-ui { background: #f9f5ed; color: #3b1d24; }
.academy-copy, .kurtay-copy, .dosemealti-copy, .four-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; padding: 10% 7%; }
.academy-copy small, .kurtay-copy small, .dosemealti-copy small, .four-copy small { margin-bottom: 4%; font-size: clamp(5px, .55vw, 8px); font-weight: 700; letter-spacing: .16em; }
.academy-copy strong, .kurtay-copy strong, .dosemealti-copy strong, .four-copy strong { font-size: clamp(22px, 3.1vw, 48px); font-weight: 600; letter-spacing: -.06em; line-height: .94; }
.academy-copy em, .kurtay-copy em, .dosemealti-copy em, .four-copy em { margin-top: 8%; border-bottom: 1px solid currentColor; font-size: clamp(6px, .65vw, 10px); font-style: normal; }
.academy-shape { position: absolute; right: -5%; bottom: -18%; width: 54%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #b43750; color: #f9d7d6; transform: rotate(-12deg); }
.academy-shape span { font-size: clamp(70px, 10vw, 150px); font-weight: 600; }
.project-card--kurtay .project-visual { background: #d7d4cc; }
.kurtay-ui { background: #262722; color: #f1eee3; }
.kurtay-lines { position: absolute; inset: 16% 0 0 54%; display: flex; gap: 8%; transform: skew(-12deg); }
.kurtay-lines span { width: 13%; height: 120%; background: #bd9a66; opacity: .75; }
.project-card--dosemealti .project-visual { background: #dce7dc; }
.dosemealti-ui { background: #e9f0e7; color: #173a2b; }
.place-mark { position: absolute; right: 10%; bottom: -14%; color: #8cb39d; font-size: clamp(130px, 18vw, 270px); font-weight: 700; letter-spacing: -.14em; line-height: 1; }
.project-card--four .project-visual { background: #dedee5; }
.four-ui { background: #171724; color: #f5f2eb; }
.four-orbit { position: absolute; right: -7%; bottom: -15%; width: 58%; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #6769fb; border-radius: 50%; color: #9c9dff; }
.four-orbit::before { content: ""; position: absolute; inset: 12%; border: 1px solid currentColor; border-radius: 50%; opacity: .7; }
.four-orbit span { font-size: clamp(45px, 7vw, 100px); font-weight: 500; }
.project-meta { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-top: 24px; }
.project-meta h3 { margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.project-meta p { margin: 0; color: var(--muted); font-size: 13px; }
.project-meta > a { flex: 0 0 auto; padding-block: 4px; color: var(--blue); font-size: 13px; font-weight: 600; }
.project-meta > a span { display: inline-block; margin-left: 4px; transition: transform .2s ease; }
.project-meta > a:hover span { transform: translateX(4px); }

.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: clamp(70px, 12vw, 180px); align-items: end; }
.about h2 { max-width: 730px; }
.about-copy { max-width: 680px; margin: 38px 0 0; color: var(--muted); font-size: 19px; line-height: 1.65; }
.skills-list { border-top: 1px solid var(--ink); }
.skills-list span { display: flex; align-items: center; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.skills-list b { width: 22px; color: var(--blue); font-size: 10px; font-weight: 650; }

.process { background: #f0efeb; }
.process-heading { grid-template-columns: 1fr; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid #cdd0cf; }
.process-grid li { min-height: 250px; padding: 28px 28px 18px 0; border-right: 1px solid #cdd0cf; }
.process-grid li:not(:first-child) { padding-left: 28px; }
.process-grid li:last-child { border-right: 0; }
.process-grid span { display: block; margin-bottom: 72px; color: var(--blue); font-size: 12px; font-weight: 650; }
.process-grid h3 { margin: 0 0 9px; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.process-grid p { max-width: 210px; margin: 0; color: var(--muted); font-size: 14px; }

.contact { background: var(--ink); color: var(--white); }
.contact .eyebrow { color: #85a5ff; }
.contact h2 { max-width: 900px; font-size: clamp(2.7rem, 5.2vw, 4.7rem); }
.contact-bottom { display: grid; grid-template-columns: minmax(0, 620px) auto; justify-content: space-between; gap: 48px; align-items: end; margin-top: 60px; }
.contact-bottom p { margin: 0; color: #b7bbc4; font-size: 18px; }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: #dfe7ff; }
.site-footer { padding-block: 34px; background: var(--ink); color: var(--white); border-top: 1px solid #343c4c; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-inner p { margin: 0; color: #aeb3bd; font-size: 13px; }
.footer-inner nav { display: flex; gap: 28px; }
.footer-inner a { font-size: 13px; }
.footer-inner a span { color: #85a5ff; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 48px), var(--container)); }
  .hero h1 { font-size: clamp(3.1rem, 7.5vw, 4.25rem); }
  .hero-bottom { grid-template-columns: 1fr; align-items: start; }
  .project-grid { gap: 72px 22px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 70px; }
  .skills-list { max-width: 560px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid li:nth-child(2) { border-right: 0; }
  .process-grid li:nth-child(-n+2) { border-bottom: 1px solid #cdd0cf; }
  .process-grid li:nth-child(3) { padding-left: 0; }
  .contact-bottom { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 36px), var(--container)); }
  .site-header { backdrop-filter: blur(10px); }
  .header-inner { height: 68px; }
  .menu-toggle { display: flex; min-width: 48px; min-height: 48px; margin-right: -10px; padding: 0 10px; border: 0; align-items: center; gap: 10px; background: transparent; color: var(--ink); cursor: pointer; }
  .menu-label { font-size: 13px; font-weight: 500; }
  .menu-icon { width: 18px; display: flex; flex-direction: column; gap: 5px; }
  .menu-icon i { width: 100%; height: 1px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }
  .primary-nav { position: absolute; top: 68px; right: 0; left: 0; display: grid; gap: 0; padding: 8px 18px 18px; border-bottom: 1px solid var(--line); background: var(--paper); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .primary-nav a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 15px; }
  .primary-nav a:last-child { border-bottom: 0; }
  .hero { padding-top: 88px; }
  .hero h1 { font-size: clamp(2.65rem, 12vw, 3.75rem); line-height: 1.01; letter-spacing: -.06em; }
  .hero-bottom { gap: 32px; margin-top: 34px; }
  .hero-copy { font-size: 17px; }
  .hero-actions { width: 100%; }
  .button { min-height: 52px; }
  .hero-actions .button { flex: 1 1 160px; }
  .hero-services { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 82px; }
  .hero-services span { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .hero-services span:nth-child(even) { text-align: right; }
  .hero-services span:nth-last-child(-n+2) { border-bottom: 0; }
  .section { padding-block: 88px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2, .about h2 { font-size: 2.45rem; }
  .section-heading > p { font-size: 16px; }
  .project-grid { grid-template-columns: 1fr; gap: 64px; }
  .project-visual { aspect-ratio: 1.18; }
  .academy-copy strong, .kurtay-copy strong, .dosemealti-copy strong, .four-copy strong { font-size: clamp(27px, 8vw, 42px); }
  .project-meta { gap: 16px; padding-top: 18px; }
  .project-meta > a { padding: 7px 0; }
  .about-copy { margin-top: 28px; font-size: 17px; }
  .about-grid { gap: 54px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li, .process-grid li:not(:first-child), .process-grid li:nth-child(3) { min-height: 0; display: grid; grid-template-columns: 34px 1fr; padding: 25px 0; border-right: 0; border-bottom: 1px solid #cdd0cf; }
  .process-grid li:last-child { border-bottom: 0; }
  .process-grid span { grid-row: 1 / span 2; margin: 4px 0 0; }
  .process-grid h3 { margin-bottom: 5px; }
  .process-grid p { max-width: 100%; }
  .contact h2 { font-size: clamp(2.55rem, 12vw, 3.5rem); }
  .contact-bottom { gap: 34px; margin-top: 38px; }
  .contact-bottom p { font-size: 17px; }
  .contact-bottom .button { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column-reverse; }
  .footer-inner nav { width: 100%; justify-content: space-between; gap: 16px; }
}

@media (max-width: 380px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand { font-size: 15px; }
  .menu-label { display: none; }
  .hero { padding-top: 72px; }
  .hero h1 { font-size: clamp(2.25rem, 11.8vw, 2.75rem); }
  .hero-services { font-size: 12px; }
  .section { padding-block: 76px; }
  .section-heading h2, .about h2 { font-size: 2.1rem; }
  .project-meta { display: block; }
  .project-meta > a { display: inline-block; margin-top: 11px; }
  .contact h2 { font-size: 2.35rem; }
  .footer-inner nav { flex-wrap: wrap; justify-content: flex-start; }
}
