/* Andrea Amici — Creative Amogio */
:root {
  --bg: #0c0c0f;
  --bg-elevated: #14141a;
  --surface: #1a1a22;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f5;
  --muted: #9a9aa8;
  --accent: #e8a87c;
  --accent-soft: rgba(232, 168, 124, 0.15);
  --accent-glow: rgba(232, 168, 124, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-display: "Syne", var(--font-sans);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232, 168, 124, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(120, 100, 200, 0.06), transparent 50%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #f0c4a8;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 15, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), #c97d52);
  color: var(--bg);
  border-radius: 10px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text) !important;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  padding: 0.75rem 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.mobile-nav a:hover {
  background: var(--surface);
}

.mobile-nav[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-accent {
  display: inline-block;
  background: linear-gradient(120deg, var(--accent), #f5d4bc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36ch;
  margin: 0 0 1.75rem;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #d4916a);
  color: var(--bg);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px var(--accent-glow);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--muted);
  color: var(--text);
}

.btn-full {
  width: 100%;
}

.hero-panel {
  position: relative;
  min-height: 220px;
}

.panel-card {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.5rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 280px;
  margin-left: auto;
}

.panel-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.panel-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.panel-orbit {
  position: absolute;
  inset: 10% 5% auto auto;
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  z-index: 1;
  animation: spin 48s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Strip */
.strip {
  border-block: 1px solid var(--border);
  background: rgba(20, 20, 26, 0.5);
}

.strip-inner {
  padding-block: 1.25rem;
  overflow-x: auto;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill-list li {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(26, 26, 34, 0.4), transparent);
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.section-head h2,
.contact-intro h2,
.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.section-lede {
  color: var(--muted);
  margin: 0;
  max-width: 48ch;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.5rem 1.5rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(232, 168, 124, 0.35);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* About */
.about {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .about {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
  margin: 0 0 1rem;
}

.about-quote {
  margin: 0;
  padding: 1.5rem 1.5rem 1.75rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.about-quote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

.about-quote footer {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Contact */
.contact-section {
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
    align-items: start;
  }
}

.contact-domain {
  margin: 1.5rem 0 0;
  font-weight: 600;
}

.contact-domain a {
  text-decoration: none;
}

.form-shell {
  position: relative;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(232, 168, 124, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form.is-hidden {
  display: none;
}

.form-success {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.form-success[hidden] {
  display: none;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.form-success p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.success-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg);
  background: linear-gradient(135deg, #6ecf9b, #3cb878);
  border-radius: 50%;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-note {
  font-size: 0.85rem !important;
}
