:root {
  --ink: #20201e;
  --cream: #f3efe5;
  --paper: #faf8f2;
  --coral: #ed765f;
  --sage: #aeb09c;
  --line: rgba(32, 32, 30, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #dcd8cc;
  font-family: "DM Sans", sans-serif;
}

img { display: block; width: 100%; }

.page-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 16px auto;
  background: var(--paper);
  overflow: hidden;
}

.nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: "Fraunces", serif;
  font-size: 14px;
}

.brand-mark span { color: var(--coral); }

.nav-links { display: flex; gap: 38px; }

.nav-links a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--coral);
}

.menu-button { display: none; }

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 43% 57%;
  background: var(--cream);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 70px 12% 70px 16%;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.hero h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(72px, 8vw, 116px);
  line-height: 0.78;
  letter-spacing: -0.07em;
}

.hero h1 em {
  display: inline-block;
  margin-top: 28px;
  margin-left: 54px;
  color: var(--coral);
  font-style: italic;
  font-weight: 700;
}

.intro {
  max-width: 420px;
  margin: 38px 0 28px;
  line-height: 1.7;
  color: #66665f;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: 180ms ease;
}

.button:hover { background: var(--ink); color: white; }

.hero-visual {
  position: relative;
  min-height: 660px;
  background: var(--sage);
  overflow: hidden;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 50%;
}

.hero-visual::before {
  width: 580px;
  height: 580px;
  right: -260px;
  bottom: -220px;
}

.hero-visual::after {
  width: 300px;
  height: 300px;
  left: -150px;
  top: 80px;
}

.sun {
  position: absolute;
  width: 180px;
  height: 180px;
  top: 38px;
  right: 55px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
}

.photo-card {
  position: absolute;
  z-index: 2;
  background: white;
  padding: 10px 10px 48px;
  box-shadow: 0 18px 40px rgba(44, 45, 38, 0.17);
}

.photo-card img {
  height: 100%;
  object-fit: cover;
}

.photo-card span {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-family: "Fraunces", serif;
  font-size: 18px;
}

.photo-plomo {
  width: 320px;
  height: 430px;
  left: 9%;
  top: 130px;
  transform: rotate(-4deg);
}

.photo-mota {
  width: 280px;
  height: 360px;
  right: 7%;
  top: 220px;
  transform: rotate(5deg);
}

.paw {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(77, 54, 45, 0.12);
}

.paw-one { left: 44%; top: 100px; }
.paw-two { right: 3%; bottom: 70px; transform: rotate(12deg); }

.about {
  padding: 110px 6% 120px;
  background: var(--paper);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
}

.section-heading .eyebrow { margin: 0 0 12px; }

.section-heading h2,
.moments-heading h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.cat-card { position: relative; }

.cat-photo {
  height: 480px;
  overflow: hidden;
  background: #dedbd1;
}

.cat-photo img { height: 100%; object-fit: cover; }

.mota-card { margin-top: 80px; }

.cat-info {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: -30px;
  position: relative;
  z-index: 2;
  width: calc(100% - 30px);
  padding: 20px 24px 16px;
  background: var(--cream);
}

.number {
  font-family: "Fraunces", serif;
  color: var(--coral);
  font-size: 30px;
}

.cat-info div p {
  margin: 0 0 4px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #77776f;
}

.cat-info h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 38px;
}

.cat-description {
  max-width: 390px;
  margin: 18px 0 0 70px;
  color: #77776f;
  line-height: 1.6;
  font-size: 14px;
}

.gemini-chat {
  padding: 100px 6%;
  background: var(--ink);
  color: white;
}

.chat-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 38px;
}

.chat-heading .eyebrow { margin-bottom: 12px; }

.chat-heading h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.gemini-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #c9c9c0;
  font-size: 12px;
}

.gemini-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #82ad82;
  box-shadow: 0 0 12px #82ad82;
}

.chat-window {
  min-height: 520px;
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid rgba(255,255,255,0.12);
  background: #292926;
}

.chat-sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  background: #242421;
}

.gemini-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #758fc7, #c177a4, #e4a96a);
  font-size: 18px;
}

.chat-sidebar p {
  margin: 0 0 5px;
  font-family: "Fraunces", serif;
  font-size: 18px;
}

.chat-sidebar span {
  color: #9d9d94;
  font-size: 11px;
}

.chat-main {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 28px;
}

.chat-messages {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 8px;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 18px;
  line-height: 1.55;
  font-size: 14px;
}

.message p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 4px 16px 16px 16px;
  background: #383834;
}

.message-avatar {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #758fc7, #c177a4, #e4a96a);
  font-size: 12px;
}

.user-message {
  margin-left: auto;
  justify-content: flex-end;
}

.user-message p {
  border-radius: 16px 4px 16px 16px;
  background: var(--coral);
  color: white;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.chat-form input {
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px;
  outline: none;
  padding: 0 16px;
  background: #20201e;
  color: white;
  font: inherit;
}

.chat-form input:focus { border-color: var(--coral); }

.chat-form button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

footer {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  background: var(--cream);
  font-size: 13px;
}

footer strong { color: var(--coral); }

footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 900px) {
  .page-shell { width: 100%; margin: 0; }
  .nav { height: 76px; }
  .nav-links {
    display: none;
    position: absolute;
    z-index: 20;
    top: 76px;
    left: 0;
    right: 0;
    padding: 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; flex-direction: column; }
  .menu-button {
    display: flex;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
  }
  .menu-button span { display: block; width: 24px; height: 2px; background: var(--ink); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 70px 8%; }
  .hero h1 { font-size: clamp(68px, 19vw, 100px); }
  .hero-visual { min-height: 560px; }
  .photo-plomo { width: 48%; left: 8%; }
  .photo-mota { width: 42%; right: 5%; }
  .cat-grid { grid-template-columns: 1fr; }
  .mota-card { margin-top: 20px; }
  .chat-window { grid-template-columns: 180px 1fr; }
}

@media (max-width: 560px) {
  .brand > span:last-child { display: none; }
  .hero-copy { padding: 55px 7%; }
  .hero h1 em { margin-left: 28px; }
  .hero-visual { min-height: 470px; }
  .photo-plomo { width: 54%; height: 330px; top: 90px; left: 5%; }
  .photo-mota { width: 46%; height: 285px; top: 155px; right: 2%; }
  .sun { width: 120px; height: 120px; right: 20px; }
  .paw-one { top: 45px; left: 52%; }
  .paw-two { bottom: 20px; }
  .about { padding: 75px 7%; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 46px; }
  .cat-photo { height: 380px; }
  .cat-description { margin-left: 24px; }
  .gemini-chat { padding: 75px 7%; }
  .chat-heading { display: block; }
  .gemini-status { margin-top: 18px; }
  .chat-window { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .chat-main { min-height: 430px; padding: 18px; }
  footer { height: 120px; }
}
