:root {
  --ink: #20252f;
  --paper: #f8f6f0;
  --muted: #68685f;
  --line: #d8d5ca;
  --coral: #ef8e72;
  --blue: #9bc3c7;
  --yellow: #e9d75f;
  --forest: #355c4c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

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

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.credentials-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 5.75rem;
  padding: 1rem clamp(1.5rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(32, 37, 47, 0.12);
  background: rgba(248, 246, 240, 0.9);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  letter-spacing: -0.1em;
  transition: transform 180ms ease, background 180ms ease;
}

.wordmark:hover { transform: rotate(-10deg) scale(1.05); background: var(--forest); }
.wordmark span { color: var(--yellow); }

.header-label, .eyebrow, .section-number, .status-pill, .place-card > span, .card-number {
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.header-label { justify-self: center; margin: 0; color: var(--muted); }

.back-link {
  font-size: 0.78rem;
  font-weight: 800;
  transition: opacity 160ms ease;
}

.back-link:hover { opacity: 0.55; }
.back-link span, .hero-actions a span, .email-link span { color: var(--coral); font-size: 1.25em; }

.credentials-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  min-height: calc(100vh - 5.75rem);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 8vw, 8rem);
  background:
    radial-gradient(circle at 15% 20%, rgba(239, 142, 114, 0.28), transparent 25rem),
    radial-gradient(circle at 93% 83%, rgba(155, 195, 199, 0.35), transparent 25rem);
}

.eyebrow, .section-number { margin: 0; color: var(--muted); }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -0.065em; line-height: 0.98; }
em { font-family: "Playfair Display", serif; font-weight: 600; }

h1 {
  max-width: 10.5ch;
  margin: clamp(2.5rem, 6vw, 5.5rem) 0 2rem;
  font-size: clamp(3.75rem, 8.25vw, 8.35rem);
}

.intro-copy {
  max-width: 36rem;
  margin-bottom: 2.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.7rem; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.status-pill i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0.3rem rgba(239, 142, 114, 0.2);
}

.hero-actions a { border-bottom: 1px solid var(--ink); padding-bottom: 0.25rem; font-size: 0.9rem; font-weight: 800; }

.hero-visual {
  position: relative;
  width: min(100%, 31rem);
  margin: 0;
  justify-self: end;
  overflow: hidden;
  aspect-ratio: 0.79;
  background: var(--forest);
  box-shadow: 1.25rem 1.25rem 0 var(--yellow);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(28, 31, 28, 0.05) 24%, rgba(28, 31, 28, 0.78) 100%);
}

.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: 1.25rem;
  margin: 0;
  color: var(--paper);
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.11em;
  line-height: 1.55;
  text-align: right;
}

.visual-orbit {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border: 1px solid rgba(248, 246, 240, 0.85);
  border-radius: 50%;
  color: var(--paper);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  animation: drift 5s ease-in-out infinite alternate;
}

.orbit-one { top: 10%; right: 9%; }
.orbit-two { bottom: 26%; left: -1.4rem; color: var(--ink); border-color: var(--ink); background: var(--yellow); animation-delay: -2s; }

.help-section, .conversation-section, .places-section, .details-section, .contact-section {
  padding: clamp(4.5rem, 9vw, 8.5rem) clamp(1.5rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
}

.section-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }

h2 { max-width: 11ch; margin: 0; font-size: clamp(2.7rem, 5.6vw, 5.7rem); }

.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(3rem, 7vw, 6rem); }

.help-card {
  position: relative;
  display: flex;
  min-height: 20rem;
  padding: clamp(1.3rem, 2.6vw, 2rem);
  flex-direction: column;
  border: 1px solid var(--ink);
  transition: transform 260ms cubic-bezier(.2,.65,.2,1), box-shadow 260ms ease;
}

.help-card:hover { transform: translate(-0.45rem, -0.45rem); box-shadow: 0.45rem 0.45rem 0 var(--ink); }
.coral-card { background: var(--coral); }
.blue-card { background: var(--blue); }
.yellow-card { background: var(--yellow); }
.card-arrow { position: absolute; top: 1.15rem; right: 1.35rem; font-size: 1.5rem; }
.card-title { max-width: 10ch; margin: auto 0 0.9rem; font-size: clamp(1.55rem, 2.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1.03; }
.card-copy { max-width: 25ch; font-size: 0.88rem; line-height: 1.65; }

.conversation-section { background: var(--ink); color: var(--paper); }
.conversation-section .section-number { color: #b5b6ad; }

.conversation-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(3rem, 10vw, 10rem);
  margin-top: clamp(3rem, 7vw, 6rem);
}

.conversation-layout h2 { max-width: 9ch; }
.body-copy { max-width: 28rem; margin: 2rem 0 0; color: #c6c8be; line-height: 1.7; }

.conversation-panel { border-top: 1px solid #777a76; }
.conversation-panel ol { margin: 0; padding: 0; list-style: none; }
.conversation-panel li { display: grid; grid-template-columns: 2.5rem minmax(8rem, 0.6fr) 1fr; gap: 1rem; align-items: baseline; padding: 1.25rem 0; border-bottom: 1px solid #52555b; }
.conversation-panel li span { color: var(--yellow); font-family: "DM Mono", monospace; font-size: 0.7rem; }
.conversation-panel strong { font-size: 1rem; }
.conversation-panel p { margin: 0; color: #c6c8be; font-size: 0.84rem; line-height: 1.55; }

.compact-intro { display: block; }
.compact-intro h2 { max-width: 13ch; margin-top: 2rem; }

.places-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(3rem, 6vw, 5rem); background: var(--line); border: 1px solid var(--line); }
.place-card { min-height: 16.5rem; padding: clamp(1.4rem, 2.5vw, 2rem); background: var(--paper); transition: background 220ms ease, color 220ms ease; }
.place-card:hover { background: var(--forest); color: var(--paper); }
.place-card > span { display: block; color: var(--muted); }
.place-card:hover > span { color: var(--yellow); }
.place-card strong { display: block; max-width: 9ch; margin: 4rem 0 0.8rem; font-size: clamp(1.45rem, 2.5vw, 2.25rem); letter-spacing: -0.06em; line-height: 1.03; }
.place-card p { max-width: 25ch; margin: 0; font-size: 0.85rem; line-height: 1.65; }

.inquiry-section {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(22rem, 1.2fr);
  gap: clamp(3rem, 10vw, 10rem);
  align-items: start;
  background:
    radial-gradient(circle at 4% 16%, rgba(239, 142, 114, 0.22), transparent 19rem),
    #eeece4;
}

.inquiry-intro { position: sticky; top: 8.2rem; }
.inquiry-intro h2 { margin: 2rem 0; }
.inquiry-intro > p:last-child { max-width: 27rem; margin-bottom: 0; color: var(--muted); line-height: 1.7; }

.inquiry-form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0.9rem 0.9rem 0 var(--blue);
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.form-field { display: block; }
.form-field-wide { grid-column: 1 / -1; }
.form-field > span { display: block; margin-bottom: 0.6rem; color: #d0d2c8; font-family: "DM Mono", monospace; font-size: 0.67rem; letter-spacing: 0.07em; }
.form-field b { color: var(--coral); }

.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #6c6e6e;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  transition: border-color 160ms ease, background 160ms ease;
}

.form-field input, .form-field select { min-height: 2.85rem; }
.form-field textarea { min-height: 7rem; padding: 0.65rem 0; resize: vertical; }
.form-field select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--yellow) 50%), linear-gradient(135deg, var(--yellow) 50%, transparent 50%); background-position: calc(100% - 0.85rem) 1.2rem, calc(100% - 0.55rem) 1.2rem; background-size: 0.3rem 0.3rem, 0.3rem 0.3rem; background-repeat: no-repeat; }
.form-field select option { background: var(--paper); color: var(--ink); }
.form-field textarea::placeholder { color: #a7aaa3; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--yellow); background-color: rgba(248, 246, 240, 0.04); }

.form-footer { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-top: 2.2rem; padding-top: 1.25rem; border-top: 1px solid #51555a; }
.form-helper { max-width: 30rem; }
.form-footer p { margin: 0; color: #bfc3bb; font-size: 0.75rem; line-height: 1.6; }
.form-direct-email { display: inline-block; margin-top: 0.65rem; border-bottom: 1px solid #bfc3bb; padding-bottom: 0.15rem; color: var(--paper); font-size: 0.76rem; font-weight: 700; }
.form-direct-email:hover { color: var(--yellow); }
.form-direct-email span { color: var(--coral); }
.form-footer button { border: 1px solid var(--yellow); padding: 0.9rem 1.1rem; cursor: pointer; background: var(--yellow); color: var(--ink); font: inherit; font-size: 0.78rem; font-weight: 800; white-space: nowrap; transition: background 160ms ease, color 160ms ease, transform 160ms ease; }
.form-footer button:hover { transform: translateY(-0.15rem); background: transparent; color: var(--yellow); }
.form-footer button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.form-footer button span { color: var(--coral); font-size: 1.2em; }
.form-status { min-height: 1.25rem; margin: 1rem 0 0; color: var(--yellow); font-size: 0.75rem; line-height: 1.5; }

.details-section { display: grid; grid-template-columns: minmax(15rem, 0.9fr) minmax(20rem, 1.1fr); gap: clamp(3rem, 10vw, 10rem); align-items: start; background: #eeece4; }
.details-section h2 { margin-top: 2rem; }
.details-card { padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--ink); background: var(--paper); box-shadow: 0.75rem 0.75rem 0 var(--coral); }
.details-card > p:first-child { max-width: 35rem; font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.55; }
.details-card ul { margin: 2rem 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.details-card li { display: flex; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; line-height: 1.55; }
.details-card li span { color: var(--coral); font-size: 1.2rem; line-height: 0.9; }
.details-note { margin: 0; color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.67rem; letter-spacing: 0.05em; }

.contact-section { background: var(--forest); color: var(--paper); }
.contact-section .section-number { color: #c2cdc4; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr); gap: 2rem; align-items: end; margin-top: clamp(3rem, 7vw, 6rem); }
.contact-layout h2 { max-width: 9ch; font-size: clamp(3.4rem, 7vw, 7.5rem); }
.contact-layout div > p { max-width: 24rem; margin-bottom: 2rem; color: #d3ddd4; font-size: 0.93rem; line-height: 1.7; }
.email-link { display: inline-block; border-bottom: 1px solid rgba(248, 246, 240, 0.7); padding-bottom: 0.4rem; font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 700; transition: color 160ms ease; }
.email-link:hover { color: var(--yellow); }

footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1.5rem, 5vw, 5rem); color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.65rem; letter-spacing: 0.04em; }
footer p { margin: 0; }
footer a:hover { color: var(--ink); }

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0.35rem, -0.65rem, 0); }
}

@media (max-width: 850px) {
  .credentials-hero, .conversation-layout, .inquiry-section, .details-section, .contact-layout { grid-template-columns: 1fr; }
  .credentials-hero { min-height: auto; }
  .hero-visual { width: min(100%, 35rem); justify-self: start; }
  .section-intro { display: block; }
  .section-intro h2 { margin-top: 2rem; }
  .help-grid, .places-grid { grid-template-columns: 1fr; }
  .help-card { min-height: 15rem; }
  .place-card { min-height: 12rem; }
  .place-card strong { margin-top: 2.5rem; }
  .inquiry-intro { position: static; }
}

@media (max-width: 560px) {
  .credentials-header { min-height: 4.8rem; }
  .header-label { display: none; }
  .back-link { justify-self: end; }
  h1 { font-size: clamp(3.35rem, 15vw, 5.25rem); }
  .hero-visual { box-shadow: 0.8rem 0.8rem 0 var(--yellow); }
  .conversation-panel li { grid-template-columns: 2rem 1fr; gap: 0.55rem; }
  .conversation-panel li p { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer button { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; }
}

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