/* Rotimi Awaye portfolio. Palette and type follow the April 2026 brand guideline. */
@font-face {
  font-family: "Hubot Sans";
  src: url("assets/fonts/hubot-sans-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hubot Sans";
  src: url("assets/fonts/hubot-sans-latin-wdth-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #A0D9EF;      /* Clarity Blue */
  --mist: #CFECF7;      /* Reflective Mist */
  --spark: #FF9248;     /* Conscious Spark */
  --sand: #FFD7B5;      /* Grounded Sand */
  --space: #F2F2F2;     /* Measured Space */
  --ink: #000000;       /* Principled Ink */
  --ink-soft: #3a3f43;
  --line: rgba(0, 0, 0, .12);
  --radius: 20px;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hubot Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, .95rem + .25vw, 1.0625rem);
  line-height: 1.6;
  letter-spacing: -.025em;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--spark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.contact :focus-visible, .site-footer :focus-visible { outline-color: var(--spark); }

h1, h2, h3 { font-stretch: 125%; font-weight: 600; letter-spacing: -.025em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); max-width: 20ch; }
h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 500; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { font-size: .95rem; font-weight: 600; color: var(--ink); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--spark); }
.muted { color: var(--ink-soft); }
h2 + .muted { margin-top: 24px; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); max-width: 44ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: -.02em; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-spark { background: var(--spark); color: var(--ink); }
.btn-spark:hover { background: #ff7f2b; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-dark { border-color: #fff; color: #fff; }
.btn-ghost-dark:hover { background: #fff; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(207, 236, 247, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand img { height: 28px; width: auto; }
nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
nav a:not(.btn):hover { border-bottom-color: var(--spark); }
nav .btn { min-height: 42px; padding: 0 20px; }
.menu-btn { display: none; font: inherit; font-weight: 600; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 18px; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { background: var(--mist); padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 15ch; margin-bottom: 28px; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 28px; background: var(--blue);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.portrait::after { content: ""; position: absolute; inset: auto -20% -25% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--sand); opacity: .7; }
.portrait img { position: relative; z-index: 1; width: 52%; height: auto; }
.portrait.has-photo { background: #1f1c1b; }
.portrait.has-photo::after { display: none; }
.portrait > img[alt]:not([alt=""]) { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.about-photo { margin: 40px 0 0; max-width: 380px; border-radius: 24px; overflow: hidden; background: #1f1c1b; aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

.stats { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(0, 0, 0, .18); }
.stats li { padding: 28px 24px 32px 0; }
.stats li + li { padding-left: 24px; border-left: 1px solid rgba(0, 0, 0, .18); }
.stats strong { display: block; font-stretch: 125%; font-weight: 600; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1; margin-bottom: 10px; }
.stats span { display: block; font-size: .95rem; line-height: 1.4; color: var(--ink-soft); max-width: 24ch; }

section { padding: var(--section) 0; }
.hero { padding-bottom: 0; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose p { font-size: 1.12rem; line-height: 1.65; color: var(--ink-soft); }
.prose a { color: var(--ink); font-weight: 600; text-decoration-color: var(--spark); text-decoration-thickness: 2px; }
.prose em { font-style: normal; font-weight: 600; color: var(--ink); }

/* Work */
.work { background: var(--space); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 4px; }
.card h3 { margin-bottom: 14px; font-stretch: 125%; font-weight: 600; font-size: 1.2rem; }
.card p { color: var(--ink-soft); font-size: 1rem; margin-bottom: .8em; }
.card .tag { align-self: flex-start; font-size: .85rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--sand); color: var(--ink); margin-bottom: 20px; }
.card .note { font-size: .9rem; font-weight: 600; color: var(--ink); margin-top: auto; padding-top: 12px; margin-bottom: 0; }
.card-feature { background: var(--ink); }
.card-feature h3, .card-feature .note { color: #fff; }
.card-feature p { color: rgba(255, 255, 255, .78); }
.card-feature .tag { background: var(--spark); }

/* Teaching */
.sessions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sessions li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.sessions h3 { font-weight: 600; }
.sessions p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.audiences { margin-top: clamp(40px, 6vw, 72px); padding: 32px; background: var(--mist); border-radius: var(--radius); }
.audiences h3 { font-stretch: 125%; font-weight: 600; margin-bottom: 18px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; }

/* Business */
.business { background: var(--blue); }
.business h2 { margin-bottom: 40px; }
.method { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.method li { align-content: start; counter-increment: step; background: rgba(255, 255, 255, .55); border-radius: var(--radius); padding: 28px; display: grid; gap: 6px; }
.method li::before { content: counter(step, decimal-leading-zero); font-stretch: 125%; font-weight: 600; color: var(--ink); font-size: .95rem; }
.method strong { font-stretch: 125%; font-weight: 600; font-size: 1.4rem; }
.method span { color: var(--ink-soft); }
.clients-label { font-weight: 600; margin-bottom: 16px; }
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(0, 0, 0, .25); }
.clients li { padding: 18px 16px 18px 0; border-bottom: 1px solid rgba(0, 0, 0, .25); display: grid; gap: 2px; }
.clients strong { font-weight: 600; }
.clients span { font-size: .9rem; color: var(--ink-soft); }

/* Tools */
.tools { background: var(--space); }

/* Writing */
.pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pubs li { background: var(--space); border-radius: var(--radius); padding: 26px 28px; }
.pubs h3 { margin-bottom: 8px; font-weight: 600; }
.pubs p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Recognition */
.recognition { background: var(--sand); }
.rec-grid { display: grid; grid-template-columns: 1.1fr .6fr 1.3fr; gap: clamp(28px, 4vw, 56px); margin-top: 48px; }
.rec-grid h3 { font-stretch: 125%; font-weight: 600; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plain li { font-size: .98rem; line-height: 1.45; }
.bg-note { margin: 48px 0 0; font-size: .95rem; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--ink); color: #fff; }
.contact .eyebrow { color: #fff; }
.contact h2 { max-width: 18ch; }
.contact .lead { color: rgba(255, 255, 255, .72); margin-top: 24px; }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 0 0 40px; font-size: .95rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .16); }
.foot img { height: 26px; width: auto; }
.foot p { margin: 0; }
.foot a { color: #fff; }

/* Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .cards, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .rec-grid { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--mist); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  nav .btn { margin-top: 16px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; aspect-ratio: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid rgba(0, 0, 0, .18); }
  .method { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards, .cards-4, .rec-grid { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .cta-row .btn { width: 100%; }
  .brand img { height: 24px; }
}
