/* ============================================================
   TÖRÜ — shared design system
   Pure-black editorial. Serif display + grotesque UI.
   ============================================================ */

@font-face {
  font-family: "Noto Sans Old Turkic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/notosansoldturkic/v19/yMJNMJVya43H0SUF_WmcGEQVqoEMKDKbsE2R.ttf") format("truetype");
}

:root {
  --black:      #000000;
  --ink:        #050506;
  --panel:      #0b0b0d;
  --platinum:   #ededec;   /* primary text */
  --silver:     #b7b9bc;   /* secondary / metallic text */
  --mute:       #74767a;   /* muted labels */
  --faint:      #3c3d40;   /* very low */
  --line:       rgba(255, 255, 255, 0.09);
  --line-soft:  rgba(255, 255, 255, 0.05);
  --steel-0:    #6b6f74;
  --steel-1:    #dfe2e6;
  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --pad-x: clamp(1.25rem, 5vw, 3.25rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

html, body { background-color: var(--black); }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--platinum);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* extremely fine grain + neutral vignette, no warmth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
}

::selection { background: rgba(223, 226, 230, 0.16); color: #fff; }

a { color: inherit; text-decoration: none; }

/* avoid a visible font swap: hide until the display fonts are ready,
   then fade in. Falls back to fully visible when JS is off. */
body { transition: opacity 0.5s ease; }
.js body { opacity: 0; }
.js body.fonts-ready { opacity: 1; }

/* ----------------------------------------------------------------
   Flowing runic field — a faint Old Turkic inscription drifting
   behind everything, like weathered stone. Sits above the black,
   below all content.
   ---------------------------------------------------------------- */
.runes {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.runes-track {
  position: absolute;
  top: -6%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 1.3vh, 0.85rem);
  font-family: "Noto Sans Old Turkic", var(--serif);
  font-size: clamp(11px, 1.15vw, 13px);
  line-height: 1.5;
  letter-spacing: 0.28em;
  white-space: nowrap;
  text-align: center;
  color: rgba(198, 204, 210, 0.07);
  user-select: none;
  will-change: transform;
  backface-visibility: hidden;
}
.rune-line { display: block; }
.runes .r {
  display: inline-block;
  transition: transform 0.22s ease-out, color 0.22s ease-out;
}

/* ----------------------------------------------------------------
   Header / navigation
   ---------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 80;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.7rem, 1.8vw, 1.05rem) var(--pad-x);
}
/* full-width black bar behind the centred header content */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--black);
  border-bottom: 1px solid var(--line-soft);
  z-index: -1;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--platinum);
  user-select: none;
}
.wordmark .glyph { height: 1.4em; width: auto; display: block; overflow: visible; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 2.6vw, 2.4rem);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 2.6vw, 2.4rem);
  list-style: none;
}
.nav-links a {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-links a:hover { color: var(--platinum); transform: scale(1.08); }
.nav-links a[aria-current="page"] {
  color: var(--platinum);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

/* language toggle */
.lang {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--mute);
  user-select: none;
}
.lang button {
  background: none;
  border: none;
  color: var(--mute);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0.2rem 0.15rem;
  transition: color 0.35s var(--ease);
}
.lang button:hover { color: var(--silver); }
.lang button[aria-pressed="true"] { color: var(--platinum); }
.lang .sep { color: var(--faint); margin: 0 0.35rem; }

/* mobile menu button — our logo */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  color: var(--silver);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.menu-toggle:hover { color: var(--platinum); }
.menu-toggle svg { height: 1.5rem; width: auto; display: block; transition: transform 0.5s var(--ease); }
/* press to open: the logo-button turns a quarter */
body.m-open .menu-toggle { color: var(--platinum); }
body.m-open .menu-toggle svg { transform: rotate(90deg); }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 20;
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 2.6rem;
  padding: clamp(0.8rem, 1.8vw, 1.15rem) var(--pad-x)
           calc(clamp(0.8rem, 1.8vw, 1.15rem) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  background: var(--black);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--mute);
  text-align: center;
}
.site-footer a { color: var(--silver); transition: color 0.4s var(--ease); }
.site-footer a:hover { color: var(--platinum); }

.foot-inner {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.6rem;
  flex-wrap: wrap;
}
.foot-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--silver);
  white-space: nowrap;
}
.foot-link:hover { color: var(--platinum); }
.foot-ic { width: 15px; height: 15px; flex: none; display: block; }
.foot-copy {
  flex: 1 1 auto;
  text-align: center;
  color: var(--mute);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .foot-inner { justify-content: center; gap: 0.5rem 1.2rem; }
  .foot-copy { flex-basis: 100%; order: 3; }
}

.ig-prefix { color: var(--mute); }

/* ----------------------------------------------------------------
   HOME / hero
   ---------------------------------------------------------------- */
main { flex: 1; display: flex; flex-direction: column; }

.hero {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1rem, 3vh, 2rem) var(--pad-x) clamp(4rem, 11vh, 8rem);
  gap: clamp(1.4rem, 3.2vh, 2.3rem);
}

.mark {
  width: clamp(104px, 21vw, 150px);
  height: auto;
  overflow: visible;
  cursor: pointer;
  transition: transform 0.95s cubic-bezier(0.25, 1, 0.5, 1), filter 0.95s cubic-bezier(0.25, 1, 0.5, 1);
}
/* the only reaction: a slow, dignified swell + soft bloom on hover */
.mark:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(222, 227, 232, 0.38));
}

/* centred wordmark + divider, echoing the medallion */
.hero-id {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.7rem, 2vh, 1.05rem);
}
.brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 8vw, 4.3rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  line-height: 1;
  color: var(--platinum);
}
.rule {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: clamp(150px, 26vw, 248px);
}
.rule .ln-l,
.rule .ln-r { flex: 1; height: 1px; }
.rule .ln-l { background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.30)); }
.rule .ln-r { background: linear-gradient(to left,  rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.30)); }
.rule .dia {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--silver);
  transform: rotate(45deg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.6vh, 1.5rem);
}

.tagline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.15rem, 4.4vw, 2rem);
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--platinum);
  white-space: nowrap;
}
.tagline em { font-style: italic; color: var(--silver); }

.subline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.82rem, 2.3vw, 0.98rem);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--mute);
  max-width: 46ch;
}

/* ----------------------------------------------------------------
   The mark — the TÖRÜ emblem, revealed once, then still until hovered.
   ---------------------------------------------------------------- */
.mark .mark-reveal {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: m-reveal 1.5s var(--ease) 0.2s forwards;
}

/* one full, eased 360° turn — long rest as the logo, brief pauses between */
.mark .spin {
  transform-box: view-box;
  transform-origin: center;
  animation: m-turn 12s var(--ease) 2s infinite;
}
/* the morph happens DURING the first and last quarter-turns, quickly */
.mark .layer.full   { animation: m-full   12s var(--ease) 2s infinite; }
.mark .layer.simple { opacity: 0; animation: m-simple 12s var(--ease) 2s infinite; }

@keyframes m-reveal {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes m-turn {
  0%, 14%   { transform: rotate(0deg); }
  26%, 36%  { transform: rotate(90deg); }
  48%, 58%  { transform: rotate(180deg); }
  70%, 80%  { transform: rotate(270deg); }
  100%      { transform: rotate(360deg); }
}
@keyframes m-full {
  0%, 15%   { opacity: 1; }
  21%, 80%  { opacity: 0; }
  100%      { opacity: 1; }
}
@keyframes m-simple {
  0%, 15%   { opacity: 0; }
  21%, 80%  { opacity: 1; }
  100%      { opacity: 0; }
}

/* hover: wherever it is in the turn, settle back into the full upright logo */
.mark:hover .spin {
  animation: none;
  transform: rotate(0deg);
  transition: transform 0.95s cubic-bezier(0.25, 1, 0.5, 1);
}
.mark:hover .layer.full {
  animation: none;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}
.mark:hover .layer.simple {
  animation: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

/* gentle text entrance (kept subtle, minimal fade) */
.rise { opacity: 0; transform: translateY(8px); animation: rise 1s var(--ease) forwards; }
.d1 { animation-delay: 0.55s; }
.d2 { animation-delay: 0.85s; }
.d3 { animation-delay: 1.1s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ----------------------------------------------------------------
   Custom cursor — a precise dot with a softly trailing ring.
   Enabled only on fine-pointer devices (toggled by JS).
   ---------------------------------------------------------------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #ffffff;
}
.cursor-ring {
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              margin 0.3s var(--ease), border-color 0.3s var(--ease),
              opacity 0.45s var(--ease);
}
.cursor-ring.is-active {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-color: rgba(255, 255, 255, 0.9);
}
body.cursor-on .cursor-dot { opacity: 1; }
body.cursor-on .cursor-ring { opacity: 1; }
body.cursor-on,
body.cursor-on a,
body.cursor-on button { cursor: none; }

/* ----------------------------------------------------------------
   Content pages
   ---------------------------------------------------------------- */
.page {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 6rem) var(--pad-x) clamp(3rem, 9vh, 6.5rem);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: clamp(1.2rem, 3vh, 2rem);
}

.page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--platinum);
  max-width: 16ch;
}

.lead {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.3rem, 3.6vw, 1.85rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--silver);
  max-width: 30ch;
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
}

.body-copy {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.96rem, 2.2vw, 1.1rem);
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--silver);
  max-width: 56ch;
  margin-top: clamp(1.6rem, 4vh, 2.4rem);
}
.body-copy + .body-copy { margin-top: 1.5rem; }

/* A measured editorial rhythm for the definition pages: compact opening,
   full-width pillars, then a quieter right-set inscription. */
.definition {
  max-width: 1100px;
  padding-top: clamp(3.25rem, 9vh, 6.75rem);
  padding-bottom: clamp(4rem, 10vh, 7.5rem);
}

.definition > .eyebrow,
.definition > h1,
.definition > .lead,
.definition > .body-copy,
.definition > .motto {
  margin-left: clamp(0rem, 2vw, 1.4rem);
}

.definition .pillars {
  margin-top: clamp(3rem, 7vh, 4.75rem);
}

.definition .divider {
  margin: clamp(3.25rem, 7vh, 5rem) 0 0;
}

.definition .motto {
  margin-top: clamp(2.1rem, 4.5vh, 3.25rem);
}

.definition .inscription {
  width: min(100%, 720px);
  margin-top: clamp(3.5rem, 7vh, 5rem);
  margin-left: clamp(0rem, 2vw, 1.4rem);
}

.definition strong,
.inscription strong {
  color: var(--platinum);
  font-weight: 500;
}

.runic-inline {
  font-family: "Noto Sans Old Turkic", sans-serif;
  color: var(--platinum);
  white-space: nowrap;
}

.inscription {
  max-width: 60ch;
  margin-top: clamp(2.4rem, 6vh, 4rem);
  padding: clamp(1.5rem, 4vw, 2.2rem) 0 clamp(1.5rem, 4vw, 2.2rem) clamp(1.2rem, 3vw, 2rem);
  border-left: 1px solid rgba(242, 244, 246, 0.32);
}

.inscription blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3.2vw, 1.65rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--platinum);
}

.inscription .translation {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: clamp(0.86rem, 2vw, 0.98rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--silver);
}

.inscription cite {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

.source-notes {
  max-width: 60ch;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.source-notes a {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 200, 204, 0.28);
}

.source-notes a:hover { color: var(--platinum); }

.divider {
  width: 100%;
  height: 1px;
  background: var(--line-soft);
  margin: clamp(2.6rem, 7vh, 4.4rem) 0;
}

/* three pillars: kök / erdem / yol */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: clamp(2rem, 5vh, 3rem);
}
.pillar {
  position: relative;
  background: var(--black);
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.2rem, 3vw, 2rem);
  text-align: center;
  cursor: default;
}
/* a small, elegant window that rises in on hover */
.pill-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translate(-50%, 12px) scale(0.94);
  transform-origin: center bottom;
  z-index: 30;
  width: max-content;
  max-width: 18rem;
  padding: 0.72rem 1.15rem;
  background: rgba(9, 9, 11, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--platinum);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.pill-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -5px 0 0 -4.5px;
  background: rgba(9, 9, 11, 0.97);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transform: rotate(45deg);
}
.pillar:hover .pill-tip,
.pillar:focus-within .pill-tip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.pillar { transition: background 0.5s var(--ease); }
.pillar:hover { background: #070708; }
.pillar .word {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  letter-spacing: 0.08em;
  color: var(--platinum);
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), color 0.5s var(--ease);
}
.pillar:hover .word,
.pillar:focus-within .word { transform: translateY(-3px); color: #fff; }
.pillar .gloss {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color 0.5s var(--ease);
}
.pillar:hover .gloss,
.pillar:focus-within .gloss { color: var(--silver); }

.motto {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--platinum);
  margin-top: clamp(2.4rem, 6vh, 4rem);
}
.motto span { display: block; }
.motto span + span { color: var(--silver); }

/* definition list for press / contact */
.facts {
  margin-top: clamp(2rem, 5vh, 3rem);
  display: grid;
  gap: 0;
}
.fact {
  display: grid;
  grid-template-columns: minmax(140px, 0.5fr) 1fr;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line-soft);
}
.fact:last-child { border-bottom: 1px solid var(--line-soft); }
.fact dt {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 0.2rem;
}
.fact dd {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  letter-spacing: 0.02em;
  color: var(--platinum);
}
.fact dd a { border-bottom: 1px solid transparent; transition: border-color 0.4s var(--ease); }
.fact dd a:hover { border-bottom-color: rgba(255,255,255,0.35); }

.contact-large {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 6vw, 3rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin-top: clamp(2rem, 5vh, 3rem);
}

/* Contact is deliberately asymmetric on wide screens: statement on the
   left, direct paths on the right. It collapses back to a single calm flow. */
.contact-page {
  max-width: 1080px;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1.25fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 7rem);
  padding-top: clamp(4rem, 12vh, 8rem);
  padding-bottom: clamp(4rem, 12vh, 8rem);
}

.contact-page .contact-large {
  width: 100%;
  margin-top: 0;
  padding-bottom: 0.25rem;
}

.contact-page .contact-large a {
  display: block;
  padding: 0.72rem 0;
}

.contact-page .contact-large .row + .row { margin-top: 0; }
.contact-large a {
  color: var(--platinum);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.4s var(--ease);
}
.contact-large a:hover { border-bottom-color: rgba(255,255,255,0.55); }
.contact-large .row { display: block; }
.contact-large .row + .row { margin-top: 0.8rem; }

/* ----------------------------------------------------------------
   Mobile menu — full-screen overlay opened from the logo button
   ---------------------------------------------------------------- */
.m-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 5vh, 3.2rem);
  background: rgba(0, 0, 0, 0.985);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
body.m-open .m-menu { opacity: 1; pointer-events: auto; }
body.m-open { overflow: hidden; }
.m-menu .menu-mark { width: clamp(92px, 32vw, 140px); cursor: default; }
/* the menu logo stays still — only the home hero turns */
.menu-mark .spin { animation: none; transform: none; }
.menu-mark .mark-reveal { animation: none; opacity: 1; transform: none; }
.menu-mark .layer.full { animation: none; opacity: 1; }
.menu-mark .layer.simple { animation: none; opacity: 0; }
.m-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3.5vh, 1.9rem);
}
.m-links a {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 7vw, 2.3rem);
  letter-spacing: 0.06em;
  color: var(--silver);
  transition: color 0.3s var(--ease);
}
.m-links a:hover,
.m-links a:active { color: var(--platinum); }
.m-lang { font-size: 0.82rem; letter-spacing: 0.16em; }
.m-ig { color: var(--silver); transition: color 0.3s var(--ease); }
.m-ig:hover { color: var(--platinum); }
.m-ig svg { width: 26px; height: 26px; display: block; }

/* ----------------------------------------------------------------
   Cookie notice — small, premium
   ---------------------------------------------------------------- */
.cookie {
  position: fixed;
  left: 50%;
  bottom: clamp(4.75rem, 8vh, 5.75rem);
  z-index: 70;
  transform: translate(-50%, 0.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  width: min(calc(100vw - 2rem), 440px);
  padding: 0.58rem 0.58rem 0.58rem 1rem;
  background: rgba(6, 6, 7, 0.94);
  border: 1px solid rgba(237, 237, 236, 0.1);
  border-radius: 2px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--sans);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.025em;
  color: var(--silver);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.cookie.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cookie-text { min-width: 0; }
.cookie-ok {
  background: transparent;
  border: 1px solid rgba(237, 237, 236, 0.13);
  border-radius: 1px;
  color: var(--platinum);
  font: inherit;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.46rem 0.72rem;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.cookie-ok:hover { background: rgba(255, 255, 255, 0.075); border-color: rgba(237, 237, 236, 0.34); color: #fff; }

/* ----------------------------------------------------------------
   Touch glow — a soft bloom where the screen is tapped (mobile)
   ---------------------------------------------------------------- */
.touch-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 222, 230, 0.55) 0%, rgba(214, 222, 230, 0) 70%);
  pointer-events: none;
  z-index: 6;
  transform: scale(0.3);
  opacity: 0.9;
  animation: touch-pop 0.7s var(--ease) forwards;
}
@keyframes touch-pop {
  to { transform: scale(6); opacity: 0; }
}

@media (max-width: 480px) {
  .cookie {
    bottom: 1rem;
    width: calc(100vw - 1.5rem);
    max-width: 380px;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.65rem;
    padding: 0.8rem;
  }
  .cookie-ok { width: 100%; }
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
body.m-open .cookie { opacity: 0; pointer-events: none; }

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .menu-toggle svg { height: 1.95rem; }      /* slightly bigger logo-button */
  .nav { display: none; }
  .m-menu { display: flex; }
  /* a touch thicker header; "TÖRÜ" wordmark on the left (text only),
     the logo-button on the right */
  .site-header { padding-top: clamp(1.1rem, 4.5vw, 1.5rem); padding-bottom: clamp(1.1rem, 4.5vw, 1.5rem); }
  .wordmark { font-size: 1.15rem; }
  .wordmark .glyph { display: none; }
  .site-footer { display: none; }
  .definition {
    padding-top: clamp(2.5rem, 7vh, 4rem);
    padding-bottom: clamp(3.5rem, 9vh, 5rem);
  }
  .definition > .eyebrow,
  .definition > h1,
  .definition > .lead,
  .definition > .body-copy,
  .definition > .motto { margin-left: 0; }
  .definition .inscription {
    width: 100%;
    margin-left: 0;
    padding-left: 1.1rem;
  }
  .contact-page {
    display: block;
    padding-top: clamp(2.5rem, 7vh, 4rem);
    padding-bottom: clamp(3.5rem, 9vh, 5rem);
  }
  .contact-page .contact-large {
    margin-top: clamp(2.4rem, 7vh, 4rem);
  }
}

@media (max-width: 540px) {
  .pillars { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: 0.4rem; }
  .fact dt { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mark .mark-reveal { opacity: 1; transform: none; animation: none; }
  .mark .spin { animation: none; transform: none; }
  .mark .layer.full { animation: none; opacity: 1; }
  .mark .layer.simple { animation: none; opacity: 0; }
  .mark { transition: none; }
  .rise { opacity: 1; transform: none; animation: none; }
  .runes-track { animation: none; }
  html { scroll-behavior: auto; }
}
