/* ==========================================================================
   Variables
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-ink: #111111;
  --color-accent: #a21caf;

  --font-serif: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1440px;
  --gutter: clamp(24px, 6vw, 88px);
}

/* ==========================================================================
   Base
   ========================================================================== */

html,
body {
  background: var(--color-bg);
}

body {
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-weight: 400;
  overflow-x: hidden;
}

a {
  color: var(--color-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent);
}

input:focus {
  outline: none;
}

::selection {
  background: var(--color-accent);
  color: #ffffff;
}

/* ==========================================================================
   Shared layout helpers
   ========================================================================== */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.divider {
  height: 1px;
  background: var(--color-ink);
  opacity: 0.12;
}

.rule {
  width: 64px;
  height: 1px;
  background: var(--color-accent);
}

/* Small decorative dots/rings scattered across sections. Purely
   ornamental, so they carry aria-hidden and never take pointer events. */
.decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.decor__dot {
  position: absolute;
  border: 1px solid var(--color-ink);
}

.decor__dot--accent {
  border-color: var(--color-accent);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px var(--gutter) 0;
  max-width: var(--max-width);
  margin: 0 auto;

  @media (width >= 400px) {
      justify-content: space-between;
  }
}

.brand {
    width: 147px;
    height: 32px;
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__link {
  opacity: 0.8;
}

.nav__link:hover {
  opacity: 1;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(72px, 13vh, 150px) var(--gutter) clamp(88px, 14vh, 160px);
}

.hero__decor .decor__dot--ring {
  right: -230px;
  top: -150px;
  width: 820px;
  height: 820px;
  border-radius: 50%;
  opacity: 0.07;
}

.hero__decor .decor__dot--1 {
  left: clamp(9px, 2.2vw, 34px);
  top: 96px;
  width: 7px;
  height: 7px;
  opacity: 0.28;
}

.hero__decor .decor__dot--2 {
  left: clamp(16px, 3.4vw, 52px);
  top: 232px;
  width: 5px;
  height: 5px;
  opacity: 0.85;
}

.hero__decor .decor__dot--3 {
  left: clamp(6px, 1.4vw, 22px);
  bottom: 118px;
  width: 6px;
  height: 6px;
  opacity: 0.16;
}

.hero__decor .decor__dot--4 {
  right: clamp(14px, 3vw, 46px);
  bottom: 64px;
  width: 8px;
  height: 8px;
  opacity: 0.2;
}

.hero__decor .decor__dot--5 {
  right: clamp(30px, 7vw, 116px);
  top: 38px;
  width: 4px;
  height: 4px;
  opacity: 0.3;
}

.hero__content {
  position: relative;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 26ch;
  opacity: 0.92;
  margin-bottom: clamp(26px, 3.4vh, 34px);
}

.hero__rule {
  margin-bottom: clamp(26px, 3.4vh, 34px);
}

.hero__lede {
  font-size: 16px;
  line-height: 1.72;
  max-width: 62ch;
  opacity: 0.74;
  text-wrap: pretty;
  margin-bottom: clamp(40px, 5.5vh, 60px);
}

.hero__cta-row {
  min-height: 58px;
  display: flex;
  align-items: flex-start;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__cta-note {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid var(--color-accent);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn--primary {
  color: var(--color-accent);
  background: var(--color-bg);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--color-accent) 5%, transparent);
  color: var(--color-accent);
}

/* ==========================================================================
   Projects
   ========================================================================== */

.projects {
  position: relative;
  padding: clamp(64px, 10vh, 116px) 0 clamp(72px, 11vh, 128px);
}

.projects__decor .decor__dot--1 {
  left: clamp(10px, 2.4vw, 38px);
  top: 52px;
  width: 6px;
  height: 6px;
  opacity: 0.22;
}

.projects__decor .decor__dot--2 {
  right: clamp(18px, 4vw, 64px);
  top: 120px;
  width: 4px;
  height: 4px;
  opacity: 0.3;
}

.projects__decor .decor__dot--3 {
  right: clamp(8px, 1.8vw, 28px);
  bottom: 74px;
  width: 7px;
  height: 7px;
  opacity: 0.15;
}

.projects__inner {
  position: relative;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vh, 68px);
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(32px, 4vw, 56px);
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card__thumb {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project-card__thumb-label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.42;
  line-height: 1.7;
}

.project-card__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0 12px;
}

.project-card__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.project-card__status-label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.project-card__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.3vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.project-card__summary {
  flex-grow: 1;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.72;
  max-width: 44ch;
  margin-bottom: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 11px;
}

.project-card__divider {
  height: 1px;
  background: var(--color-ink);
  opacity: 0.12;
  margin-bottom: 8px;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-links__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.card-links__link::before {
  content: '';
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  padding-block: clamp(44px, 7vh, 72px);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;

  @media (width >= 600px) {
      justify-content: space-between;
  }
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  padding: .5rem .75rem;
  border: 1px solid rgba(17, 17, 17, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.social-link:hover {
  border-color: var(--color-accent);
}

.copyright {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}
