/* piramittek.com — tek sayfa. Stüdyo grisi fon, tek yazı ailesi (Archivo), renk yalnızca camdan. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #e2e3df;   /* stüdyo fonu */
  --light: #f2f2ef;   /* ışık havuzu */
  --ink: #000;
  --ink-2: #4a4b47;
  --gutter: clamp(20px, 5vw, 80px);
  color-scheme: light;
}

/* Ürün renkleri: yalnızca satır bandı ve satır vurgusu için */
[data-product="doked"] { --band: #6841c0; }
[data-product="kidopapp"] { --band: #22a45d; }
[data-product="lumina"] { --band: #8658de; }
[data-product="sayndone"] { --band: #e91e63; }
[data-product="bufibu"] { --band: #e4521a; }
[data-product="elitenexus"] { --band: #d98a1f; }
[data-product="cbs"] { --band: #2b6fe0; }

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 106.25%;           /* 17 px */
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 60em) { html { font-size: 112.5%; } }   /* 18 px */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body { margin: 0; min-height: 100svh; overflow-x: clip; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, canvas { display: block; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--band, currentColor); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
[id] { scroll-margin-top: 2rem; }

/* Arka plandaki cam piramit: sayfanın altında, sabit */
.prism { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }
.webgl .prism-static { visibility: hidden; }   /* yer tutar, piramit canvas'ta çizilir */

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* Üst bar */
.top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem; }
.mark { font-size: 1.25rem; font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.top nav a { font-weight: 500; text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.lang { color: var(--ink-2); }

/* Açılış */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 4rem;
  align-items: center;
  min-height: calc(100svh - 6rem);
  padding-block: clamp(2rem, 6vw, 5rem);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 6rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 span { display: block; }
.lede { margin-top: 2rem; max-width: 38ch; font-size: clamp(1.125rem, 1.2vw + 0.6rem, 1.4rem); line-height: 1.4; text-wrap: pretty; }
.slot-hero { aspect-ratio: 4 / 3; width: 100%; justify-self: end; }
.prism-static { width: 100%; height: 100%; }

/* Başlık açılırken dar genişlikten geniş genişliğe "açılır": tek orkestre edilmiş an */
@media (prefers-reduced-motion: no-preference) {
  @keyframes unfold { from { font-stretch: 62%; opacity: 0; } to { font-stretch: 125%; opacity: 1; } }
  .hero h1 span { animation: unfold 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  .hero h1 span + span { animation-delay: 0.12s; }
  .lede { animation: unfold 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) 0.3s both; font-stretch: 100%; }
  @keyframes rise { from { opacity: 0; } to { opacity: 1; } }
  .lede { animation-name: rise; }
}

/* Bölümler */
section { padding-block: clamp(4rem, 9vw, 8rem); }
.section-title { font-size: 1rem; font-weight: 600; color: var(--ink-2); margin-bottom: 2.5rem; }

/* Yaptıklarımız: solda piramit (kaydırırken yerinde kalır), sağda satırlar; her satıra piramitten kendi rengi gelir */
.works { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem 4rem; }
.works-prism { align-self: stretch; }
.slot-works { position: sticky; top: 16vh; aspect-ratio: 1; width: 100%; }
.works-list { align-self: start; }

/* Satırlar: solda ürünün rengi (piramitten gelen bandın vardığı yer), üzerine gelince satır o renkle yıkanır */
.product {
  display: grid;
  grid-template-columns: 6px minmax(9rem, 2fr) 5fr 3fr;
  gap: 1rem 2.5rem;
  align-items: start;
  padding: 1.75rem 1.25rem;
  margin-inline: -1.25rem;
  border-radius: 4px;
  transition: background-color 0.25s ease;
}
.product::before { content: ""; display: block; width: 6px; height: 100%; min-height: 2.75rem; background: var(--band); border-radius: 1px; }
.product:hover, .product:focus-within { background: color-mix(in srgb, var(--band) 11%, transparent); }
.product h3 { font-size: clamp(1.6rem, 2.4vw, 2.6rem); font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.05; }
.product h3 a { text-decoration: none; }
.product h3 a:hover { text-decoration: underline; text-decoration-color: var(--band); }
.desc { max-width: 52ch; text-wrap: pretty; }
.meta { display: grid; gap: 0.4rem; color: var(--ink-2); }
.meta a { color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
@media (max-width: 56em) {
  .works { grid-template-columns: 1fr; }
  .slot-works { position: static; width: 34%; max-width: 11rem; }
  .product { grid-template-columns: 6px 1fr; }
  .desc, .meta { grid-column: 2; }
}

/* Hakkımızda */
.story { max-width: 60ch; font-size: clamp(1.125rem, 1.1vw + 0.6rem, 1.35rem); line-height: 1.45; text-wrap: pretty; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem 4rem; margin-top: 3.5rem; max-width: 60rem; }
.people h3 { font-size: 1.35rem; font-weight: 700; font-stretch: 112%; letter-spacing: -0.01em; }
.role { color: var(--ink-2); }
.people .links { margin-top: 0.75rem; }

/* İletişim */
.mail {
  display: inline-block;
  margin-top: 1rem;
  font-size: clamp(1.4rem, 3.2vw, 3rem);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 2rem 2.5rem; color: var(--ink-2); }

/* 404 */
.notfound { padding-block: clamp(3rem, 10vw, 8rem); max-width: 40rem; display: grid; gap: 1.5rem; }
.notfound h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; font-stretch: 125%; letter-spacing: -0.03em; line-height: 0.95; }

@media (max-width: 56em) {
  .top nav { gap: 0.5rem 1rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .slot-hero { max-width: 22rem; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
