/* Tempo17 · bakım sayfası
   Sisli teal zemin; sağda logonun renginde derin bir pano, içinde 3D logo heykeli ve geri sayım.
   Biçim dili: logonun yuvarlak uçlu çizgisi. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext-opsz-normal.woff2") format("woff2");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  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 {
  --ground: #e6efee;        /* sisli teal zemin */
  --ground-hi: #f1f6f5;
  --ink: #0d2e36;           /* koyu petrol */
  --ink-2: #2b4b53;
  --ink-soft: #46646b;
  --teal: #4299a5;          /* logo rengi */
  --teal-deep: #1f6b77;
  --panel-1: #237583;       /* pano: üstte aydınlık, altta derin */
  --panel-2: #1d6a76;
  --panel-3: #124c57;
  --on-panel: #ffffff;
  --on-panel-soft: #e0f4f2;
  --mint: #a9e0dc;
  --warm: #f28a5b;          /* tek sıcak nokta: "hazırlanıyor" ışığı */
  --line: #bcd2d4;

  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --frame: clamp(0.75rem, 1.4vw, 1.25rem);
  --radius-panel: clamp(1.25rem, 2.2vw, 2rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  color-scheme: light;
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: #9fbcc0 var(--ground);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  background: linear-gradient(175deg, var(--ground-hi) 0%, var(--ground) 55%);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ince kâğıt dokusu: zemini düz beyazlıktan kurtarır, hareket etmez */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .05 0 0 0 0 .18 0 0 0 0 .21 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--ink); color: #ffffff; }

p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 0.125rem solid var(--teal-deep);
  outline-offset: 0.2rem;
  border-radius: 0.5rem;
}

/* ---------- iskelet: telefonda tek sütun ---------- */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "top"
    "panel"
    "intro"
    "contact"
    "services"
    "foot";
  align-content: start;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(var(--frame), env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(var(--frame), env(safe-area-inset-left));
}

.top { grid-area: top; padding: 0.35rem 0.4rem 1rem; }
.panel { grid-area: panel; }
.intro { grid-area: intro; }
.contact { grid-area: contact; }
.services { grid-area: services; }
.foot { grid-area: foot; }
.intro, .contact, .services, .foot { padding-inline: 0.4rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  white-space: nowrap;
}
.brand-word { height: 1.3rem; width: auto; }
.brand-what {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.brand-what::before {
  content: "";
  width: 1rem; height: 0.1875rem;
  border-radius: 999px;
  background: var(--teal);
}

/* ---------- pano ---------- */

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-panel);
  color: var(--on-panel);
  background:
    radial-gradient(70% 55% at 50% 36%, rgba(146, 214, 219, 0.5) 0%, rgba(146, 214, 219, 0) 70%),
    linear-gradient(165deg, var(--panel-1) 0%, var(--panel-2) 52%, var(--panel-3) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 1.5rem 3rem -2rem rgba(13, 46, 54, 0.55);
}
/* panoda da aynı ince doku */
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.status {
  position: absolute;
  top: clamp(1rem, 2.2vw, 1.6rem);
  left: clamp(1rem, 2.4vw, 1.9rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(8, 44, 52, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-panel);
}
.status-dot {
  position: relative;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--warm);
}

.stage {
  position: relative;
  flex: 1 1 auto;
  height: clamp(12rem, 32vh, 17rem);
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@supports (height: 1svh) {
  .stage { height: clamp(12rem, 32svh, 17rem); }
}
.stage.is-dragging { cursor: grabbing; }
.stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.mark-fallback {
  position: absolute;
  inset: 0;
  margin: auto;
  height: 50%;
  width: auto;
  max-width: 72%;
  pointer-events: none;
}
.js .mark-fallback { opacity: 0; animation: fade-in 0.7s 3.5s var(--ease-out) both; }
.webgl .mark-fallback { animation: none; opacity: 0; }
.no-webgl .mark-fallback { animation: none; opacity: 1; }
.no-webgl .stage { cursor: default; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.25rem;
  margin-top: -0.5rem;
  font-size: 0.875rem;
  color: var(--on-panel-soft);
  visibility: hidden;
}
.webgl .hint { visibility: visible; }
.hint > span { display: inline-flex; align-items: center; gap: 0.65rem; }
.hint > span::after {
  content: "";
  width: 0.75rem; height: 0.1875rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}
.hint-btn {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0.4rem 0.2rem;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--on-panel);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-decoration-thickness: 0.09375rem;
  text-underline-offset: 0.3em;
  cursor: pointer;
  transition: text-decoration-color 0.25s var(--ease-out);
}
@media (hover: hover) {
  .hint-btn:hover { text-decoration-color: currentColor; }
}
.panel :focus-visible { outline-color: #ffffff; }

/* ---------- geri sayım (panonun tabanında) ---------- */

.count {
  margin: 0.75rem clamp(1rem, 2.4vw, 1.9rem) 0;
  padding: clamp(1rem, 2.4vh, 1.5rem) 0 clamp(1.1rem, 2.8vh, 1.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.count-title {
  font-size: 0.875rem;
  color: var(--on-panel-soft);
}
.units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 1.5rem);
  margin-top: 0.5rem;
}
.unit {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.num {
  display: flex;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(2.25rem, min(10vw, 6.4vh), 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--on-panel);
}
@supports (height: 1svh) {
  .num { font-size: clamp(2.25rem, min(10vw, 6.4svh), 4rem); }
}
.d {
  position: relative;
  display: inline-block;
  width: 0.58em;
  text-align: center;
}
.d b { display: block; font-weight: inherit; }
.d b.is-out { position: absolute; inset: 0; }
.is-live .num { color: var(--mint); }
/* her birimin altında logodaki çizgi */
.lab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--on-panel-soft);
}
.lab::before {
  content: "";
  width: 0.9rem; height: 0.1875rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}
.is-live .lab::before { background: var(--mint); }
.when {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--on-panel-soft);
}
.count.is-done .units, .count.is-done .count-title { display: none; }
.count.is-done .when {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--on-panel);
}

/* ---------- söz ---------- */

.intro { margin-top: clamp(1.75rem, 4vh, 2.5rem); }

h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(2.5rem, 10.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 .line { display: block; padding-bottom: 0.06em; }

.lede {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 0.98rem + 0.36vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- iletişim ---------- */

.contact {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.4rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 0.09375rem var(--ink);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums lining-nums;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}
.pill svg {
  flex: none;
  width: 1.2rem; height: 1.2rem;
  transition: transform 0.4s var(--ease-out);
}
.pill-solid {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 0.6rem 1.3rem -0.75rem rgba(13, 46, 54, 0.6);
}
@media (hover: hover) {
  .pill:hover { background: #ffffff; }
  .pill:hover svg { transform: rotate(-8deg) scale(1.06); }
  .pill-solid:hover {
    background: var(--teal-deep);
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.85rem 1.6rem -0.8rem rgba(13, 46, 54, 0.6);
  }
}
.pill:active { transform: scale(0.98); }
.pill:focus-visible { border-radius: 999px; }

/* ---------- hizmetler ---------- */

.services { margin-top: clamp(2rem, 4.5vh, 2.75rem); }
.service-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.service-list li {
  padding: 1rem 0 1.05rem;
  border-top: 1px solid var(--line);
}
.service-list h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
/* logodaki çizgi: her hizmetin işareti */
.service-list h3::before {
  content: "";
  flex: none;
  width: 1.1rem; height: 0.25rem;
  border-radius: 999px;
  background: var(--teal);
}
.service-list p {
  margin-top: 0.3rem;
  padding-left: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.foot {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ---------- ekran boyutları ---------- */

/* telefon: pano kısalır ki arama düğmesi ilk ekranda kalsın */
@media (max-width: 39.9rem) {
  .stage { height: clamp(10.5rem, 25vh, 13rem); }
  @supports (height: 1svh) { .stage { height: clamp(10.5rem, 25svh, 13rem); } }
  .status { position: relative; top: auto; left: auto; align-self: flex-start; margin: 0.85rem 0 0 0.85rem; }
  .count-title { display: none; }
  .count { padding-top: 1rem; padding-bottom: 1.1rem; }
  .units { margin-top: 0; }
  .when { margin-top: 0.7rem; }
  .intro { margin-top: 1.5rem; }
  .lede { margin-top: 0.75rem; }
  .contact { margin-top: 1.25rem; }
}

@media (min-width: 30rem) {
  .contact { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 40rem) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  h1 { font-size: clamp(3rem, 7vw, 4rem); }
}

/* geniş ekran: solda söz, sağda boydan boya pano */
@media (min-width: 64rem) {
  .page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    /* boşluk iki yere bölünür: başlığın üstü ve hizmetlerin üstü */
    grid-template-rows: auto minmax(1rem, 1fr) auto auto minmax(1rem, 0.7fr) auto auto;
    grid-template-areas:
      "top panel"
      ". panel"
      "intro panel"
      "contact panel"
      ". panel"
      "services panel"
      "foot panel";
    column-gap: clamp(2.5rem, 4.5vw, 5rem);
    padding-left: max(clamp(2rem, 4.4vw, 4.5rem), env(safe-area-inset-left));
  }
  .top { padding: 1.4rem 0 0; }
  .intro, .contact, .services, .foot { padding-inline: 0; }
  .panel { min-height: calc(100vh - 2rem); }
  .intro { margin-top: 0; }
  h1 { font-size: clamp(3.25rem, min(5.2vw, 9.2vh), 5.25rem); }
  .lede { max-width: 31rem; }
  .contact { margin-top: clamp(1.5rem, 3.4vh, 2.25rem); }
  .services { margin-top: 0; }
  .foot { margin-top: clamp(1.25rem, 3vh, 2rem); padding-bottom: 0.4rem; }
  .brand-word { height: 1.45rem; }
  .stage { height: auto; min-height: 14rem; }
  .pill { min-height: 3.4rem; padding-inline: 1.7rem; }
}
@supports (height: 1svh) {
  @media (min-width: 64rem) {
    .panel { min-height: calc(100svh - 2rem); }
    h1 { font-size: clamp(3.25rem, min(5.2vw, 9.2svh), 5.25rem); }
  }
}

/* basık geniş ekran: hizmet açıklamaları gizlenir, başlıklar kalır */
@media (min-width: 64rem) and (max-height: 47rem) {
  .service-list p { display: none; }
  .service-list li { padding: 0.75rem 0; }
  .when { display: none; }
}

/* ---------- giriş ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* pano alttan açılır, ardından çubuklar yerini bulur */
  .panel { animation: panel-in 1.1s 0.05s var(--ease-out) both; }
  .top, .lede, .pill, .service-list li, .foot, .count, .status, .webgl .hint {
    animation: settle 0.95s var(--ease-out) both;
  }
  .top { animation-delay: 0.15s; }
  .status { animation-delay: 0.9s; }
  h1 .line { animation: reveal 1.1s var(--ease-out) both; }
  h1 .line:nth-child(1) { animation-delay: 0.35s; }
  h1 .line:nth-child(2) { animation-delay: 0.48s; }
  .lede { animation-delay: 0.7s; }
  .pill:nth-child(1) { animation-delay: 0.85s; }
  .pill:nth-child(2) { animation-delay: 0.93s; }
  .service-list li:nth-child(1) { animation-delay: 1.05s; }
  .service-list li:nth-child(2) { animation-delay: 1.12s; }
  .service-list li:nth-child(3) { animation-delay: 1.19s; }
  .service-list li:nth-child(4) { animation-delay: 1.26s; }
  .count { animation-delay: 1.2s; }
  .foot { animation-delay: 1.4s; }
  .webgl .hint { animation-delay: 2.2s; }

  /* "hazırlanıyor" ışığı yavaşça nabız atar */
  .status-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--warm);
    animation: pulse 2.4s 2s var(--ease-out) infinite;
  }

  @keyframes panel-in {
    from { clip-path: inset(100% 0 0 0 round var(--radius-panel)); }
    to { clip-path: inset(0 0 0 0 round var(--radius-panel)); }
  }
  @keyframes settle {
    from { opacity: 0; transform: translateY(0.8rem); }
    to { opacity: 1; transform: none; }
  }
  @keyframes reveal {
    from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(0.4em); }
    to { opacity: 1; clip-path: inset(-0.15em -0.1em -0.25em -0.1em); transform: none; }
  }
  @keyframes pulse {
    from { transform: scale(1); opacity: 0.7; }
    to { transform: scale(3); opacity: 0; }
  }

  .d b.is-in { animation: digit-in 0.45s var(--ease-out) both; }
  .d b.is-out { animation: digit-out 0.28s ease-in both; }
  @keyframes digit-in {
    from { opacity: 0; transform: translateY(0.28em); }
    to { opacity: 1; transform: none; }
  }
  @keyframes digit-out {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: translateY(-0.28em); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill, .pill svg, .hint-btn { transition: none; }
  .js .mark-fallback { animation-delay: 2s; }
}
