/* ==========================================================================
   Digital Koray landing page
   Navy and cyan from the logo. Fraunces (soft) for accents, Inter Tight for text.
   ========================================================================== */

:root {
  --navy-deep: #04162a;
  --navy: #072341;
  --navy-lift: #0b2d52;
  --cyan: #12c4d6;
  --cyan-soft: #48e5e1;
  --accent: #9fdfe2;        /* calmer, less saturated cyan for large italic text */

  --ink: #eef4fa;
  --muted: #9ab0c7;
  --faint: #6f88a2;
  --line: rgba(255, 255, 255, 0.1);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section: clamp(5rem, 3.5rem + 6vw, 9rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0875rem);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--tone);
  transition: background-color 1.4s var(--ease);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: 8px;
  background: var(--cyan); color: var(--navy-deep); font-weight: 500;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

/* Type ------------------------------------------------------------------- */
h1, h2, h3 { font-weight: 400; letter-spacing: -0.022em; line-height: 1.1; text-wrap: balance; }
h3 { font-weight: 500; }
/* The italic accent words. Fraunces with SOFT rounds off the stroke ends, and a
   low optical size lowers the thick/thin contrast, so large text reads gently. */
h2 em, .statement em, .services__num, .steps li::before {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-optical-sizing: none;
  font-variation-settings: "SOFT" 100, "opsz" 36;
  letter-spacing: 0;
  color: var(--accent);
}
h1 { font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.6rem); }

/* Hero accent: same clean sans as the rest of the heading, just lighter and
   softly tinted, so it stands apart without a decorative typeface. */
h1 em {
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, #d2f6f4 0%, #8fe1e4 55%, #6cc9dd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.9rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--cyan); }
.muted { color: var(--muted); max-width: 44ch; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 1rem 1.6rem;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--navy-deep);
  font-weight: 500; letter-spacing: -0.01em; cursor: pointer;
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover { background: var(--cyan-soft); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.text-link {
  position: relative; color: var(--muted);
  transition: color 0.3s var(--ease);
}
.text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0.3); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.text-link:hover { color: var(--ink); }
.text-link:hover::after { transform: scaleX(1); }

/* Header ----------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-block: 1.1rem;
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  padding-block: 0.75rem;
  background: color-mix(in srgb, var(--tone) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 46px; }
/* Header lockup: the logo's wordmark and tagline as live text, so the tagline
   stays readable at header size (as an image it would be a few pixels tall). */
.brand__text { display: grid; gap: 0.3rem; line-height: 1; }
.brand__name { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.brand__tagline { font-size: 0.6rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.brand b { font-weight: 500; color: var(--cyan-soft); }
.header__nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); font-size: 0.92rem; }
.header__nav a:not(.pill-link) { color: var(--muted); transition: color 0.3s var(--ease); }
.header__nav a:not(.pill-link):hover { color: var(--ink); }
.pill-link {
  padding: 0.55rem 1.1rem; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.pill-link:hover { border-color: var(--cyan-soft); background: rgba(72, 229, 225, 0.08); }
@media (max-width: 760px) { .header__nav a:not(.pill-link) { display: none; } }
@media (max-width: 640px) { .brand__tagline { display: none; } }
@media (max-width: 380px) { .brand__name { letter-spacing: 0.14em; font-size: 0.8rem; } }
.pill-link { white-space: nowrap; }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 960px);
  display: flex; align-items: center;
  padding-block: 7rem 5rem;
}
.hero__light {
  position: absolute; z-index: -1;
  width: 60vmax; aspect-ratio: 1; right: -18vmax; top: 50%; translate: 0 -50%;
  background: radial-gradient(circle, rgba(72, 229, 225, 0.14), transparent 62%);
  filter: blur(20px);
}
.hero__grid {
  display: grid; align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.35fr 0.65fr; } }
.hero h1 { margin-top: 1.6rem; }
.lede { margin-top: 1.8rem; max-width: 50ch; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.5rem; }

/* The logo, presented as an object */
.hero__emblem { display: grid; place-items: center; perspective: 1000px; }
.emblem {
  position: relative;
  width: min(100%, 380px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 22%;
  background: linear-gradient(155deg, #0e3561 0%, var(--navy) 45%, #051a33 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 40px 90px -30px rgba(0, 0, 0, 0.75),
    0 0 120px -40px rgba(18, 196, 214, 0.45);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
  animation: float 7s ease-in-out infinite;
}
.emblem img { width: 66%; position: relative; }
.emblem__ring {
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 60%, var(--cyan-soft) 75%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 8s linear infinite;
  opacity: 0.8;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
@keyframes float { 50% { translate: 0 -12px; } }
@media (max-width: 959px) { .emblem { width: min(62vw, 260px); } .hero__emblem { order: -1; justify-items: start; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 2rem; translate: -50% 0;
  width: 24px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; translate: -50% 0;
  width: 3px; height: 7px; border-radius: 3px; background: var(--ink);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-height: 700px), (max-width: 959px) { .scroll-cue { display: none; } }

/* Statement -------------------------------------------------------------- */
.statement { padding-block: var(--section); border-top: 1px solid var(--line); }
.statement p {
  max-width: 24ch;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 4.2rem);
  line-height: 1.18; letter-spacing: -0.02em; font-weight: 400;
}

/* Sections --------------------------------------------------------------- */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section--alt { background: rgba(255, 255, 255, 0.02); }
.section__head { display: grid; gap: 1.2rem; justify-items: start; margin-bottom: clamp(3rem, 5vw, 5rem); }

.services { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .services { grid-template-columns: repeat(3, 1fr); border-top: 0; } }
.services li {
  position: relative;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) {
  .services li { padding: 2.5rem 2.25rem 2.5rem 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .services li + li { padding-left: 2.25rem; border-left: 1px solid var(--line); }
}
.services li::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0;
  background: var(--cyan-soft); transition: width 0.7s var(--ease);
}
.services li:hover::before { width: 100%; }
.services__num { font-size: 1.4rem; }
.services h3 { margin-top: 1.4rem; }
.services p { margin-top: 0.8rem; color: var(--muted); }

/* Process */
.process { display: grid; gap: 3rem; }
@media (min-width: 960px) { .process { grid-template-columns: 0.9fr 1.1fr; align-items: start; } .process .section__head { margin-bottom: 0; } }
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3rem 7rem 1fr; gap: 0.5rem 1rem; align-items: baseline;
  padding-block: 1.6rem; border-bottom: 1px solid var(--line);
}
.steps li::before { content: "0" counter(step); font-size: 1.15rem; }
.steps b { font-weight: 500; font-size: 1.15rem; }
.steps span { color: var(--muted); }
@media (max-width: 560px) { .steps li { grid-template-columns: 2.5rem 1fr; } .steps span { grid-column: 2; } }

/* Contact ---------------------------------------------------------------- */
.contact { background: transparent; }
.contact__grid { display: grid; gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact__grid > div { display: grid; gap: 1.3rem; justify-items: start; }
.mail {
  margin-top: 1rem;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--ink);
  padding-bottom: 0.2rem;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(72, 229, 225, 0.4);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mail:hover { color: var(--accent); border-color: var(--accent); }

.form { display: grid; gap: 1.6rem; }
.hp { position: absolute; left: -9999px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  padding: 1.5rem 0 0.7rem;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent; outline: none; resize: vertical;
  transition: border-color 0.3s var(--ease);
}
.field label {
  position: absolute; left: 0; top: 1.5rem;
  color: var(--faint); pointer-events: none; transform-origin: left top;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--cyan-soft); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.35rem) scale(0.78); color: var(--muted);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff8f8f; }
.form__note { min-height: 1.4em; font-size: 0.92rem; color: var(--muted); }
.form__note.is-error { color: #ffb0b0; }
.form__note.is-ok { color: var(--cyan-soft); }

/* Footer ----------------------------------------------------------------- */
.footer { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.footer__logo { width: min(100%, 440px); height: auto; }
.footer__meta { display: grid; gap: 0.7rem; justify-items: start; font-size: 0.9rem; }
.footer__mail { color: var(--muted); transition: color 0.3s var(--ease); }
.footer__mail:hover { color: var(--ink); }
.footer p { font-size: 0.85rem; color: var(--faint); }
@media (min-width: 760px) { .footer__meta { justify-items: end; text-align: right; } }

/* Google Maps link */
.maps-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--muted); font-size: 0.95rem;
  transition: color 0.3s var(--ease);
}
.maps-link svg { color: var(--accent); flex: none; }
.maps-link span { border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.maps-link:hover { color: var(--ink); }
.maps-link:hover span { border-color: currentColor; }

/* Reveal ----------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Scroll colour shift -------------------------------------------------------
   script.js sets data-tone on <html> as each section reaches the middle of the
   screen. The body colour and two soft glows ease between these moods. */
:root, html[data-tone="hero"] {
  --tone: #071c35;
  --glow-a: rgba(18, 196, 214, 0.20);
  --glow-b: rgba(44, 92, 176, 0.24);
}
html[data-tone="teal"] {
  --tone: #06293a;
  --glow-a: rgba(72, 229, 225, 0.17);
  --glow-b: rgba(18, 128, 150, 0.22);
}
html[data-tone="blue"] {
  --tone: #0a2145;
  --glow-a: rgba(86, 146, 255, 0.16);
  --glow-b: rgba(18, 196, 214, 0.12);
}
html[data-tone="dusk"] {
  --tone: #141f40;
  --glow-a: rgba(138, 122, 255, 0.15);
  --glow-b: rgba(72, 229, 225, 0.10);
}
html[data-tone="sea"] {
  --tone: #06263a;
  --glow-a: rgba(18, 196, 214, 0.20);
  --glow-b: rgba(60, 112, 204, 0.16);
}

.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient span {
  position: absolute;
  width: 62vmax; aspect-ratio: 1; border-radius: 50%;
  filter: blur(110px);
  transition: background-color 1.6s var(--ease);
}
.ambient span:first-child { top: -22vmax; right: -18vmax; background-color: var(--glow-a); }
.ambient span:last-child { bottom: -26vmax; left: -20vmax; background-color: var(--glow-b); }
