/* Kurtoglu Apps — site styles
   Direction: "The name as a monument" · palette "Stone and blueprint" · type TikTok Sans */

:root {
  --bg: #dfdedb;
  --surface: #d3d2ce;
  --paper: #efeeea;
  --ink: #26251e;
  --muted: #55534b;
  --accent: #2456d6;
  --accent-ink: #ffffff;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);

  --m: clamp(16px, 2.2vw, 32px);
  --gap: clamp(16px, 1.8vw, 24px);
  --sec: clamp(80px, 9vw, 120px);
  --monument: clamp(56px, 10vw, 220px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "TikTok Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
strong { font-weight: 600; }

.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; /* taste-skill-ignore: visually-hidden utility */
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--m); top: -100px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 12px 16px;
}
.skip:focus { top: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-inline: var(--m);
}

/* ---------- Bar ---------- */
.bar {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--m);
}
.brand {
  font-weight: 800; font-stretch: 150%; text-transform: uppercase;
  letter-spacing: -0.01em; font-size: var(--step-small); text-decoration: none;
}
.nav ul { list-style: none; display: flex; gap: clamp(20px, 3vw, 48px); align-items: center; }
.nav a { font-size: var(--step-small); text-decoration: none; padding: 10px 0; display: inline-block; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.menu-btn {
  display: none; font: inherit; font-size: 15px; font-weight: 500;
  background: none; border: 0; color: inherit; padding: 12px 0 12px 16px; cursor: pointer;
}

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); color: var(--bg);
    padding: 8px var(--m) 24px;
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav a { font-size: 24px; padding: 10px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-size: var(--step-body); font-weight: 600;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
.btn:hover { background: #1b45b3; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Pictures: one treatment, printed in blueprint blue ---------- */
.duo { position: relative; background: #fff; overflow: hidden; }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.02); }
.duo::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); mix-blend-mode: screen; pointer-events: none;
}
figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 12px; max-width: 46ch; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); }
.hero-core {
  align-self: center; justify-self: center;
  display: flex; flex-direction: column;
  padding-inline: var(--m);
}
.monument {
  display: flex; align-items: baseline; justify-content: center;
  font-weight: 800; font-stretch: 150%; text-transform: uppercase;
  font-size: var(--monument);
  letter-spacing: -0.04em; line-height: 0.9;
  white-space: nowrap;
}
.monument .seam {
  display: inline-block; position: relative;
  width: 1.55em; height: 0.72em; margin: 0 0.03em 0 0.06em;
  overflow: hidden; align-self: baseline;
}
.monument .seam img { position: absolute; inset: 0; }
.hero-photo { display: none; }
.hero-sub {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin-top: 40px;
}
.hero-sub p { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: 0 var(--m) 28px; font-size: var(--step-small);
}
.hero-foot address { font-style: normal; text-align: right; }

/* Live thing: Ankara clock + support desk */
.desk { display: flex; align-items: center; gap: 10px; }
.desk .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.desk[data-open="true"] .dot { background: #1f8a4c; animation: pulse 2.4s ease-in-out infinite; }
.desk b { font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: 0.5; } }

/* Shutter: signature move on the hero picture */
.shutter { animation: shutter 1.1s var(--ease-out) 0.25s both; }
.shutter img { animation: settle 1.4s var(--ease-out) 0.25s both; }
@keyframes shutter { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }

@media (max-width: 760px) {
  .monument {
    flex-direction: column; align-items: center;
    font-size: 21vw; line-height: 0.92;
  }
  .monument .seam { display: none; }
  .hero-photo { display: block; margin-top: 28px; aspect-ratio: 3 / 2; }
  .hero-core { width: 100%; }
  .hero-sub { flex-direction: column; align-items: flex-start; margin-top: 32px; }
  .hero-sub .btn { width: 100%; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 40px; }
  .hero-foot address { text-align: left; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--sec); }
.h2 {
  font-size: var(--step-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
  max-width: 22ch;
}

/* intro: narrow column + tall picture */
.intro .col { grid-column: 2 / span 4; align-self: start; }
.intro .col p + p { margin-top: 1.1em; }
.intro .col .first { font-weight: 500; font-size: var(--step-lead); line-height: 1.35; }
.intro .h2 { margin-bottom: 32px; }
.intro figure { grid-column: 8 / span 5; }
.intro .duo { aspect-ratio: 4 / 5; }

/* statement: what we build */
.build .h2 { grid-column: 1 / span 3; }
.build .statement {
  grid-column: 4 / -1;
  font-size: var(--step-head);
  line-height: 1.22; letter-spacing: -0.015em;
  max-width: 52ch;
}
.build .note { grid-column: 4 / span 6; margin-top: 32px; font-size: var(--step-body); }

/* full-bleed picture */
.bleed { padding-inline: var(--m); }
.bleed .duo { aspect-ratio: 16 / 7; }

/* how it ships: the slip */
.route { background: var(--ink); color: var(--bg); }
.route .lead { grid-column: 1 / span 5; }
.route .lead p { margin-top: 24px; max-width: 34ch; }
.slip {
  grid-column: 7 / span 5;
  background: var(--paper); color: var(--ink);
  padding: 36px 32px 64px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px),
    96% 100%, 92% calc(100% - 14px), 88% 100%, 84% calc(100% - 14px), 80% 100%, 76% calc(100% - 14px),
    72% 100%, 68% calc(100% - 14px), 64% 100%, 60% calc(100% - 14px), 56% 100%, 52% calc(100% - 14px),
    48% 100%, 44% calc(100% - 14px), 40% 100%, 36% calc(100% - 14px), 32% 100%, 28% calc(100% - 14px),
    24% 100%, 20% calc(100% - 14px), 16% 100%, 12% calc(100% - 14px), 8% 100%, 4% calc(100% - 14px), 0 100%);
  font-variant-numeric: tabular-nums;
}
.slip h3 { font-size: var(--step-body); font-weight: 700; margin-top: 28px; }
.slip h3:first-child { margin-top: 0; }
.slip ul { list-style: none; margin-top: 8px; }
.slip li { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; }
.slip li .what { flex: 0 1 auto; }
.slip li .lead-dots {
  flex: 1 1 24px; min-width: 24px; overflow: hidden; white-space: nowrap; color: var(--muted);
}
.slip li .lead-dots::before {
  content: "· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·";
}
.slip li .when { flex: none; white-space: nowrap; }
.slip .result {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  margin: 28px -32px 0; padding: 0 32px; min-height: 48px;
  background: var(--ink); color: var(--paper); font-weight: 600;
}

/* who: side facts, wide paragraph */
.who .facts { grid-column: 1 / span 3; display: grid; gap: 22px; align-content: start; font-size: var(--step-small); }
.who .facts dt { color: var(--muted); }
.who .facts dd { font-weight: 500; }
.who .wide { grid-column: 5 / span 7; }
.who .wide p { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); line-height: 1.38; margin-top: 24px; }
.who .row2 { margin-top: 120px; }
.who .row2 .label { grid-column: 1 / span 3; font-size: var(--step-small); font-weight: 600; }
.who .list { grid-column: span 3; font-size: var(--step-small); }
.who .list:first-of-type { grid-column: 5 / span 3; }
.who .list h3 { font-size: var(--step-small); font-weight: 600; margin-bottom: 12px; }
.who .list li { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.who .list li span:last-child { color: var(--muted); text-align: right; }
.who .list + .list { grid-column: 9 / span 4; }

/* place: two pictures at uneven sizes */
.place .lead { grid-column: 1 / span 4; align-self: start; }
.place .lead p { margin-top: 24px; }
.place .a { grid-column: 6 / span 7; }
.place .b { grid-column: 5 / span 5; margin-top: clamp(32px, 6vw, 96px); }
.place .a .duo { aspect-ratio: 4 / 3; }
.place .b .duo { aspect-ratio: 10 / 7; }

/* faq: large questions, answers beside */
.faq .row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; padding-top: clamp(48px, 5vw, 80px); }
.faq .row:first-child { padding-top: 0; }
.faq .q { grid-column: 1 / span 6; font-size: var(--step-head); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; }
.faq .a { grid-column: 8 / span 5; max-width: 42ch; }
.faq .a p + p { margin-top: 0.8em; }
.faq .row.head .q { color: var(--muted); font-weight: 700; }

/* contact: the email as display type */
.contact {
  background: var(--ink); color: var(--bg);
  display: grid; grid-template-rows: auto auto auto;
  padding: var(--sec) var(--m) 32px;
}
.contact h2 { font-size: var(--step-lead); font-weight: 500; line-height: 1.3; max-width: 26ch; }
.contact .mail {
  margin: clamp(72px, 12vw, 200px) 0 clamp(48px, 7vw, 96px);
  font-size: clamp(2rem, 7.6vw, 9rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1;
  text-decoration: none; overflow-wrap: anywhere;
  transition: color 0.25s;
}
.contact .mail:hover { color: #8fb0ff; }
.contact .corners { display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-small); }
.contact .corners address { font-style: normal; }
.contact .corners ul { list-style: none; text-align: right; }
.contact .corners li + li { margin-top: 4px; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--bg); overflow: hidden; padding-top: clamp(56px, 6vw, 96px); }
.foot .top { row-gap: 48px; }
.foot .places { grid-column: 1 / span 5; list-style: none; }
.foot .places li { font-size: var(--step-lead); line-height: 1.25; font-weight: 500; }
.foot .places a { text-decoration: none; }
.foot .places a:hover { color: #8fb0ff; }
.foot .links { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); font-size: var(--step-small); }
.foot .links h2 { font-size: var(--step-small); font-weight: 600; color: #b9b7b0; margin-bottom: 10px; }
.foot .links ul { list-style: none; }
.foot .links li { padding: 4px 0; }
.foot .links a { text-decoration: none; }
.foot .links a:hover { text-decoration: underline; }
.foot .legal { padding: 64px var(--m) 0; font-size: var(--step-small); color: #c9c7c0; display: grid; gap: 10px; max-width: 75ch; }
.foot .legal a { color: inherit; }
.foot .credits { font-size: var(--step-small); }
.foot .name {
  display: block; margin-top: 56px; padding-inline: calc(var(--m) - 0.04em);
  font-weight: 800; font-stretch: 150%; text-transform: uppercase;
  font-size: var(--monument); letter-spacing: -0.04em; line-height: 0.78;
  margin-bottom: -0.1em; white-space: nowrap; color: var(--bg);
}

@media (max-width: 960px) {
  .intro .col { grid-column: 1 / span 6; }
  .intro figure { grid-column: 7 / span 6; }
  .route .lead, .slip { grid-column: 1 / -1; }
  .slip { margin-top: 40px; max-width: 520px; }
  .who .facts { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); margin-bottom: 32px; }
  .who .wide { grid-column: 1 / -1; }
  .who .row2 .label { grid-column: 1 / -1; margin-bottom: 16px; }
  .who .list:first-of-type { grid-column: 1 / span 6; }
  .who .list + .list { grid-column: 7 / span 6; }
  .foot .places, .foot .links { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .intro .col, .intro figure { grid-column: 1 / -1; }
  .intro figure { margin-top: 48px; }
  .build .h2, .build .statement, .build .note { grid-column: 1 / -1; }
  .build .statement { margin-top: 20px; }
  .bleed .duo { aspect-ratio: 4 / 3; }
  .slip { padding: 28px 20px 56px; }
  .slip .result { margin-inline: -20px; padding-inline: 20px; }
  .who .facts { grid-template-columns: 1fr 1fr; }
  .who .row2 { margin-top: 64px; }
  .who .list:first-of-type, .who .list + .list { grid-column: 1 / -1; }
  .who .list + .list { margin-top: 40px; }
  .place .lead, .place .a, .place .b { grid-column: 1 / -1; }
  .place .a { margin-top: 40px; }
  .place .b { margin-top: 32px; width: 78%; }
  .faq .row { display: block; }
  .faq .a { margin-top: 14px; }
  .contact .mail { font-size: 9vw; margin-bottom: 48px; }
  .contact .corners { flex-direction: column; }
  .contact .corners ul { text-align: left; }
  .foot .links { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot .name { font-size: 12vw; }
}

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(48px, 8vw, 120px) var(--m) clamp(40px, 5vw, 72px); }
.page-head h1 {
  font-weight: 800; font-stretch: 150%; text-transform: uppercase;
  font-size: clamp(30px, 8.4vw, 150px); letter-spacing: -0.04em; line-height: 0.9;
}
.page-head p { margin-top: 32px; font-size: var(--step-lead); line-height: 1.32; max-width: 40ch; }
.page-head .meta { font-size: var(--step-small); color: var(--muted); margin-top: 16px; }

.doc { padding: 0 var(--m) var(--sec); }
.doc-body { grid-column: 4 / -1; max-width: 72ch; }
.doc-toc { grid-column: 1 / span 2; font-size: var(--step-small); align-self: start; position: sticky; top: 24px; }
.doc-toc h2 { font-size: var(--step-small); font-weight: 600; margin-bottom: 10px; }
.doc-toc ol { list-style: none; }
.doc-toc li { padding: 3px 0; }
.doc-toc a { text-decoration: none; color: var(--muted); }
.doc-toc a:hover { color: var(--ink); text-decoration: underline; }
.doc-body h2 { font-size: var(--step-head); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 72px 0 20px; scroll-margin-top: 24px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: var(--step-lead); font-weight: 600; margin: 36px 0 12px; line-height: 1.25; }
.doc-body p, .doc-body ul, .doc-body ol, .doc-body dl, .doc-body table { margin-top: 14px; }
.doc-body ul, .doc-body ol { padding-left: 1.2em; }
.doc-body li { margin-top: 8px; }
.doc-body li::marker { color: var(--muted); }
.doc-body table { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid #c4c2bc; }
.doc-body th { font-weight: 600; }
.panel { background: var(--surface); padding: clamp(20px, 3vw, 36px); margin-top: 24px; }
.panel > *:first-child { margin-top: 0; }

@media (max-width: 960px) {
  .doc-toc { display: none; }
  .doc-body { grid-column: 1 / -1; }
}

/* identity table (about/contact) */
.idtable { width: 100%; border-collapse: collapse; }
.idtable th, .idtable td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid #c4c2bc; }
.idtable th { font-weight: 500; color: var(--muted); width: 34%; font-size: var(--step-small); padding-top: 17px; }

/* forms (deletion request) */
.form { display: grid; gap: 22px; margin-top: 24px; max-width: 520px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; }
.field .hint { display: block; font-size: var(--step-small); color: var(--muted); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--paper); border: 2px solid #b5b3ac; border-radius: 0; padding: 12px 14px; min-height: 50px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }

/* apps page */
.shelf .item { grid-column: span 6; padding: 32px 0 40px; }
.shelf .item h3 { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.shelf .item p { margin-top: 12px; max-width: 46ch; }
.shelf .item .state { font-size: var(--step-small); color: var(--muted); margin-top: 16px; }
@media (max-width: 760px) { .shelf .item { grid-column: 1 / -1; } }

.split .text { grid-column: 1 / span 5; }
.split figure { grid-column: 7 / span 6; }
.split .duo { aspect-ratio: 3 / 2; }
@media (max-width: 760px) { .split .text, .split figure { grid-column: 1 / -1; } .split figure { margin-top: 40px; } }

/* ---------- Entrance motion ---------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-rise].in { opacity: 1; transform: none; }
.drift { transition: transform 0.2s linear; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}
