:root {
  color-scheme: light;
  --ink: #17192c;
  --muted: #687089;
  --paper: #f5f7fb;
  --white: #ffffff;
  --violet: #5b5ce2;
  --violet-dark: #4246bd;
  --coral: #fa687a;
  --gold: #f4b85b;
  --green: #37a77a;
  --blue: #4d8df7;
  --border: rgba(26, 31, 58, 0.11);
  --shadow: 0 30px 80px rgba(31, 38, 76, 0.15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
  background: var(--paper);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(91, 92, 226, 0.08), transparent 28rem),
    var(--paper);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(100% - 40px, 1240px);
  min-height: 70px;
  margin: 12px auto 0;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 40px rgba(34, 38, 74, 0.08);
  backdrop-filter: blur(22px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy b { font-size: 1rem; }
.brand-copy small { margin-top: 0.28rem; color: #858ba0; font-size: 0.48rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }

.brand-mark {
  position: relative;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: conic-gradient(from 205deg, var(--violet), #8d67ed 38%, var(--coral) 38% 67%, var(--gold) 67%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52), 0 9px 22px rgba(91, 92, 226, 0.24);
}

.brand-mark span {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  margin-left: auto;
}

.site-nav a {
  color: #554e5e;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover, .site-nav a:focus-visible { color: var(--violet); }

.header-action {
  padding: 0.64rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  width: min(100% - 40px, 1240px);
  min-height: 760px;
  margin: 0 auto;
  padding: 6.5rem 0 7.5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--violet-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span { width: 26px; height: 1px; background: var(--violet); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 680px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.55rem, 6.6vw, 6.3rem);
  font-weight: 780;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

h1 em {
  display: block;
  color: var(--violet);
  background: linear-gradient(100deg, var(--violet) 10%, #9868ea 52%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
  font-weight: inherit;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  color: white;
  background: var(--violet);
  box-shadow: 0 12px 28px rgba(101, 86, 217, 0.23);
}

.button-primary:hover { background: var(--violet-dark); box-shadow: 0 15px 32px rgba(101, 86, 217, 0.28); }
.button-quiet { border-color: var(--border); background: rgba(255, 255, 255, 0.55); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  margin: 2.1rem 0 0;
  padding: 0;
  color: #625b6b;
  font-size: 0.78rem;
  font-weight: 650;
  list-style: none;
}

.hero-facts span { color: var(--green); }

.memory-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 40px;
  background:
    radial-gradient(circle at 78% 24%, rgba(250, 104, 122, 0.18), transparent 31%),
    radial-gradient(circle at 18% 78%, rgba(91, 92, 226, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(234, 237, 248, 0.76));
  box-shadow: 0 38px 100px rgba(36, 41, 81, 0.16), inset 0 1px 0 white;
}

.stage-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.44;
  background-image: linear-gradient(rgba(68, 73, 125, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(68, 73, 125, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom right, black, transparent 82%);
}

.system-chip {
  position: absolute;
  z-index: 8;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 30px rgba(34, 38, 74, 0.08);
  backdrop-filter: blur(16px);
}

.system-chip i { width: 9px; height: 9px; border-radius: 50%; background: #35b981; box-shadow: 0 0 0 5px rgba(53, 185, 129, 0.13), 0 0 18px rgba(53, 185, 129, 0.55); }
.system-chip small, .system-chip b { display: block; line-height: 1.2; }
.system-chip small { color: var(--muted); font-size: 0.53rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.system-chip b { margin-top: 0.12rem; font-size: 0.72rem; }
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(4px); }
.glow-one { inset: 11% 3% 14% 14%; background: radial-gradient(circle, rgba(101, 86, 217, 0.19), transparent 68%); }
.glow-two { right: 8%; bottom: 1%; width: 240px; height: 240px; background: rgba(239, 125, 123, 0.13); }

.photo {
  position: absolute;
  width: min(72%, 350px);
  padding: 13px 13px 38px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.photo-back { left: 14%; top: 15%; transform: rotate(-7deg); }
.photo-front { right: 7%; top: 27%; transform: rotate(5deg); }
.photo-front span { position: absolute; bottom: 10px; left: 18px; font-family: Georgia, serif; font-size: 0.9rem; font-style: italic; }
.photo-scene { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 4px; }
.scene-mountain { background: linear-gradient(#b5d7df 0 50%, #7ea071 50%); }
.scene-mountain::before, .scene-mountain::after { content: ""; position: absolute; bottom: 30%; width: 65%; height: 52%; background: #61715c; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.scene-mountain::before { left: -7%; }
.scene-mountain::after { right: -17%; bottom: 25%; background: #7c8d6d; }
.scene-mountain i { position: absolute; z-index: 2; right: 15%; top: 14%; width: 40px; height: 40px; border-radius: 50%; background: #f3c26c; }
.scene-sunset { background: linear-gradient(#e9b49f 0 53%, #536e69 53%); }
.scene-sunset::before { content: ""; position: absolute; top: 24%; left: 56%; width: 72px; height: 72px; border-radius: 50%; background: #f5ce7a; }
.scene-sunset::after { content: ""; position: absolute; left: -8%; bottom: 22%; width: 116%; height: 42%; background: #344c4b; clip-path: polygon(0 48%, 23% 34%, 35% 52%, 58% 13%, 72% 44%, 100% 28%, 100% 100%, 0 100%); }

.floating-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 205px;
  padding: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  background: rgba(255, 254, 253, 0.88);
  box-shadow: 0 18px 45px rgba(58, 46, 72, 0.14);
  backdrop-filter: blur(12px);
}

.floating-card b, .floating-card small { display: block; }
.floating-card b { font-size: 0.83rem; }
.floating-card small { color: var(--muted); font-size: 0.66rem; }
.card-cloud { right: 3%; top: 8%; }
.card-home { left: 3%; bottom: 7%; }

.floating-note {
  position: absolute;
  right: 2%;
  bottom: 12%;
  z-index: 6;
  padding: 0.65rem 0.85rem;
  border-radius: 7px;
  color: #6a5430;
  background: #fff0b9;
  box-shadow: 0 12px 25px rgba(63, 48, 37, 0.12);
  font-family: Georgia, serif;
  font-size: 0.78rem;
  font-style: italic;
  transform: rotate(-5deg);
}

.floating-note span { color: var(--coral); }

.project-symbol {
  display: grid;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.photo-symbol { background: linear-gradient(135deg, #ff2d7a, #6d5dfc); }
.fotoapp-logo svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home { background: var(--coral); }
.cloud { background: var(--blue); }
.trip { background: var(--green); }
.takt-wordmark {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  color: #1b1724;
  background: linear-gradient(135deg, #f1edff, #fff0f5);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.07em;
  box-shadow: inset 0 0 0 1px rgba(103, 82, 217, 0.12), 0 8px 20px rgba(70, 54, 116, 0.1);
}

.takt-wordmark > span { color: #ee4f83; }
.takt-wordmark-card { min-width: 76px; height: 43px; padding: 0 12px; border-radius: 14px; font-size: 1.08rem; }
.takt-wordmark-map { flex: 0 0 51px; width: 51px; height: 38px; border-radius: 12px; font-size: 0.72rem; }
.section { padding: 7.5rem max(20px, calc((100% - 1240px) / 2)); }
.projects { background: linear-gradient(180deg, #eef1f8 0%, #f7f8fb 100%); }

.section-heading {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: end;
  gap: 4rem;
  margin-bottom: 3rem;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-heading > p { max-width: 500px; margin: 0; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }

.project-card {
  display: flex;
  grid-column: span 2;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  padding: 1.45rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(42, 47, 86, 0.06);
  backdrop-filter: blur(16px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card:hover { border-color: rgba(91, 92, 226, 0.27); box-shadow: 0 24px 60px rgba(42, 47, 86, 0.12); transform: translateY(-6px); }

.project-card:nth-child(4) { grid-column: 2 / span 2; }
.project-card:nth-child(5) { grid-column: 4 / span 2; }
.project-featured { color: white; background: radial-gradient(circle at 92% 8%, rgba(125, 113, 255, 0.38), transparent 34%), linear-gradient(145deg, #171a31, #252943); }
.project-featured::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 190px; height: 190px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.025), 0 0 0 68px rgba(255, 255, 255, 0.018); }
.project-featured > * { position: relative; z-index: 1; }
.project-topline { display: flex; align-items: center; justify-content: space-between; }
.status { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.34rem 0.55rem; border-radius: 999px; color: #795918; background: #fff1cc; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #ce9222; }
.status-live { color: #c6f3df; background: rgba(85, 180, 132, 0.18); }
.status-live i { background: #67c596; }
.project-kicker { margin-bottom: 0.35rem; color: var(--violet); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.project-featured .project-kicker { color: #bdb3ff; }
.project-card h3 { margin-bottom: 0.65rem; font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.035em; }
.project-card p:not(.project-kicker) { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }
.project-featured p:not(.project-kicker) { color: #d4cfdc; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); color: #77707e; font-size: 0.68rem; }
.project-featured .project-meta { border-color: rgba(255, 255, 255, 0.13); color: #c5becb; }
.project-meta > span:last-child { color: var(--violet); font-weight: 750; }
.project-featured .project-meta > span:last-child { color: #d1caff; }
.project-meta-live { overflow: visible; }
.project-link { display: inline-flex; align-items: center; gap: 0.42rem; padding: 0.5rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; color: white; background: rgba(255, 255, 255, 0.1); font-weight: 800; text-decoration: none; transition: background 160ms ease, transform 160ms ease; }
.project-link:hover { background: var(--violet); transform: translateX(2px); }
.project-link span { color: inherit !important; font-size: 0.8rem; }

.connection-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(450px, 1.15fr);
  align-items: center;
  gap: clamp(4rem, 8vw, 8rem);
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(91, 92, 226, 0.25), transparent 27%),
    radial-gradient(circle at 12% 90%, rgba(77, 141, 247, 0.14), transparent 31%),
    #111427;
}

.connection-section .eyebrow { color: #a9aaff; }
.connection-copy > p:not(.eyebrow) { max-width: 590px; margin: 1.5rem 0 2.2rem; color: #aeb3c7; }
.principle-list { display: grid; gap: 0.65rem; }
.principle-list > div { display: flex; align-items: flex-start; gap: 0.85rem; padding-top: 0.8rem; border-top: 1px solid rgba(255, 255, 255, 0.11); }
.principle-list span { color: #9c9dff; font-size: 0.7rem; font-weight: 850; }
.principle-list p { margin: 0; color: #aeb3c7; font-size: 0.84rem; }
.principle-list b { color: white; }
.connection-map { position: relative; min-height: 560px; }
.map-orbit { position: absolute; left: 50%; top: 50%; border: 1px dashed rgba(173, 176, 255, 0.3); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 320px; height: 320px; }
.orbit-two { width: 480px; height: 480px; opacity: 0.55; }
.map-core, .map-node { position: absolute; z-index: 2; display: flex; align-items: center; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.08); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2); backdrop-filter: blur(18px); }
.map-core { left: 50%; top: 50%; flex-direction: column; justify-content: center; width: 190px; height: 190px; border-radius: 50%; transform: translate(-50%, -50%); }
.map-core b { margin-top: 0.6rem; }
.map-core small { color: #aeb3c7; }
.map-node { gap: 0.6rem; min-width: 165px; padding: 0.7rem; border-radius: 17px; }
.map-node .project-symbol { flex-basis: 38px; width: 38px; height: 38px; border-radius: 12px; }
.map-node b { font-size: 0.76rem; }
.map-node small { margin-left: auto; color: #aeb3c7; font-size: 0.57rem; }
.node-photo { left: 0; top: 13%; }
.node-home { right: 1%; top: 6%; }
.node-trip { right: 0; bottom: 11%; }
.node-calendar { left: 2%; bottom: 7%; }

.vision {
  text-align: center;
  color: white;
  background: radial-gradient(circle at 10% 0, rgba(250, 104, 122, 0.38), transparent 30%), radial-gradient(circle at 92% 100%, rgba(91, 92, 226, 0.65), transparent 36%), linear-gradient(135deg, #3f43b8, #692f8d);
}

.vision .eyebrow { justify-content: center; color: #bcb2ff; }
.vision h2 { max-width: 930px; margin-inline: auto; }
.vision > p:not(.eyebrow) { max-width: 680px; margin: 1.6rem auto 2rem; color: #d1cbd7; }
.button-light { color: var(--ink); background: white; }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2.5rem;
  width: min(100% - 40px, 1240px);
  min-height: 120px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer p { margin: 0; }
.footer-note { text-align: right; }
:focus-visible { outline: 3px solid rgba(101, 86, 217, 0.38); outline-offset: 4px; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 0.9fr; gap: 2rem; }
  .project-card { grid-column: span 3; }
  .project-card:nth-child(4), .project-card:nth-child(5) { grid-column: span 3; }
  .project-card:last-child { grid-column: 2 / span 4; }
  .connection-section { grid-template-columns: 1fr; }
  .connection-map { width: min(100%, 620px); margin: 0 auto; }
}

@media (max-width: 760px) {
  .site-header { top: 8px; width: min(100% - 28px, 1240px); min-height: 64px; margin-top: 8px; }
  .site-nav { display: none; }
  .header-action { margin-left: auto; }
  .hero { grid-template-columns: 1fr; width: min(100% - 32px, 1240px); padding: 4.2rem 0 5rem; }
  h1 { font-size: clamp(3.6rem, 18vw, 5.3rem); }
  .memory-stage { min-height: 500px; }
  .section { padding: 5.2rem 18px; }
  .section-heading { grid-template-columns: 1fr; gap: 1.3rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-card:nth-child(4), .project-card:nth-child(5), .project-card:last-child { grid-column: auto; min-height: 290px; }
  .site-footer { grid-template-columns: 1fr; gap: 0.65rem; padding: 2rem 0; }
  .footer-note { text-align: left; }
}

@media (max-width: 540px) {
  .brand-copy small { display: none; }
  .header-action { padding: 0.5rem 0.75rem; font-size: 0.72rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-facts { align-items: flex-start; flex-direction: column; }
  .memory-stage { min-height: 430px; transform: scale(0.9); transform-origin: top center; margin-bottom: -40px; }
  .system-chip { top: 0.7rem; left: 0.7rem; }
  .photo { width: 77%; }
  .photo-back { left: 8%; }
  .photo-front { right: 1%; }
  .floating-card { min-width: 185px; }
  .card-cloud { right: -4%; }
  .card-home { left: -5%; }
  .connection-map { min-height: 600px; }
  .orbit-one { width: 250px; height: 250px; }
  .orbit-two { width: 340px; height: 340px; }
  .map-core { width: 155px; height: 155px; }
  .map-node { min-width: 150px; }
  .node-photo { top: 6%; left: 0; }
  .node-home { top: 24%; right: -3%; }
  .node-trip { right: 0; bottom: 12%; }
  .node-calendar { left: 0; bottom: 27%; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
