/*
Theme Name: IQWEST
Theme URI: https://iqwestit.com/
Author: IQWEST Information Technologies, Inc.
Description: Block theme for iqwestit.com — ink and gold palette shared with the Timeless site. Activating it builds the home page, Insights page, articles and menu automatically.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: iqwest
*/

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(assets/fonts/cormorant-latin.woff2) format("woff2"); 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; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(assets/fonts/cormorant-latin-ext.woff2) format("woff2"); 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: "Cormorant Garamond"; font-style: italic; font-weight: 500 700; font-display: swap; src: url(assets/fonts/cormorant-italic-latin.woff2) format("woff2"); 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; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500 700; font-display: swap; src: url(assets/fonts/cormorant-italic-latin-ext.woff2) format("woff2"); 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; }

/* ---------- Tokens ---------- */
:root {
	--iq-ink: var(--wp--preset--color--ink, #130E22);
	--iq-ink-2: var(--wp--preset--color--ink-2, #1F1836);
	--iq-ink-3: #2A2147;
	--iq-gold: var(--wp--preset--color--gold, #C9A54C);
	--iq-gold-light: var(--wp--preset--color--gold-light, #E4CB85);
	--iq-gold-dark: var(--wp--preset--color--gold-dark, #8C6B1F);
	--iq-cream: var(--wp--preset--color--cream, #F8F4EC);
	--iq-sand: var(--wp--preset--color--sand, #EFE7D6);
	--iq-text: var(--wp--preset--color--text, #2B2638);
	--iq-muted: var(--wp--preset--color--muted, #5F5970);
	--iq-line: rgba(19, 14, 34, .1);
	--iq-serif: var(--wp--preset--font-family--serif, "Cormorant Garamond", Georgia, serif);
	--iq-radius: 18px;
	--iq-shadow: 0 18px 50px -24px rgba(19, 14, 34, .35);
	--iq-gutter: max(24px, calc((100% - 1200px) / 2));
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { letter-spacing: -.01em; margin-top: 0; }
h1 { font-size: clamp(2.6rem, 2rem + 3.2vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 1.7rem + 2vw, 3.2rem); }
h3 { font-size: 1.75rem; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--iq-gold); }

/* Sections sit flush against each other; spacing comes from their own padding. */
.wp-site-blocks > *, .iq-main > *, .iq-page-content > * { margin-block-start: 0 !important; }
.iq-page-content > * { max-width: none !important; }
.iq-grid > *, .iq-split > *, .iq-steps > *, .iq-stats > *, .iq-hero__grid > *, .iq-band > *, .iq-person > *, .iq-timeline > * { margin-block-start: 0 !important; }

.iq-wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.iq-section { padding: clamp(72px, 9vw, 120px) var(--iq-gutter); }
.iq-section.is-cream { background: var(--iq-cream); }
.iq-section.is-dark { background: var(--iq-ink); color: rgba(255,255,255,.75); }
.is-dark h2, .is-dark h3 { color: #fff; }

.iq-eyebrow, .iq-eyebrow a {
	font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--iq-gold-dark); text-decoration: none;
}
.iq-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.iq-eyebrow::before { content: ""; flex: none; width: 36px; height: 2px; background: var(--iq-gold); }
.is-dark .iq-eyebrow, .is-dark .iq-eyebrow a, .iq-hero .iq-eyebrow, .iq-titlebar .iq-eyebrow, .iq-titlebar .iq-eyebrow a { color: var(--iq-gold-light); }

.iq-head { max-width: 760px; margin-bottom: 56px; }
.iq-head.is-center { margin-inline: auto; text-align: center; }
.iq-head.is-center .iq-eyebrow { justify-content: center; }
.iq-head > p:not(.iq-eyebrow) { color: var(--iq-muted); font-size: 1.08rem; }
.is-dark .iq-head > p:not(.iq-eyebrow) { color: rgba(255,255,255,.7); }
.iq-lead { font-size: 1.15rem; }
.iq-center { justify-content: center; margin-top: 44px; }

/* ---------- Buttons ---------- */
.wp-block-button__link, .iq-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 15px 30px; border-radius: 999px; border: 1.5px solid transparent;
	background: var(--iq-gold); color: var(--iq-ink); font-weight: 600; font-size: 1rem; font-family: inherit;
	text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.wp-block-button__link:hover, .iq-btn:hover { transform: translateY(-2px); background: var(--iq-gold-light); color: var(--iq-ink); }
.is-style-outline > .wp-block-button__link { background: transparent; border-color: currentColor; color: var(--iq-ink); }
.iq-hero .is-style-outline > .wp-block-button__link, .is-dark .is-style-outline > .wp-block-button__link, .iq-titlebar .is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.6); }
.is-style-outline > .wp-block-button__link:hover { background: rgba(127,127,127,.1); }
.is-style-dark > .wp-block-button__link { background: var(--iq-ink); color: #fff; }
.is-style-dark > .wp-block-button__link:hover { background: var(--iq-ink-3); color: #fff; }
.wp-block-buttons { gap: 14px; }

/* ---------- Top bar + header ---------- */
.iq-topbar { background: var(--iq-ink-2); color: rgba(255,255,255,.75); font-size: .85rem; }
.iq-topbar .iq-wrap { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; flex-wrap: wrap; }
.iq-topbar a { color: inherit; text-decoration: none; }
.iq-topbar a:hover { color: var(--iq-gold-light); }
.iq-topbar__contact { display: flex; gap: 22px; }

.iq-header-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .iq-header-part { top: 32px; }
.iq-header { position: relative; background: rgba(19,14,34,.97); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.06); transition: box-shadow .2s; }
.iq-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.iq-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.iq-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.iq-logo img { width: 54px; height: auto; }
.iq-logo__text strong { display: block; font-family: var(--iq-serif); font-size: 1.7rem; font-weight: 600; color: #fff; letter-spacing: .06em; line-height: 1; }
.iq-logo__text small { display: block; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--iq-gold-light); margin-top: 5px; }

.iq-nav { display: flex; align-items: center; gap: 30px; }
.iq-menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.iq-menu a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.iq-btn, .iq-logo__text { white-space: nowrap; }
.iq-menu a:hover, .iq-menu .current-menu-item > a { color: var(--iq-gold-light); }
.iq-nav .iq-btn { padding: 11px 22px; font-size: .92rem; }
.iq-burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.iq-burger span, .iq-burger span::before, .iq-burger span::after { display: block; width: 26px; height: 2px; background: #fff; position: relative; transition: .25s; }
.iq-burger span::before, .iq-burger span::after { content: ""; position: absolute; left: 0; }
.iq-burger span::before { top: -8px; }
.iq-burger span::after { top: 8px; }
.iq-burger[aria-expanded="true"] span { background: transparent; }
.iq-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.iq-burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.iq-hero {
	position: relative; overflow: hidden; color: rgba(255,255,255,.78);
	padding: clamp(90px, 12vw, 150px) var(--iq-gutter) clamp(80px, 10vw, 120px);
	background:
		radial-gradient(900px 500px at 85% 20%, rgba(201,165,76,.18), transparent 60%),
		radial-gradient(700px 500px at 10% 100%, rgba(90,70,160,.35), transparent 60%),
		linear-gradient(160deg, var(--iq-ink) 0%, var(--iq-ink-2) 60%, var(--iq-ink) 100%);
}
.iq-hero::before {
	content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 700'%3E%3Cg stroke='%23C9A54C' stroke-opacity='.22' fill='none'%3E%3Cpath d='M700 120L860 210L1010 140L1140 260M860 210L900 380L1060 430L1140 260M900 380L760 470L820 620M1060 430L1010 590L820 620M760 470L640 330L700 120M640 330L860 210'/%3E%3C/g%3E%3Cg fill='%23E4CB85'%3E%3Ccircle cx='700' cy='120' r='3'/%3E%3Ccircle cx='860' cy='210' r='4.5'/%3E%3Ccircle cx='1010' cy='140' r='3'/%3E%3Ccircle cx='1140' cy='260' r='3.5'/%3E%3Ccircle cx='900' cy='380' r='5'/%3E%3Ccircle cx='1060' cy='430' r='3'/%3E%3Ccircle cx='760' cy='470' r='3.5'/%3E%3Ccircle cx='820' cy='620' r='3'/%3E%3Ccircle cx='1010' cy='590' r='3'/%3E%3Ccircle cx='640' cy='330' r='3'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
}
.iq-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 60px; align-items: center; }
.iq-hero h1 { color: #fff; }
.iq-hero h1 em { display: block; }
.iq-hero .iq-lead { max-width: 600px; margin-bottom: 34px; }
.iq-trust { display: flex; gap: 28px; flex-wrap: wrap; list-style: none; padding: 0; margin: 44px 0 0; font-size: .92rem; color: rgba(255,255,255,.8); }
.iq-trust li::before { content: "✦"; color: var(--iq-gold); margin-right: 8px; }
.iq-hero__panel { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 34px; backdrop-filter: blur(6px); }
.iq-hero__panel h3 { color: #fff; font-size: 1.5rem; margin-bottom: 20px; }

.iq-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.iq-stat { background: rgba(19,14,34,.55); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 18px; }
.iq-stat p { margin: 0; }
.iq-stat__num { font-family: var(--iq-serif); font-size: 2.3rem; line-height: 1.05; color: var(--iq-gold-light); font-weight: 600; }
.iq-stat__label { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: 6px !important; }
.iq-stats.is-stacked { grid-template-columns: 1fr; gap: 16px; }
.iq-stats.is-stacked .iq-stat { background: linear-gradient(160deg, var(--iq-ink) 0%, var(--iq-ink-2) 100%); padding: 24px 26px; border-radius: var(--iq-radius); }
.iq-stats.is-stacked .iq-stat__num { font-size: 2.6rem; }
.iq-stats.is-stacked .iq-stat__label { font-size: .9rem; }

/* ---------- Gold band ---------- */
.iq-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 30px var(--iq-gutter); background: linear-gradient(90deg, var(--iq-gold) 0%, var(--iq-gold-light) 100%); color: var(--iq-ink); }
.iq-band h3 { margin: 0; font-size: 1.85rem; }
.iq-band p { margin: 0; max-width: 440px; font-size: .98rem; color: rgba(19,14,34,.8); }

/* ---------- Layout helpers ---------- */
.iq-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-bottom: 0; }
.iq-split.is-top { align-items: start; }
#ai .iq-split { margin-bottom: 64px; align-items: start; }
.iq-grid { display: grid; gap: 24px; }
.iq-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.iq-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.iq-lede { font-family: var(--iq-serif); font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); line-height: 1.35; color: var(--iq-ink); font-weight: 500; }
.iq-lede strong { color: var(--iq-gold-dark); font-weight: 600; }

.iq-checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.iq-checks li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.iq-checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--iq-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23130E22' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }
.iq-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.iq-chips li { margin: 0; font-size: .85rem; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--iq-line); }

/* ---------- Cards ---------- */
.iq-card, .is-style-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--iq-line); border-radius: var(--iq-radius);
	padding: 32px 28px; box-shadow: var(--iq-shadow); transition: transform .25s, box-shadow .25s;
}
.iq-card:hover { transform: translateY(-4px); box-shadow: 0 28px 60px -26px rgba(19,14,34,.45); }
.iq-card > * { margin-block-start: 0; }
.iq-card h3 { font-size: 1.6rem; margin-bottom: .45em; }
.iq-card p { color: var(--iq-muted); font-size: .97rem; margin: 0; }
.iq-card.is-featured { background: linear-gradient(160deg, var(--iq-ink) 0%, var(--iq-ink-2) 100%); border-color: transparent; }
.iq-card.is-featured h3 { color: #fff; }
.iq-card.is-featured p:not(.iq-tag) { color: rgba(255,255,255,.72); }
.iq-tag, .iq-tag a {
	font-size: .7rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--iq-gold-dark) !important; text-decoration: none;
}
.iq-tag { align-self: flex-start; display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--iq-sand); margin: 0 0 16px !important; }
.iq-card.is-featured .iq-tag { background: rgba(201,165,76,.18); color: var(--iq-gold-light) !important; }
.iq-dashes { list-style: none; padding: 0; margin: 18px 0 0; font-size: .93rem; }
.iq-dashes li { padding: 8px 0; border-top: 1px solid var(--iq-line); margin: 0; }
.iq-dashes li::before { content: "—"; color: var(--iq-gold); margin-right: 10px; }

/* Icon tiles: drawn from the card's iq-icon--{name} class. */
.iq-icon { padding-top: 110px; }
.iq-icon::before, .iq-icon::after { content: ""; position: absolute; }
.iq-icon::before { top: 32px; left: 28px; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--iq-ink) 0%, var(--iq-ink-3) 100%); }
.iq-icon::after { top: 46px; left: 42px; width: 28px; height: 28px; background: var(--iq-gold-light); -webkit-mask: var(--iq-glyph) center / contain no-repeat; mask: var(--iq-glyph) center / contain no-repeat; }
.iq-icon.is-featured::before { background: var(--iq-gold); }
.iq-icon.is-featured::after { background: var(--iq-ink); }
.iq-icon.is-featured .iq-tag { position: absolute; top: 46px; right: 24px; }
.iq-icon--automation { --iq-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 3v3M12 18v3M4.2 7.5l2.6 1.5M17.2 15l2.6 1.5M4.2 16.5 6.8 15M17.2 9l2.6-1.5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E"); }
.iq-icon--insights { --iq-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18M6 16v-4M11 16V8M16 16v-6M21 4l-5 5-4-3-6 5'/%3E%3C/svg%3E"); }
.iq-icon--bot { --iq-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='4' y='7' width='16' height='12' rx='3'/%3E%3Cpath d='M12 3v4M9 12h.01M15 12h.01M9.5 16h5'/%3E%3C/svg%3E"); }
.iq-icon--agents { --iq-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='5' cy='6' r='2'/%3E%3Ccircle cx='19' cy='6' r='2'/%3E%3Ccircle cx='12' cy='18' r='2'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3Cpath d='M7 7l3 2M17 7l-3 2M12 12.5V16'/%3E%3C/svg%3E"); }
.iq-icon--transform { --iq-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 0 1 14-5.3M20 12a8 8 0 0 1-14 5.3M18 3v4h-4M6 21v-4h4'/%3E%3C/svg%3E"); }
.iq-icon--code { --iq-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7 3 12l5 5M16 7l5 5-5 5M14 4l-4 16'/%3E%3C/svg%3E"); }
.iq-icon--layers { --iq-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 2 3 7l9 5 9-5-9-5ZM3 12l9 5 9-5M3 17l9 5 9-5'/%3E%3C/svg%3E"); }
.iq-icon--brain { --iq-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 3a4 4 0 0 0-4 4v1a3 3 0 0 0-2 5 3 3 0 0 0 2 5 4 4 0 0 0 8 0 3 3 0 0 0 2-5 3 3 0 0 0-2-5V7a4 4 0 0 0-4-4ZM12 7v14'/%3E%3C/svg%3E"); }
.iq-icon--data { --iq-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v14c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3'/%3E%3C/svg%3E"); }
.iq-icon--shield { --iq-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.4 8.4 8 9 4.6-.6 8-4 8-9V6l-8-3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }

/* ---------- Approach steps ---------- */
.iq-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: iq-step; }
.iq-step { position: relative; padding-right: 28px; }
.iq-step::before { counter-increment: iq-step; content: "0" counter(iq-step); display: block; font-family: var(--iq-serif); font-size: 3.4rem; line-height: 1; font-weight: 600; color: var(--iq-gold); margin-bottom: 16px; }
.iq-step::after { content: ""; position: absolute; top: 28px; left: 84px; right: 18px; height: 1px; background: linear-gradient(90deg, rgba(201,165,76,.6), transparent); }
.iq-step:last-child::after { display: none; }
.iq-step h3 { font-size: 1.55rem; margin-bottom: .4em; }
.iq-step p { font-size: .96rem; margin: 0; }

/* ---------- Timeline ---------- */
.iq-timeline { border-left: 2px solid var(--iq-sand); padding-left: 32px; display: grid; gap: 30px; }
.iq-timeline__item { position: relative; }
.iq-timeline__item > * { margin: 0 !important; }
.iq-timeline__item::before { content: ""; position: absolute; left: -41px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--iq-gold); }
.iq-timeline__year { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--iq-gold-dark); text-transform: uppercase; }
.iq-timeline__item h3 { font-size: 1.45rem; line-height: 1.2; margin-top: 2px !important; }
.iq-timeline__item p:last-child { color: var(--iq-muted); font-size: .96rem; margin-top: 6px !important; }

/* ---------- Quotes ---------- */
.iq-quote.wp-block-quote { margin: 0; border: 1px solid rgba(255,255,255,.08); border-radius: var(--iq-radius); padding: 34px 30px; background: var(--iq-ink-2); }
.iq-quote p { margin: 0 0 22px; font-family: var(--iq-serif); font-size: 1.4rem; line-height: 1.35; color: #fff; font-style: italic; }
.iq-quote p::before { content: "\201C"; display: block; font-size: 3.6rem; line-height: .6; color: var(--iq-gold); margin-bottom: 14px; font-style: normal; }
.iq-quote cite { font-size: .88rem; font-style: normal; color: var(--iq-gold-light); }

/* ---------- Insights cards (home + listing) ---------- */
.iq-post { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--iq-line); border-radius: var(--iq-radius); box-shadow: var(--iq-shadow); text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; height: 100%; }
.iq-post:hover { transform: translateY(-4px); box-shadow: 0 28px 60px -26px rgba(19,14,34,.45); }
.iq-post > * { margin-block-start: 0 !important; }
.iq-post__media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--iq-ink) 0%, var(--iq-ink-3) 100%); }
.iq-post__media img, .iq-post__media a { display: block; width: 100%; height: 100%; object-fit: cover; }
.iq-post__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.iq-post__body > * { margin-block-start: 0 !important; }
.iq-post h2, .iq-post h3 { font-size: 1.5rem; margin-bottom: .5em; }
.iq-post h2 a { color: var(--iq-ink); text-decoration: none; }
.iq-post p, .iq-post .wp-block-post-excerpt { flex: 1; color: var(--iq-muted); font-size: .96rem; margin: 0 0 18px; }
.iq-post .wp-block-post-excerpt__more-text { display: none; }
.iq-meta { font-size: .82rem; font-weight: 600; color: var(--iq-gold-dark); }
.iq-posts .wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.iq-posts .wp-block-post-template > li { margin: 0; }
.iq-posts .wp-block-query-pagination { margin-top: 40px; justify-content: center; }

/* ---------- Leadership ---------- */
.iq-person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 820px; padding: 32px; }
.iq-person:hover { transform: none; }
.iq-avatar { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; margin: 0 !important; background: linear-gradient(135deg, var(--iq-gold) 0%, var(--iq-gold-light) 100%); font-family: var(--iq-serif); font-size: 2.2rem !important; font-weight: 600; color: var(--iq-ink) !important; }
.iq-person h3 { margin-bottom: 2px; }
.iq-role { font-size: .8rem !important; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--iq-gold-dark) !important; margin-bottom: 14px !important; }
.iq-person p + p { margin-top: 1em; }

/* ---------- Contact ---------- */
.iq-info { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; }
.iq-info li { position: relative; padding-left: 62px; min-height: 46px; margin: 0; }
.iq-info li::before { content: ""; position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--iq-ink); }
.iq-info li::after { content: ""; position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; background: var(--iq-gold-light); -webkit-mask: var(--iq-glyph) center / contain no-repeat; mask: var(--iq-glyph) center / contain no-repeat; }
.iq-info .is-mail { --iq-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.iq-info .is-phone { --iq-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E"); }
.iq-info .is-pin { --iq-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.iq-info strong { display: block; color: var(--iq-ink); }
.iq-info a { color: var(--iq-text); text-decoration: none; }
.iq-info a:hover { color: var(--iq-gold-dark); }

.iq-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; background: #fff; border-radius: 22px; padding: 40px; box-shadow: var(--iq-shadow); border: 1px solid var(--iq-line); }
.iq-form .is-full { grid-column: 1 / -1; }
.iq-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--iq-ink); margin-bottom: 6px; }
.iq-form > div { margin-bottom: 16px; }
.iq-form .req { color: var(--iq-gold-dark); }
.iq-form input, .iq-form select, .iq-form textarea { width: 100%; box-sizing: border-box; padding: 13px 15px; font: inherit; font-size: .98rem; color: var(--iq-text); border: 1px solid #DCD5C6; border-radius: 10px; background: var(--iq-cream); }
.iq-form input:focus, .iq-form select:focus, .iq-form textarea:focus { outline: 2px solid var(--iq-gold); outline-offset: 1px; border-color: var(--iq-gold); background: #fff; }
.iq-form textarea { min-height: 130px; resize: vertical; }
.iq-form .iq-btn { width: 100%; }
.iq-form__note { font-size: .82rem; color: var(--iq-muted); margin: 0; text-align: center; }
.iq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.iq-notice { grid-column: 1 / -1; padding: 14px 18px; border-radius: 10px; margin: 0 0 18px; font-weight: 500; }
.iq-notice.is-ok { background: #E8F3EA; color: #1E5B2C; }
.iq-notice.is-err { background: #FBEAEA; color: #8A1F1F; }

/* ---------- Title bar (pages, articles, Insights) ---------- */
.iq-titlebar {
	color: rgba(255,255,255,.78);
	padding: clamp(64px, 8vw, 100px) var(--iq-gutter) clamp(56px, 7vw, 84px);
	background: radial-gradient(800px 400px at 85% 0%, rgba(201,165,76,.16), transparent 60%), linear-gradient(160deg, var(--iq-ink) 0%, var(--iq-ink-2) 100%);
}
.iq-titlebar h1 { color: #fff; max-width: 900px; font-size: clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem); margin-bottom: .35em; }
.iq-titlebar .iq-lead { max-width: 640px; margin: 0; }
.iq-back { margin: 0 0 22px; font-size: .92rem; }
.iq-back a { color: var(--iq-gold-light); text-decoration: none; }
.iq-back a:hover { color: #fff; }
.wp-block-post-terms.iq-eyebrow { gap: 0; flex-wrap: wrap; }
.wp-block-post-terms.iq-eyebrow::before { margin-right: 14px; }
.iq-titlebar .wp-block-post-terms.iq-eyebrow .wp-block-post-terms__separator { color: var(--iq-gold-light); white-space: pre; }
.iq-titlebar__meta { font-size: .95rem; color: rgba(255,255,255,.65); margin: 0; }
/* Listing cards show only the first category. */
.wp-block-post-terms.iq-tag a ~ a, .wp-block-post-terms.iq-tag .wp-block-post-terms__separator { display: none; }
.iq-404 { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Articles ---------- */
.iq-article { --iq-gutter: max(24px, calc((100% - 780px) / 2)); }
.iq-article > * { margin-block-start: 0; }
.iq-article__img img { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--iq-radius); box-shadow: var(--iq-shadow); }
.iq-article__img { margin: 0 0 40px !important; }
.iq-prose { font-size: 1.07rem; line-height: 1.75; overflow-wrap: anywhere; }
.iq-prose > * { max-width: none !important; }
.iq-prose h2 { font-size: 2rem; margin: 1.6em 0 .5em; }
.iq-prose h3 { font-size: 1.55rem; margin: 1.4em 0 .4em; }
.iq-prose ul, .iq-prose ol { padding-left: 1.4em; }
.iq-prose li { margin-bottom: .4em; }
.iq-prose .wp-block-image img { border-radius: 12px; border: 1px solid var(--iq-line); }
.iq-prose .wp-block-image { margin: 28px 0; }
.iq-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--iq-gold); font-family: var(--iq-serif); font-size: 1.3rem; font-style: italic; }
.iq-prose .wp-block-table { overflow-x: auto; }
.iq-note { padding: 16px 20px; background: var(--iq-cream); border-radius: 12px; font-size: .97rem; }
.iq-cta { margin-top: 56px !important; padding: 36px; border-radius: var(--iq-radius); background: linear-gradient(160deg, var(--iq-ink) 0%, var(--iq-ink-2) 100%); color: rgba(255,255,255,.75); }
.iq-cta h3 { color: #fff; }

/* ---------- Footer ---------- */
.iq-footer { background: var(--iq-ink); color: rgba(255,255,255,.7); font-size: .95rem; padding: 72px 0 28px; }
.iq-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.iq-footer__brand p { margin-top: 20px; max-width: 320px; }
.iq-footer__title { font-family: var(--iq-serif); color: #fff; font-size: 1.3rem; font-weight: 600; margin: 0 0 16px; }
.iq-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.iq-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.iq-footer a:hover { color: var(--iq-gold-light); }
.iq-footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Reveal on scroll (only after JS opts in) ---------- */
.iq-anim .iq-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.iq-anim .iq-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.iq-anim .iq-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.iq-grid--4, .iq-grid--3:not(.iq-latest .iq-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.iq-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
	.iq-step:nth-child(2)::after { display: none; }
	.iq-footer__grid { grid-template-columns: 1fr 1fr; }
	.iq-nav {
		position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
		background: var(--iq-ink); padding: 12px 24px 28px; border-bottom: 1px solid rgba(255,255,255,.08);
		transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
	}
	.iq-nav.is-open { transform: none; visibility: visible; }
	.iq-menu { flex-direction: column; gap: 0; }
	.iq-menu a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
	.iq-nav .iq-btn { margin-top: 18px; }
	.iq-burger { display: block; }
}
@media (max-width: 900px) {
	.iq-hero__grid, .iq-split { grid-template-columns: minmax(0, 1fr); gap: 44px; }
	.iq-grid--3, .iq-posts .wp-block-post-template { grid-template-columns: minmax(0, 1fr); }
	.iq-topbar__loc { display: none; }
	.iq-topbar .iq-wrap { justify-content: center; }
}
@media (max-width: 782px) {
	.admin-bar .iq-header-part { top: 0; }
}
@media (max-width: 600px) {
	:root { --iq-gutter: 16px; }
	.iq-article { --iq-gutter: 16px; }
	body { font-size: 16px; }
	.iq-wrap { width: calc(100% - 32px); }
	.iq-grid--4, .iq-steps, .iq-footer__grid, .iq-form { grid-template-columns: minmax(0, 1fr); }
	.iq-step::after { display: none; }
	.iq-person { grid-template-columns: minmax(0, 1fr); }
	.iq-form { padding: 28px 22px; }
	.iq-logo__text strong { font-size: 1.45rem; }
	.iq-logo { gap: 10px; }
	.iq-logo img { width: 44px; }
	.iq-logo__text small { font-size: .55rem; letter-spacing: .12em; }
	.iq-eyebrow { font-size: .72rem; letter-spacing: .12em; gap: 10px; }
	.iq-eyebrow::before { width: 24px; }
	.iq-icon.is-featured .iq-tag { position: static; }
}
