﻿@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --latte-base: #eff1f5;
  --latte-mantle: #e6e9ef;
  --latte-crust: #dce0e8;
  --latte-surface: #ccd0da;
  --latte-text: #4c4f69;
  --latte-subtext: #6c6f85;
  --latte-overlay: #8c8fa1;
  --teal: #179299;
  --green: #40a02b;
  --peach: #fe640b;
  --yellow: #df8e1d;
  --maroon: #e64553;
  --rosewater: #dc8a78;
  --accent: var(--teal);
  --accent-secondary: var(--green);
  --accent-warm: var(--peach);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.84);
  --shadow: 0 24px 70px rgba(76, 79, 105, 0.12), 0 4px 16px rgba(76, 79, 105, 0.06);
  --shadow-soft: 0 14px 38px rgba(76, 79, 105, 0.1);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: 1180px;
  --sans: 'Manrope', 'IBM Plex Sans Thai', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--latte-text);
  background:
    radial-gradient(circle at 8% 8%, rgba(23, 146, 153, 0.12), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(254, 100, 11, 0.08), transparent 28rem),
    radial-gradient(circle at 78% 72%, rgba(64, 160, 43, 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, var(--latte-base) 40%, var(--latte-mantle) 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: '';
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(23, 146, 153, 0.46);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.glass {
  position: relative;
  background: linear-gradient(145deg, var(--glass-strong), rgba(255, 255, 255, 0.46));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.glass::after {
  position: absolute;
  inset: 1px;
  z-index: 0;
  content: '';
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: inherit;
  mask-image: linear-gradient(135deg, #000 0%, transparent 38%);
}

.glass > * {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 18px;
  right: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
}

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.brand,
.main-nav,
.language-switcher {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-block;
  flex: 0 0 auto;
  min-width: 1.08em;
  padding: 0 0.08em 0.04em;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand-dot {
  width: 6px;
  height: 6px;
  margin-left: -4px;
  background: var(--accent-warm);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(254, 100, 11, 0.09);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(76, 79, 105, 0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.main-nav a,
.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 17px;
  color: var(--latte-subtext);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.language-switcher a:hover {
  color: var(--latte-text);
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
}

.language-switcher {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  padding: 5px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(76, 79, 105, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.language-switcher a {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.72rem;
}

.language-switcher .active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

main {
  padding-top: 150px;
}

.journey {
  position: relative;
  padding-bottom: 32px;
}

.journey::before {
  position: absolute;
  top: 160px;
  bottom: 90px;
  left: 50%;
  z-index: 0;
  width: 2px;
  content: '';
  background: linear-gradient(180deg, rgba(23, 146, 153, 0), rgba(23, 146, 153, 0.72) 12%, rgba(64, 160, 43, 0.56) 52%, rgba(254, 100, 11, 0.48) 78%, rgba(254, 100, 11, 0));
  transform: translateX(-50%);
}

.journey::after {
  position: absolute;
  top: 160px;
  bottom: 90px;
  left: 50%;
  z-index: 0;
  width: 70px;
  content: '';
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(23, 146, 153, 0.08), transparent 66%);
  transform: translateX(-50%);
}

.journey-section {
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}

.journey-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(23, 146, 153, 0.11), 0 6px 18px rgba(23, 146, 153, 0.2);
  transform: translate(-50%, -50%);
}

.journey-section:nth-child(3n) .journey-dot {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
}

.hero {
  display: grid;
  grid-template-columns: minmax(310px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(54px, 8vw, 110px);
  align-items: center;
  min-height: 640px;
  padding: 26px 50px 70px;
}

.portrait-wrap {
  position: relative;
  isolation: isolate;
  width: min(100%, 390px);
  aspect-ratio: 0.68;
  margin-inline: auto;
  padding: 7px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 255, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 46% 46% 34% 34% / 26% 26% 18% 18%;
  box-shadow:
    0 26px 64px rgba(76, 79, 105, 0.13),
    -5px 7px 26px rgba(23, 146, 153, 0.1),
    6px 8px 28px rgba(254, 100, 11, 0.07),
    inset 0 1px 1px rgba(255, 255, 255, 0.92);
}

.portrait-wrap::before {
  position: absolute;
  inset: -3px;
  z-index: -1;
  content: '';
  background: linear-gradient(145deg, rgba(23, 146, 153, 0.4), rgba(255, 255, 255, 0.72) 42%, rgba(254, 100, 11, 0.28) 76%, rgba(64, 160, 43, 0.22));
  border-radius: inherit;
  filter: blur(0.5px);
  opacity: 0.72;
}

.portrait-wrap::after {
  position: absolute;
  inset: -15px;
  z-index: -2;
  content: '';
  pointer-events: none;
  background: linear-gradient(145deg, rgba(23, 146, 153, 0.34), transparent 44%, rgba(254, 100, 11, 0.26));
  border-radius: inherit;
  filter: blur(18px);
  opacity: 0.3;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 32%;
  border-radius: 45% 45% 33% 33% / 25% 25% 17% 17%;
  filter: saturate(0.92) contrast(1.02);
}

.location-chip {
  position: absolute;
  right: -18px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--latte-text);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.location-chip svg {
  width: 22px;
  color: var(--accent);
}

.location-chip small,
.eyebrow,
.section-kicker {
  display: block;
  color: var(--latte-overlay);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.location-chip strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
}

.hero-copy {
  margin-left: clamp(56px, 4vw, 64px);
  padding-right: 0;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 14px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 146, 153, 0.16);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(23, 146, 153, 0.09);
  font-size: 0.78rem;
  font-weight: 700;
}

.role-pill::before {
  width: 7px;
  height: 7px;
  content: '';
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(23, 146, 153, 0.1);
}

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

h1 {
  margin-bottom: 20px;
  color: var(--latte-text);
  font-size: clamp(3.2rem, 5.3vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-role {
  margin-bottom: 24px;
  color: var(--latte-text);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 600;
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--latte-subtext);
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  line-height: 1.55;
}

.hero-lede strong {
  color: var(--accent);
  font-weight: 600;
}

.hero-actions,
.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  color: var(--latte-text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(76, 79, 105, 0.09);
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  border-color: rgba(23, 146, 153, 0.24);
  box-shadow: 0 14px 30px rgba(76, 79, 105, 0.14);
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-color: transparent;
}

.button svg {
  width: 19px;
  height: 19px;
}

.content-card {
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-xl);
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--accent);
}

.section-title {
  max-width: 780px;
  margin-bottom: 20px;
  color: var(--latte-text);
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.section-title .accent {
  color: var(--teal);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.about-copy p {
  max-width: 680px;
  color: var(--latte-subtext);
  font-size: 1rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.principles {
  display: grid;
  gap: 12px;
}

.principle {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(76, 79, 105, 0.06);
}

.principle-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--accent);
  background: rgba(23, 146, 153, 0.08);
  border: 1px solid rgba(23, 146, 153, 0.11);
  border-radius: 14px;
}

.principle:nth-child(2) .principle-icon {
  color: var(--green);
  background: rgba(64, 160, 43, 0.08);
}

.principle:nth-child(3) .principle-icon {
  color: var(--peach);
  background: rgba(254, 100, 11, 0.08);
}

.principle:nth-child(4) .principle-icon {
  color: var(--maroon);
  background: rgba(230, 69, 83, 0.08);
}

.principle svg {
  width: 22px;
  height: 22px;
}

.principle strong,
.principle span {
  display: block;
}

.principle strong {
  margin-bottom: 2px;
  font-size: 0.86rem;
}

.principle span {
  color: var(--latte-subtext);
  font-size: 0.74rem;
}

.stack-card {
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-xl);
}

.stack-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.stack-head .section-title {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.stack-head p {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--latte-subtext);
  font-size: 0.9rem;
  text-align: right;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.tech-item {
  display: grid;
  place-items: center;
  min-height: 138px;
  padding: 18px 10px;
  color: var(--latte-text);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 21px;
  box-shadow: 0 10px 28px rgba(76, 79, 105, 0.07);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tech-item:hover {
  box-shadow: 0 16px 34px rgba(76, 79, 105, 0.12);
  transform: translateY(-4px);
}

.tech-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-secondary));
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(23, 146, 153, 0.16);
  font-size: 1.08rem;
  font-weight: 800;
}

.tech-item:nth-child(2) .tech-mark { background: linear-gradient(145deg, var(--peach), var(--maroon)); }
.tech-item:nth-child(3) .tech-mark { background: linear-gradient(145deg, var(--yellow), var(--peach)); }
.tech-item:nth-child(4) .tech-mark { background: linear-gradient(145deg, #3a3d52, #0f111a); }
.tech-item:nth-child(5) .tech-mark { background: linear-gradient(145deg, var(--green), var(--teal)); }
.tech-item:nth-child(6) .tech-mark { background: linear-gradient(145deg, var(--teal), var(--green)); }

.project-card {
  overflow: hidden;
  padding: clamp(28px, 5vw, 60px);
  border-radius: var(--radius-xl);
}

.project-card::before {
  position: absolute;
  right: -160px;
  bottom: -240px;
  z-index: 0;
  width: 650px;
  height: 650px;
  content: '';
  background: radial-gradient(circle, rgba(23, 146, 153, 0.15), rgba(254, 100, 11, 0.07) 42%, transparent 68%);
  border-radius: 50%;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

.app-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.app-heading-link {
  width: max-content;
  max-width: 100%;
  border-radius: 18px;
}

.app-heading-link .app-icon,
.app-heading-link h2 {
  transition: color 220ms ease, transform 320ms cubic-bezier(0.16, 1.18, 0.3, 1), box-shadow 220ms ease;
}

.app-heading-link:hover .app-icon {
  box-shadow: 0 18px 34px rgba(23, 146, 153, 0.18);
  transform: translateY(-3px) rotate(-1deg) scale(1.025);
}

.app-heading-link:hover h2 {
  color: var(--accent);
  transform: translateX(3px);
}

.app-icon {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(76, 79, 105, 0.16);
}

.app-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.app-heading p {
  margin: 7px 0 0;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 700;
}

.project-description {
  margin-bottom: 22px;
  color: var(--latte-subtext);
}

.feature-list {
  display: grid;
  gap: 9px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--latte-subtext);
  font-size: 0.85rem;
}

.feature-list li::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.48em;
  content: '';
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(23, 146, 153, 0.08);
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 15px;
  color: #fff;
  background: #171821;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(30, 31, 43, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.store-button:hover {
  box-shadow: 0 14px 28px rgba(30, 31, 43, 0.22);
  transform: translateY(-2px);
}

.store-button svg {
  width: 23px;
  height: 23px;
}

.store-button small,
.store-button strong {
  display: block;
  line-height: 1.15;
}

.store-button small {
  font-size: 0.55rem;
  font-weight: 500;
}

.store-button strong {
  font-size: 0.8rem;
}

.phone-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  min-height: 520px;
  padding: 30px 16px 18px;
}

.phone-stage::after {
  position: absolute;
  right: 2%;
  bottom: 0;
  left: 2%;
  z-index: -1;
  height: 120px;
  content: '';
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(230, 233, 239, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 28px 45px rgba(76, 79, 105, 0.16), inset 0 2px 2px rgba(255, 255, 255, 0.9);
  transform: perspective(700px) rotateX(64deg);
}

.phone {
  position: relative;
  overflow: hidden;
  width: min(100%, 195px);
  aspect-ratio: 9 / 20;
  margin-inline: auto;
  background: var(--latte-surface);
  border: 6px solid rgba(255, 255, 255, 0.92);
  border-radius: 31px;
  box-shadow: 0 28px 48px rgba(76, 79, 105, 0.2), 0 0 0 1px rgba(76, 79, 105, 0.07);
  transform-origin: center bottom;
  transform: rotate(-5deg) translateY(16px);
}

.phone:nth-child(2) {
  z-index: 2;
  width: min(100%, 215px);
  transform: translateY(-12px) scale(1.12);
}

.phone:nth-child(3) {
  transform: rotate(5deg) translateY(18px);
}

.phone img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 25px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(34px, 5vw, 58px);
  border-radius: var(--radius-xl);
}

.contact-card .section-title {
  margin-bottom: 14px;
}

.contact-card p {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--latte-subtext);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 19px;
  box-shadow: 0 12px 30px rgba(76, 79, 105, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-link:hover {
  box-shadow: 0 16px 34px rgba(76, 79, 105, 0.13);
  transform: translateY(-2px);
}

.contact-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-secondary));
  border-radius: 15px;
  box-shadow: 0 10px 22px rgba(23, 146, 153, 0.2);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-copy strong,
.contact-copy span {
  display: block;
}

.contact-copy strong {
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.contact-copy span {
  color: var(--latte-subtext);
  font-size: 0.74rem;
}

.contact-arrow {
  width: 20px;
  height: 20px;
  margin-left: auto;
  color: var(--accent);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 44px;
  color: var(--latte-overlay);
  font-size: 0.72rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-mark {
  font-size: 1.35rem;
}

.back-to-top {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-secondary));
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(23, 146, 153, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

@keyframes nav-drop {
  0% { opacity: 0; transform: translateY(-22px); }
  72% { opacity: 1; transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes hero-copy-spring {
  0% { opacity: 0; transform: translate3d(42px, 16px, 0); }
  68% { opacity: 1; transform: translate3d(-5px, -2px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes portrait-frame-spring {
  0% { opacity: 0; transform: translate3d(-46px, 24px, 0) rotate(-2deg) scale(0.94); }
  68% { opacity: 1; transform: translate3d(4px, -3px, 0) rotate(0.25deg) scale(1.012); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0) scale(1); }
}

@keyframes portrait-image-reveal {
  0% { opacity: 0.35; clip-path: inset(100% 0 0 0 round 46% 46% 34% 34% / 26% 26% 18% 18%); transform: scale(1.08); filter: blur(5px); }
  58% { opacity: 1; clip-path: inset(0 0 0 0 round 46% 46% 34% 34% / 26% 26% 18% 18%); transform: scale(1.018); filter: blur(0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0 round 46% 46% 34% 34% / 26% 26% 18% 18%); transform: scale(1); filter: blur(0); }
}

@keyframes item-spring {
  0% { opacity: 0; transform: translate3d(0, 38px, 0) scale(0.9); }
  70% { opacity: 1; transform: translate3d(0, -6px, 0) scale(1.018); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes phone-left-spring {
  0% { opacity: 0; transform: translate3d(-54px, 96px, 0) rotate(-14deg) scale(0.76); }
  68% { opacity: 1; transform: translate3d(5px, -5px, 0) rotate(-3deg) scale(1.035); }
  100% { opacity: 1; transform: rotate(-5deg) translateY(16px) scale(1); }
}

@keyframes phone-center-spring {
  0% { opacity: 0; transform: translate3d(0, 116px, 0) scale(0.72); }
  66% { opacity: 1; transform: translate3d(0, -22px, 0) scale(1.17); }
  100% { opacity: 1; transform: translateY(-12px) scale(1.12); }
}

@keyframes phone-right-spring {
  0% { opacity: 0; transform: translate3d(54px, 96px, 0) rotate(14deg) scale(0.76); }
  68% { opacity: 1; transform: translate3d(-5px, -5px, 0) rotate(3deg) scale(1.035); }
  100% { opacity: 1; transform: rotate(5deg) translateY(18px) scale(1); }
}

@keyframes node-pop {
  0% { transform: translate(-50%, -50%) scale(0.58); box-shadow: 0 0 0 0 rgba(23, 146, 153, 0.24); }
  66% { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 0 12px rgba(23, 146, 153, 0); }
  100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 6px rgba(23, 146, 153, 0.11), 0 6px 18px rgba(23, 146, 153, 0.2); }
}

.site-header {
  animation: nav-drop 760ms cubic-bezier(0.16, 1.18, 0.3, 1) both;
}

.hero-copy {
  animation: hero-copy-spring 940ms cubic-bezier(0.16, 1.16, 0.3, 1) 90ms both;
}

.portrait-wrap {
  animation: portrait-frame-spring 980ms cubic-bezier(0.16, 1.2, 0.3, 1) 30ms both;
}

.portrait-wrap img {
  animation: portrait-image-reveal 1.08s cubic-bezier(0.16, 1, 0.3, 1) 90ms both;
}

.motion-ready .reveal-card {
  opacity: 0;
  clip-path: inset(0 0 14% 0 round var(--radius-xl));
  filter: blur(8px);
  transform: translate3d(0, 58px, 0) scale(0.982);
  transition:
    opacity 620ms ease var(--reveal-delay, 0ms),
    clip-path 900ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    filter 700ms ease var(--reveal-delay, 0ms),
    transform 900ms cubic-bezier(0.16, 1.08, 0.3, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform, clip-path, filter;
}

.motion-ready .reveal-card.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0 round var(--radius-xl));
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

.motion-ready .content-card .about-copy,
.motion-ready .project-card .project-copy,
.motion-ready .contact-card > div:first-child {
  opacity: 0;
  transform: translate3d(-42px, 0, 0);
  transition: opacity 600ms ease 160ms, transform 860ms cubic-bezier(0.16, 1.08, 0.3, 1) 160ms;
}

.motion-ready .content-card .principles,
.motion-ready .contact-card .contact-link {
  opacity: 0;
  transform: translate3d(42px, 0, 0);
  transition: opacity 600ms ease 210ms, transform 860ms cubic-bezier(0.16, 1.08, 0.3, 1) 210ms;
}

.motion-ready .content-card.is-visible .about-copy,
.motion-ready .project-card.is-visible .project-copy,
.motion-ready .contact-card.is-visible > div:first-child,
.motion-ready .content-card.is-visible .principles,
.motion-ready .contact-card.is-visible .contact-link {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motion-ready .content-card .principle,
.motion-ready .stack-card .tech-item {
  opacity: 0;
}

.motion-ready .content-card.is-visible .principle,
.motion-ready .stack-card.is-visible .tech-item {
  opacity: 1;
  animation: item-spring 760ms cubic-bezier(0.16, 1.2, 0.3, 1) var(--item-delay, 0ms) backwards;
}

.motion-ready .project-card .phone {
  opacity: 0;
}

.motion-ready .project-card.is-visible .phone:nth-child(1) {
  opacity: 1;
  animation: phone-left-spring 980ms cubic-bezier(0.16, 1.24, 0.3, 1) 180ms backwards;
}

.motion-ready .project-card.is-visible .phone:nth-child(2) {
  opacity: 1;
  animation: phone-center-spring 1.05s cubic-bezier(0.16, 1.26, 0.3, 1) 250ms backwards;
}

.motion-ready .project-card.is-visible .phone:nth-child(3) {
  opacity: 1;
  animation: phone-right-spring 980ms cubic-bezier(0.16, 1.24, 0.3, 1) 320ms backwards;
}

.motion-ready .journey-section .journey-dot {
  opacity: 0.38;
  transform: translate(-50%, -50%) scale(0.72);
}

.motion-ready .journey-section.section-visible .journey-dot {
  opacity: 1;
  animation: node-pop 680ms cubic-bezier(0.16, 1.24, 0.3, 1) both;
}

.button:active,
.store-button:active,
.contact-link:active,
.back-to-top:active {
  transform: translateY(1px) scale(0.965);
}

@media (max-width: 1000px) {
  .brand span:not(.brand-mark):not(.brand-dot) {
    display: none;
  }

  .hero {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 54px;
    padding-inline: 20px;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-copy {
    max-width: 700px;
  }

  .phone-stage {
    width: min(100%, 700px);
    min-height: 510px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 92px;
  }

  .shell,
  .nav-wrap {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    top: 10px;
  }

  .nav-wrap {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .brand {
    gap: 4px;
  }

  .brand-mark {
    font-size: 1.35rem;
  }

  .brand-dot {
    display: none;
  }

  .main-nav {
    justify-self: center;
    padding: 5px;
  }

  .main-nav a {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.68rem;
  }

  .main-nav a:first-child {
    display: none;
  }

  .language-switcher a {
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.65rem;
  }

  main {
    padding-top: 106px;
  }

  .journey {
    padding-left: 22px;
  }

  .journey::before,
  .journey::after {
    left: 7px;
  }

  .journey-section {
    margin-bottom: 24px;
  }

  .journey-dot {
    left: -15px;
    width: 16px;
    height: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
    padding: 34px 6px 56px;
  }

  .portrait-wrap {
    width: min(86%, 360px);
  }

  .location-chip {
    right: -10px;
    bottom: 22px;
  }

  .hero-copy {
    margin-left: 0;
    padding-right: 0;
  }

  h1 {
    font-size: clamp(2.65rem, 10.5vw, 4.25rem);
  }

  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .content-card,
  .stack-card,
  .project-card,
  .contact-card {
    border-radius: 28px;
  }

  .stack-head {
    display: block;
  }

  .stack-head p {
    margin-top: 10px;
    text-align: left;
  }

  .phone-stage {
    min-height: 410px;
    padding-inline: 0;
  }

  .phone {
    border-width: 4px;
    border-radius: 24px;
  }

  .phone img {
    border-radius: 20px;
  }

  .site-footer {
    padding-left: 0;
  }
}

@media (max-width: 520px) {
  .main-nav a {
    padding: 0 9px;
  }

  .main-nav a:nth-child(2) {
    display: none;
  }

  .language-switcher a {
    padding: 0 8px;
  }

  .content-card,
  .stack-card,
  .project-card,
  .contact-card {
    padding: 26px 20px;
  }

  .hero-actions,
  .store-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .store-button {
    width: 100%;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-item {
    min-height: 124px;
  }

  .phone-stage {
    min-height: 330px;
  }

  .phone {
    border-radius: 19px;
  }

  .phone img {
    border-radius: 15px;
  }

  .app-heading {
    align-items: flex-start;
  }

  .app-icon {
    width: 62px;
    height: 62px;
  }

  .site-footer {
    align-items: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-ready .reveal-card,
  .motion-ready .content-card .about-copy,
  .motion-ready .project-card .project-copy,
  .motion-ready .contact-card > div:first-child,
  .motion-ready .content-card .principles,
  .motion-ready .contact-card .contact-link,
  .motion-ready .content-card .principle,
  .motion-ready .stack-card .tech-item {
    opacity: 1 !important;
    clip-path: none !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
  }

  .motion-ready .project-card .phone {
    opacity: 1 !important;
    animation: none !important;
  }

  .motion-ready .journey-section .journey-dot {
    opacity: 1 !important;
    animation: none !important;
    transform: translate(-50%, -50%) scale(1) !important;
  }
}
